Statuswml patch
Ethan Galstad
nagios at nagios.org
Wed Mar 22 18:39:00 CET 2006
Thanks - patch will be in CVS shortly.
On 22 Mar 2006 at 15:21, Andrea Gabellini wrote:
> Hi,
>
> monday I sent a patch to statuswml that check if the host is scheduled
> downtime. Attached there is a patch that check if the host is
> acknoledged. This patch is against 2.0 without my previous patch.
>
> Andrea
>
>
>
>
>
>
> 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-22 15:14:04.617235000 +0100
> @@ -1441,13 +1441,16 @@
> 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)
> continue;
> - }
> + if (temp_hoststatus->scheduled_downtime_depth>0 ||
> temp_hoststatus->problem_has_been_acknowledged==TRUE)
> + continue;
> + }
>
> total_service_problems++;
>
>
>
>
> --
>
> ---------------------------------------
> A good listener is usually thinking about something else.
> ---------------------------------------
> Ing. Andrea Gabellini
> Email: andrea.gabellini at telecomitalia.sm
> 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 SF.Net email is sponsored by xPML, a groundbreaking scripting
> language that extends applications into web and mobile media. Attend
> the live webcast and join the prime developer group breaking into this
> new coding territory!
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=1216
> 42 _______________________________________________ Nagios-devel
> mailing list Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>
>
Ethan Galstad,
Nagios Developer
---
Email: nagios at nagios.org
Website: http://www.nagios.org
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
More information about the Developers
mailing list