Bug: Setting both Service & Host downtime fails
Ethan Galstad
nagios at nagios.org
Sat Oct 27 15:45:43 CEST 2007
Matthew Richardson wrote:
> I have noticed a problem in 3.0b5, which I think exists in earlier
> versions.
>
> If one goes to extinfo.cgi for a hostgroup (eg
> http://host/nagios/cgi-bin/extinfo.cgi?type=5&hostgroup=durrell) and then
> select "Schedule downtime for all services in this host group" (eg
> http://host/nagios/cgi-bin/cmd.cgi?cmd_typ=85&hostgroup=durrell) and ticks
> "Schedule Downtime For Hosts Too", the event log shows:-
>
> |[1193469925] EXTERNAL COMMAND: SCHEDULE_HOSTGROUP_SVC_DOWNTIME;durrell;1193469887;1193486400;1;0;7200;nagiosadmin;manor house power down
> |[1193469925] EXTERNAL COMMAND: SCHEDULE_HOSTGROUP_HOST_DOWNTIME;durrell;1193469887;1193486400;1;7200;nagiosadmin;manor house power down
> |[1193469926] SERVICE DOWNTIME ALERT: durrell_gw;smtp;STARTED; Service has entered a period of scheduled downtime
> |[1193469926] SERVICE DOWNTIME ALERT: durrell_gw;mailloop;STARTED; Service has entered a period of scheduled downtime
> |[1193469926] SERVICE DOWNTIME ALERT: durrell_mitel3300;uptime;STARTED; Service has entered a period of scheduled downtime
> |[1193469926] SERVICE DOWNTIME ALERT: durrell_mitel3300;alarm;STARTED; Service has entered a period of scheduled downtime
> |[1193469926] SERVICE DOWNTIME ALERT: durrell_secure;smtp;STARTED; Service has entered a period of scheduled downtime
> |[1193469926] SERVICE DOWNTIME ALERT: durrell_www;http;STARTED; Service has entered a period of scheduled downtime
>
> Notice that whilst both host and service downtime commands are shown, the
> actual downtime occurs only for the services and not the hosts.
>
> If one subsequently schedules downtime for the hosts via
> http://host/nagios/cgi-bin/cmd.cgi?cmd_typ=85&hostgroup=durrell, the host
> downtime is properly scheduled thus:-
>
> |[1193470092] EXTERNAL COMMAND: SCHEDULE_HOSTGROUP_HOST_DOWNTIME;durrell;1193470030;1193486400;1;0;7200;nagiosadmin;manor house power down
> |[1193470092] HOST DOWNTIME ALERT: durrell_gw;STARTED; Host has entered a period of scheduled downtime
> |[1193470092] HOST DOWNTIME ALERT: durrell_jtrapid;STARTED; Host has entered a period of scheduled downtime
> |[1193470092] HOST DOWNTIME ALERT: durrell_mitel3300;STARTED; Host has entered a period of scheduled downtime
> |[1193470092] HOST DOWNTIME ALERT: durrell_secure;STARTED; Host has entered a period of scheduled downtime
> |[1193470092] HOST DOWNTIME ALERT: durrell_www;STARTED; Host has entered a period of scheduled downtime
>
> A small bug I think...
>
> Best wishes,
> Matthew
>
Thanks for the report. A fix will be in CVS shortly.
Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web: www.nagios.org
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
More information about the Developers
mailing list