status.cgi sounds for alerts on passive service checks
Ethan Galstad
nagios at nagios.org
Sun Apr 13 20:31:58 CEST 2008
Mike Dorman wrote:
> We use Opsview in our environment, with distributed pollers that are
> separate from the master server, where the UI lives. So from the
> master’s perspective, all service checks are passive checks, because
> they are reported in by the poller servers.
>
>
>
> As a result, we aren’t getting any service alert sounds on status.cgi
> because the logic checks servicestatus->checks_enabled and ignores
> servicestatus->accept_passive_service_checks
>
>
>
> I am not sure if that was by design or not. But I’ve patched
> cgi/status.c to also play sounds for alerts generated by passive service
> checks as well.
>
>
>
> All I did was update the logic to check
> (servicestatus->checks_enabled==TRUE ||
> servicestatus->accept_passive_service_checks==TRUE) instead of just the
> first one.
>
>
>
> I’ve submitted this patch to the Opsview community, and am also posting
> it here in case there is interest in integrating it into upstream Nagios.
>
>
>
> The patch is against Nagios 2.9, which is a bit old. But I looked at
> the latest code in CVS and I think the patch will work there, too.
>
>
>
> Thanks,
>
> Mike
>
Thanks Mike - Patch will be in 3.x CVS branch shortly.
Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web: www.nagios.org
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
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