Nagios: Difference between revisions

Line 106:
== Monitoring Ubuntu Client ==
{{UC}}
 
== Testing ==
 
On Client itself
/usr/lib64/nagios/plugins/check_procs -c 1: -C 'python3.6' -a 'watchdog.py' -p
 
From Nagios Server
/usr/lib/nagios/plugins/check_nrpe -H 10.10.30.81 -c check_total_procs
 
== Configuration ==
On client to be monitored add the custom command:
sudo nano /etc/nagios/nrpe.cfg
command[check_watchdog]=/usr/lib64/nagios/plugins/check_procs -c 1: -C 'python3.6' -a 'watchdog.py'
systemctl restart nrpe