Mr. Casale -

Hope I'm understanding your problem ... but have you tried the "command
expansion" under the "View Config" option in the GUI? You can start with it
by entering "check_wmi_plus" (I'd assume) and see what options it gives
you... it should list both the definition as well as the "expanded" portion
of the command, prior to it being forked to a shell.

For example, the "check_ping" command in the "To Expand" box should give you
something like this:

To expand:check_ping  check_ping $USER1$/check_ping -H $HOSTADDRESS$ -w
$ARG1$ -c $ARG2$ -p 5  -> $USER1$/check_ping -H $HOSTADDRESS$ -w (undefined)-c
(undefined) -p 5

Then, giving it "typical" options you might see something like this (you'll
need to enter the arguments, as listed):

To expand:check_ping!200.0,20%!600.0,60%  check_ping $USER1$/check_ping -H
$HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5  -> $USER1$/check_ping -H
$HOSTADDRESS$ -w *200.0,20%* -c *600.0,60%* -p 5

Once you have the command line, you can attempt entering it at the shell
level to see if it still works (or if there are any glaring errors that you
may need to incorporate back in your configuration).

Hope that helps...
Russell




On Mon, Jun 27, 2011 at 5:16 AM, Joseph L. Casale <[email protected]
> wrote:

> I am trying to obtain the 'eval' ed output as per the wiki docs. I am
> seeing some odd
> behavior with the check_wmi_plus plugin that's being difficult to track
> down the usual
> ways.
>
> I do not see an error while running the cmd through the mini_epn but after
> the timeout
> I get the following:
>
> plugin command line: UNKNOWN - Plugin Timed out (15 sec)
> ExitTrap: 3 (Redefine exit to trap plugin exit with eval BLOCK) at p1.plline 
> 61, <FIN> line 1.
>
> So as a result the plugin cache dump isn't created as the plugin didn't
> bail during the
> actual execution, yet when I run it on one machine it starts out working
> but soon returns
>
> Embedded Perl ran /usr/lib64/nagios/plugins/contrib/check_wmi_plus.pl:
> return code=3,
> plugin output=**ePN /usr/lib64/nagios/plugins/contrib/check_wmi_plus.pl:
> "Unknown option: H".\n
>
> The cmd def obviously passes -H, it continues with this until a restart
> which only cures it
> for the first execution. It runs fine on a devel instance on another box.
>
> Thanks,
> jlc
>
>
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to