Re: [Nagios-devel] nagios reschedule forced service check

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] nagios reschedule forced service check

Post by Guest »

This is a multi-part message in MIME format.
--------------030607080809000005020202
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/02/09 06:53 PM, shadih rahman wrote:
> All,
> When I do reschedule service check from web interface and go to the
> next window, I have an option to select froce check or regular
> reschedule service check. I noticed from nagios.log that both when I
> select the above mentioned option and deselect the option, macro being
> passed onto was "SCHEDULE_SVC_CHECK". I think we want to pass
> "SCHEDULE_FORCED_SVC_CHECK
> "
> . Please advise on this. Thanks

This is a bug in 3.0.5 and 3.0.6, though it's fixed in CVS.

Here's a patch for it, Andreas also released a fixed version a few days
after the 3.0.6 release, you can search trough the mailing list archive
if you want it.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFJi6cG6dZ+Kt5BchYRAiZzAKCG1LC0KcUs1n4RhVj3H/Vkki2+ggCgpxq5
/uyOJgK+4pNthE5jGuuSXOY=
=uS1z
-----END PGP SIGNATURE-----

--------------030607080809000005020202
Content-Type: text/x-diff;
name="nagios_cgi_forced_svc_check.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nagios_cgi_forced_svc_check.patch"

diff --git a/cgi/cmd.c b/cgi/cmd.c
index 31f9c19..36eb163 100644
--- a/cgi/cmd.c
+++ b/cgi/cmd.c
@@ -2,8 +2,8 @@
*
* CMD.C - Nagios Command CGI
*
- * Copyright (c) 1999-2008 Ethan Galstad ([email protected])
- * Last Modified: 11-30-2008
+ * Copyright (c) 1999-2009 Ethan Galstad ([email protected])
+ * Last Modified: 01-15-2009
*
* License:
*
@@ -2034,6 +2034,8 @@ int commit_command(int cmd){

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;


--------------030607080809000005020202--





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