Page 1 of 1

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

Posted: Thu Mar 13, 2008 12:23 pm
by Guest
This is a multi-part message in MIME format.

------_=_NextPart_001_01C88548.0F2CE823
Content-Type: multipart/alternative;
boundary="----_=_NextPart_002_01C88548.0F2CE823"


------_=_NextPart_002_01C88548.0F2CE823
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

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.

=20

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

=20

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.

=20

All I did was update the logic to check
(servicestatus->checks_enabled=3D=3DTRUE ||
servicestatus->accept_passive_service_checks=3D=3DTRUE) instead of just =
the
first one.

=20

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.

=20

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.

=20

Thanks,

Mike

=20

=20

=20

Mike Dorman | Systems Engineer

=20

Data393 - www.data393.com

Office - 1.303.268.1504

Fax - 1.303.268.1515

Email - [email protected] =20

=20


------_=_NextPart_002_01C88548.0F2CE823
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
















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.

 </fo

...[email truncated]...


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