Nagios: Difference between revisions
Content added Content deleted
Line 109: | Line 109: | ||
== Configuration == |
== Configuration == |
||
=== 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 |
||
⚫ | |||
⚫ | |||
⚫ | |||
First test the above custom command: |
|||
/usr/lib/nagios/plugins/check_nrpe -H 10.10.30.81 -c check_watchdog |
|||
⚫ | |||
sudo nano /etc/nagios3/commands.cfg |
sudo nano /etc/nagios3/commands.cfg |
||