bug in failover monitoring: script enable_active_service_checks

Bogdan Sandu bogdan.sandu at orange.ro
Wed Sep 10 11:58:58 CEST 2008


hello
I am using the latest 3.0.3 nagios and 1.4.12 nagios-plugins.
I've set up 2 nagios servers running in failover monitoring mode as described in http://nagios.sourceforge.net/docs/3_0/redundancy.html
Everything works ok except the script : /usr/local/nagios/libexec/eventhandlers/enable_active_service_checks
It generates the command:
[1221039159] START_EXECUTING_SERVICE_CHECKS
and it is piped to /usr/local/nagios/var/rw/nagios.cmd , but nagios does not start executing service checks.

Nagios is started with: execute_service_checks=0 as mentioned in the above documentation page.

The script enable_notifications works, and nagios is started with: enable_notifications=0

P.S

there is also a small bug in contrib/eventhandlers/enable_notifications
The last line should be:
`$printfcmd "[%i] ENABLE_NOTIFICATIONS;%i\n" $datetime $datetime >> $CommandFile`
instead of:
`printfcmd "[%i] ENABLE_NOTIFICATIONS;%i\n" $datetime $datetime >> $CommandFile`

It is missing the $ sign at the beggining.

The other scripts: disable_notifications, disable_active_service_checks, enable_active_service_checks don't have this bug.


*****DISCLAIMER*****

The information contained in this communication is confidential and may be legally privileged. It is intended solely for the use of the individual or entity to whom it is addressed and others authorized to receive it. If you are not the intended recipient you are hereby notified that any disclosure, copying, distribution or taking action in reliance of the contents of this information is strictly prohibited and may be unlawful. Orange Romania S.A. is neither liable for the proper, complete transmission of the information contained in this communication nor any delay in its receipt.

*****END OF DISCLAIMER*****
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080910/84938ef0/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list