Failover - Master Process Check

Jeff Engstrom Jeff.Engstrom at fortix.net
Mon Oct 27 18:11:43 CET 2003


 
I have reached a point where my knowledge is lacking and my hope is that
some of you kind folks can help me.  In a failover configuration the
instructions call for a cron job to be setup and call a script to check the
master host.  The exact instructions are here...
 
"Set up a cron job on the slave host that periodically (say every minute)
runs a script that checks the status of the Nagios process on the master
host (using the check_nrpe plug-in on the slave host and the nrpe daemon
<http://nagios.sourceforge.net/docs/1_0/addons.html#nrpe>  and check_nagios
plug-in on the master host). The script should check the return code of the
check_nrpe plug-in . If it returns a non-OK state, the script should send
the appropriate commands to the external
<http://nagios.sourceforge.net/docs/1_0/configmain.html#command_file>
command file to enable both notifications and active service checks. If the
plug-in returns an OK state, the script should send commands to the external
command file to disable both notifications and active checks. "
 
My scripting ability is not up to par these days.  Does anyone have a script
I might be able to use?  Thanks in advance for any help!!
 
-Jeff
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031027/22562a65/attachment.html>


More information about the Users mailing list