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 post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]