status.cgi sounds for alerts on passive service checks
Mike Dorman
mike.dorman at data393.com
Thu Mar 13 21:23:11 CET 2008
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
Mike Dorman | Systems Engineer
Data393 - <http://www.data393.com> www.data393.com
Office - 1.303.268.1504
Fax - 1.303.268.1515
Email - mike.dorman at data393.com <mailto:mike.dorman at data393.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080313/43c13a14/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nagios-2.9-status.cgi-passive-sounds.patch
Type: application/octet-stream
Size: 2025 bytes
Desc: nagios-2.9-status.cgi-passive-sounds.patch
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080313/43c13a14/attachment.obj>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
-------------- 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