Re: [Nagios-devel] Bug: Setting both Service & Host downtime fails

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

Re: [Nagios-devel] Bug: Setting both Service & Host downtime fails

Post by Guest »

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? ... up=durrell) and then
> select "Schedule downtime for all services in this host group" (eg
> http://host/nagios/cgi-bin/cmd.cgi?cmd_ ... up=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_ ... up=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: [email protected]
Web: www.nagios.org





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