Re: [Nagios-devel] status.cgi sounds for alerts on passive service

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] status.cgi sounds for alerts on passive service

Post by Guest »

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: [email protected]
Web: www.nagios.org





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked