Nagios: Difference between revisions
Content added Content deleted
Line 117: | Line 117: | ||
== Configuration == |
== Configuration == |
||
* On client to be monitored |
|||
Add the custom command: |
Add the custom command: |
||
Line 124: | Line 124: | ||
sudo systemctl restart nrpe |
sudo systemctl restart nrpe |
||
*On Nagios Server: |
|||
Add a Custom Command |
Add a Custom Command |
||
Line 141: | Line 141: | ||
} |
} |
||
</pre> |
</pre> |
||
<pre> |
|||
## Check Watchdog Script |
|||
define service { |
|||
use generic-service ; Inherit default values from a template |
|||
host_name PROD_aman-client1 |
|||
service_description Watchdog Script |
|||
check_command check_nrpe_args!check_watchdog |
|||
</pre> |
|||
command[check_watchdog]=/usr/lib64/nagios/plugins/check_procs -c 1: -C 'python3.6' -a 'watchdog.py' |
|||
systemctl restart nrpe |