monitoring-plugins
monitoring-plugins copied to clipboard
Simplify Installation in any way
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
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?
In GitLab by @markuslf on Jul 28, 2021, 16:52
Bash:
- Pro: https://gist.github.com/btm/6700524
- Con: Links within this thread
+1 for debian package :)
Sounds like there's definitely a need for a Linuxfabrik repo server, based on fpm or something similar.
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.
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.
done :) https://repo.linuxfabrik.ch/monitoring-plugins/