Arg help with Check_MSMQ

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.
csward
Posts: 46
Joined: Fri Mar 08, 2013 4:37 pm

Re: Arg help with Check_MSMQ

Post 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
csward
Posts: 46
Joined: Fri Mar 08, 2013 4:37 pm

Re: Arg help with Check_MSMQ

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Arg help with Check_MSMQ

Post 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.
Locked