[Nagios-devel] Statuswml patch

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

[Nagios-devel] Statuswml patch

Post by Guest »

Hi,

I'm using Ntray that use statuswml.cgi (unhandled problem) to get hosts and services status.

This cgi return the service status of scheduled downtime host, so Ntray thinks that there is a problem.

The attached patch (against 2.0) solve this problem checking if the host status of the service is
scheduled downtime.

Andrea


--- cgi/statuswml.c.orig 2006-03-21 08:30:45.888082000 +0100
+++ cgi/statuswml.c 2006-03-21 09:08:21.254233000 +0100
@@ -1441,11 +1441,12 @@
continue;

if(display_type==DISPLAY_UNHANDLED_PROBLEMS){
+ temp_hoststatus = find_hoststatus(temp_service->host_name);
if(temp_servicestatus->problem_has_been_acknowledged==TRUE)
continue;
if(temp_servicestatus->notifications_enabled==FALSE)
continue;
- if(temp_servicestatus->scheduled_downtime_depth>0)
+ if(temp_servicestatus->scheduled_downtime_depth>0 || temp_hoststatus->scheduled_downtime_depth>0)
continue;
}


--

---------------------------------------
A good listener is usually thinking about something else.
---------------------------------------
Ing. Andrea Gabellini
Email: [email protected]
Tel: 0549 886111 (Italy)
Tel. +378 0549 886111 (International)

Telecom Italia San Marino S.p.A.
Strada degli Angariari, 3
47891 Rovereta
Repubblic of San Marino

http://www.omniway.sm http://www.telecomitalia.sm





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