[BUGFIX] cmd.c: Forced re-scheduling of single servicechecks not working since 3.0.5
Andreas Ericsson
ae at op5.se
Tue Dec 9 15:22:25 CET 2008
matthias eble wrote:
> Hi List,
>
> since 3.0.5 the "Force Check" checkbox is ignored when service checks
> are to be rescheduled from the web-ui. The resulting command is always
> SCHEDULE_SVC_CHECK instead of SCHEDULE_FORCED_SVC_CHECK because the
> value of the checkbox (stored in force_check) is never interpreted.
>
> This is only for the case for single service checks. Host checks and
> "all service checks for a particular host" work as expected.
>
> Matthias
>
>
> --- nagios-3.0.6.old/cgi/cmd.c 2008-11-30 18:22:58.000000000 +0100
> +++ nagios-3.0.6/cgi/cmd.c 2008-12-09 11:22:27.423898000 +0100
> @@ -2033,7 +2033,8 @@
> break;
>
> case CMD_SCHEDULE_SVC_CHECK:
> - case CMD_SCHEDULE_FORCED_SVC_CHECK:
> + if (force_check == TRUE)
> + cmd = CMD_SCHEDULE_FORCED_SVC_CHECK;
> result = cmd_submitf(cmd,"%s;%s;%
> lu",host_name,service_desc,start_time);
> break;
>
>
Nice catch.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you. Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
More information about the Developers
mailing list