Nagios: Difference between revisions

Content added Content deleted
Line 126: Line 126:
*On Nagios Server:
*On Nagios Server:


Add a Custom Command
Add a Custom Command:
sudo nano /etc/nagios3/commands.cfg
sudo nano /etc/nagios3/commands.cfg


Line 142: Line 142:
</pre>
</pre>


Create a Service for the host:
sudo nano /etc/nagios3/conf.d/host01.cfg


<pre>
<pre>
Line 152: Line 154:
check_command check_nrpe_args!check_watchdog
check_command check_nrpe_args!check_watchdog
</pre>
</pre>





command[check_watchdog]=/usr/lib64/nagios/plugins/check_procs -c 1: -C 'python3.6' -a 'watchdog.py'

systemctl restart nrpe