Page 2 of 2

Re: Arg help with Check_MSMQ

Posted: Sat Mar 23, 2013 2:07 pm
by csward
so if i change the INI file to use the statement instead of a $ARG$ input then I get a response (which i can live with):

INI file:
check_msmq=cscript.exe //T:30 //NoLogo scripts/check_msmq.vbs "MessageCount DIRECT=OS:servername\private$\AW2_generalupdate 50 200"



administrator@CSP-NAG-P01:/etc/nagios/objects$ /usr/local/src/nagios-plugins-1.4.16/plugins/check_nrpe -H servername -c check_msmq
MessageCount CRITICAL - DIRECT=OS:servername\\private$\\AW2_GeneralUpdate: 864
|'MessageCount'=864;50;200


BUT, I still have a
(No output returned from plugin)
in the web portal. Why would I get a response from the nagios terminal, but a no output from the web portal?

Thanks

Re: Arg help with Check_MSMQ

Posted: Sat Mar 23, 2013 5:23 pm
by csward
Ok, this can be closed. I figured it out. Looks like I had to take out the check_msmq in the commands.cfg and put it in the windows.cfg

from:
command_line /usr/local/src/nagios-plugins-1.4.16/plugins/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 30 -c check_msmq -a $ARG1$

to:
command_line /usr/local/src/nagios-plugins-1.4.16/plugins/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 30 -a $ARG1$


Thanks for your help!.....again.

Re: Arg help with Check_MSMQ

Posted: Mon Mar 25, 2013 9:49 am
by slansing
Ah yes that would do it, since you are calling the check from the Nagios server it need not be defined on the other end in that fashion. Glad to see you got it sorted out. Locking as resolved.