Nagios: Difference between revisions

Content added Content deleted
Line 106: Line 106:
== Monitoring Ubuntu Client ==
== Monitoring Ubuntu Client ==
{{UC}}
{{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 ==
== 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