monitoring-plugins icon indicating copy to clipboard operation
monitoring-plugins copied to clipboard

Simplify Installation in any way

Open NavidSassan opened this issue 3 years ago • 6 comments

Python setup.py with something like a requirements.txt? https://docs.python.org/3/distutils/setupscript.html, pip3 install -r /path/to/requirements.txt

Bash script? Something like curl https://git.linuxfabrik.ch/path/to/install.sh | sudo bash?

should:

  • download the monitoring-plugins and lib repos (curl)
  • copy the checks and lib to the right directory
  • if icingacli director is available, import all the command definitions (make sure that this will not break the existing config)
  • deploy the correct sudoers
  • handle upgrades
  • throw human readable errors

should use a default PYVER and default to the master branch, but accept those as options

NavidSassan avatar Jun 30 '21 15:06 NavidSassan

In GitLab by @markuslf on Jul 18, 2021, 10:17

Possibilities to think about

  • bash-script
  • using pip including virtual environments
  • rpm (el, fc, sles, suse) and deb (debian/ubuntu) using a linuxfabrik-repo
  • plus: what about the Windows versions?

What would be the best? Advantages/Disadvantages? What is the best in a datacenter environment?

And what about Windows?

NavidSassan avatar Jul 18 '21 08:07 NavidSassan

In GitLab by @markuslf on Jul 28, 2021, 16:52

Bash:

  • Pro: https://gist.github.com/btm/6700524
  • Con: Links within this thread

NavidSassan avatar Jul 28 '21 14:07 NavidSassan

+1 for debian package :)

fl0wx avatar Mar 18 '22 13:03 fl0wx

Sounds like there's definitely a need for a Linuxfabrik repo server, based on fpm or something similar.

markuslf avatar Mar 18 '22 15:03 markuslf

RPM or DEB file will do a complete low-level installation including Python psutil (not with pip), like glances does. There will be no dependency on EPEL or similar.

markuslf avatar Mar 29 '22 09:03 markuslf

We will implement this as follows:

  • Compile all plugins including all Linuxfabrik and 3rd party libraries so that a Python environment is no longer needed on the target host.
  • Create installation packages with fpm (targets are rpm, deb, etc.) that install the binaries.

markuslf avatar Jul 26 '22 19:07 markuslf

done :) https://repo.linuxfabrik.ch/monitoring-plugins/

NavidSassan avatar Feb 16 '23 10:02 NavidSassan