failover monitoring
Adam Emery
adamemery at sbcglobal.net
Sun Jul 4 03:41:36 CEST 2004
Does anybody have an example of the script needed for failover
monitoring. The docs only say to create a cron job that runs a script
blah, blah, blah.
Set up a cron job on the slave host that periodically (say every minute)
runs a script that checks the staus of the Nagios process on the master
host (using the check_nrpe plugin on the slave host and the
<http://nagios.sourceforge.net/docs/1_0/addons.html#nrpe> nrpe daemon
and check_nagios plugin on the master host). The script should check the
return code of the check_nrpe plugin . 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 plugin returns an OK state, the script should send commands to the
external command file to disable both notifications and active checks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20040703/3761f363/attachment.html>
More information about the Users
mailing list