Nagios: Difference between revisions

Line 126:
*On Nagios Server:
 
Add a Custom Command:
sudo nano /etc/nagios3/commands.cfg
 
Line 142:
</pre>
 
Create a Service for the host:
sudo nano /etc/nagios3/conf.d/host01.cfg
 
<pre>
Line 152 ⟶ 154:
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