Nagios: Difference between revisions
Content added Content deleted
Line 117:
== Configuration ==
Add the custom command:
Line 124:
sudo systemctl restart nrpe
Add a Custom Command
Line 141:
}
</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
|