Nagios: Difference between revisions

Content added Content deleted
Line 109: Line 109:
== Configuration ==
== Configuration ==


* On client to be monitored
=== On client to be monitored ===

Test the monitor command:
/usr/lib64/nagios/plugins/check_procs -c 1: -C 'python3.6' -a 'watchdog.py' -p


Add the custom command:
Add the custom command:
Line 116: Line 119:
sudo systemctl restart nrpe
sudo systemctl restart nrpe


*On Nagios Server:


=== On Nagios Server ===
Add a Custom Command:

First test the above custom command:
/usr/lib/nagios/plugins/check_nrpe -H 10.10.30.81 -c check_watchdog

Add a Custom Monitor Command:
sudo nano /etc/nagios3/commands.cfg
sudo nano /etc/nagios3/commands.cfg