-
Notifications
You must be signed in to change notification settings - Fork 0
cfauchard/nagios-plugins
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
================================== Install check_borg.py: ================================== - copy bin/check_borg.py to /usr/lib/nagios/plugins - copy the file conf/nrpe_borg.cfg to /etc/nagios/nrpe.d - adapt the file /etc/nagios/nrpe.d/nrpe_borg.cfg to local environment - restart nrpe server: <sh>service nagios-nrpe-server restart</sh> Perfdatas: - osize: original size: size of the backup - csize: compressed backup size - dsize: deduplicated backup size Options: --globalsize: display entire repository size instead of archive size ================================== Install check_mysqldump.py: ================================== - copy bin/check_mysqldump.py to /usr/lib/nagios/plugins - copy the file conf/nrpe_mysqldump.cfg to /etc/nagios/nrpe.d - adapt the file /etc/nagios/nrpe.d/nrpe_mysqldump.cfg to local environment - restart nrpe server: <sh>service nagios-nrpe-server restart</sh> ================================== Install check_sqlite.py: ================================== - copy bin/check_sqlite.py to /usr/lib/nagios/plugins - copy the file conf/nrpe_sqlite.cfg to /etc/nagios/nrpe.d - adapt the file /etc/nagios/nrpe.d/nrpe_sqlite.cfg to local environment - restart nrpe server: <sh>service nagios-nrpe-server restart</sh> ================================== Install check_mediawiki_export.py: ================================== - copy bin/check_mediawiki_export.py to /usr/lib/nagios/plugins - copy the file conf/nrpe_mediawiki_export.cfg to /etc/nagios/nrpe.d - adapt the file /etc/nagios/nrpe.d/nrpe_mediawiki_export.cfg to local environment - restart nrpe server: <sh>service nagios-nrpe-server restart</sh> ================================== Install check_disktemp.py: ================================== - install smartctl binary (package smartmontools on ubuntu 16.04) - neads root privileges for the command "/usr/lib/nagios/plugins/check_disktemp.py /usr/lib/nagios/plugins/disktemp.cfg" # cat /etc/sudoers.d/nagios nagios ALL=(ALL) NOPASSWD: /usr/lib/nagios/plugins/check_disktemp.py /usr/lib/nagios/plugins/disktemp.cfg - copy bin/check_disktemp.py to /usr/lib/nagios/plugins (apt install) or /usr/local/nagios/libexec (install from sources) - copy and adapt configuration file conf/check_disktemp.cfg to /etc/nagios3/plugins or /usr/local/nagios/etc/plugins - copy the file conf/nrpe_disktemp.cfg to /etc/nagios/nrpe.d - adapt the file /etc/nagios/nrpe.d/nrpe_disktemp.cfg to local environment - restart nrpe server: <sh>service nagios-nrpe-server restart</sh> =========================================== Install check_omreport_chassis_temp.py: =========================================== - install omreport via Dell Openmanage package - copy bin/check_omreport_chassis_temp.py to /usr/lib/nagios/plugins - adapt the file /etc/nagios/nrpe.d/nrpe_omreport_chassis_temp.cfg to local environment - restart nrpe server: <sh>service nagios-nrpe-server restart</sh> WARNING: the command "/usr/lib/nagios/plugins/check_openmanage --only temp --perfdata" provided by the package check-openmanage do olmost the same things NOTE: No nead to sudo permissions =========================================== Install check_omreport_power.py: =========================================== - install omreport via Dell Openmanage package - copy bin/check_omreport_power.py to /usr/lib/nagios/plugins - adapt the file /etc/nagios/nrpe.d/nrpe_omreport_power.cfg to local environment - restart nrpe server: <sh>service nagios-nrpe-server restart</sh> NOTE: No nead to sudo permissions ================================== Warning: ================================== Ubuntu nrpe version does not allow to send parameters, the activate parameters, you have to: - recompile nrpe with configure flag --enable-command-args - add dont_blame_nrpe flag <vi /etc/nagios/nrpe.cfg> dont_blame_nrpe=1 </vi> =================================== Test check_mysqldump.py: =================================== On Nagios or Centreon server: <sh> cd /usr/lib/nagios/plugins ./check_nrpe -H xehourp.itnovem.fr -c check_mysldump_ehour </sh>