bug in failover monitoring: script enable_active_service_checks
Ethan Galstad
nagios at nagios.org
Wed Oct 15 18:09:01 CEST 2008
Bogdan Sandu wrote:
>
> 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
Whoops. Bug in the sample event handlers. The correct commands are:
START_EXECUTING_SVC_CHECKS
and
STOP_EXECUTING_SVC_CHECKS
I'll get this updated in CVS shortly.
>
> 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.
Thanks for the note. This will be patched in CVS shortly.
- Ethan Galstad
-------------------------------------------------------------------------
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=/
More information about the Developers
mailing list