[Nagios-devel] [BUGFIX] cmd.c: Forced re-scheduling of single

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] [BUGFIX] cmd.c: Forced re-scheduling of single

Post by Guest »

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;








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