Modifying custom variables via external commands

Diego Roccia bluesman at bluesman.it
Fri Dec 11 17:17:18 CET 2009


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

Hi all,
 I'm having some problem in changing custom object variables via
external commands. Using nagios 3.0.6 and 3.2.0 but it seems to ignore
*almost* completely my command.

> define service{
>         name                            generic-service
>         [...]
>         _PRIORITY                       1
>         _SUPPORT_TEAM                   Tech Db - Generic
>         action_url                      /wiki/doku.php?id=procedures:$SERVICEDESC$
>         notes                           <em>priority:</em>$_SERVICEPRIORITY$<br/><em>Support Team(s):</em>$_SERVICESUPPORT_TEAM$
>         }

In the debug I see:

> [1260547711.216663] [128.2] [pid=18837] Raw command entry: [1260547696] CHANGE_CUSTOM_SVC_VAR;blinkongdbslave1;SSH Service;_PRIORITY;1
> [1260547711.216970] [001.0] [pid=18837] process_external_command2()
> [1260547711.216974] [128.1] [pid=18837] External Command Type: 148
> [1260547711.216979] [128.1] [pid=18837] Command Entry Time: 1260547696
> [1260547711.216983] [128.1] [pid=18837] Command Arguments: blinkongdbslave1;SSH Service;_PRIORITY;1

but the value of the variable is not being changed.
Any ideas? thanks in advance

Diego
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLInCOAAoJEMJ8KUrKt830Z04H/1Bmq4xNjdZEfqXvrP8kSEar
7w9+KnPb0SvtLwIEAG9HWk2sdqcJg4qhq9vnsu079XWBjeCNFRrFW37fUqhi2Oio
5t5flyJuatDGFhFUA+w8oRImhiTmi0/QKzYeJSzMuXlgSFqUDlvQ6JlPlDL6go2z
R5fJBSC4vbwhGlxcLhdswXV/FVbzNc363P7IBQJbjI9mL1r1gk+rPx2pDoqKvjig
K5hI25OVmXe+QTOEKY4HqeBwu0dx9LiSTvdk17WzwsKjqlj4WwCZ41OZm9VqEpO1
TGfyhiQ92yw3rft/M5oI/AoaW0TTPMgs3wY3TFv6UQsZhmv/LTsAFNt7SsKHkyw=
=Y84l
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list