Page 1 of 1
Need Nagios XI Plugin for MSMQ monitoring
Posted: Fri Sep 14, 2012 4:41 am
by mrochelle
Anyone have a plugin or recommendation for monitoring MSMQ queue size?
Thanks, Marcus
Re: Need Nagios XI Plugin for MSMQ monitoring
Posted: Fri Sep 14, 2012 8:46 am
by CGraham
Yup, we do much of this. Here's how we do it from the windows server back to the nagios server.
Windows, running nsclient++
Get the script online called check_msmq.vbs (more details below). It's on the Nagios Exchange. Put it in the scripts folder.
We put this entry in the nsc.ini file:
check_msmq=cscript.exe //T:30 //NoLogo scripts\check_msmq.vbs $ARG1$
Then we create a command check called check_msmq
$USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 30 -c check_msmq -a $ARG1$
Then we create a service check called MSMQ CallLogSample MessageCount and put this as ARG1 (quotes included)
"MessageCount DIRECT=OS:$HOSTNAME$.domain\\private$\\CallLogSample 5000 10000"
Note: my queue name is "CallLogSample", the "domain" should be your domain and should match your queue names. I use the MACRO $HOSTNAME$ so that you can use this check with many hosts that have the CallLogSample queue. 5000 and 10000 are my warning and critical levels.
Second Note: the script online has a bug (if you want high warning and crit thresholds). Everywhere in the script you find CInt, you should replace with CDbl. Otherwise you can't put high thresholds on your queues.
That's about it.
Re: Need Nagios XI Plugin for MSMQ monitoring
Posted: Fri Sep 14, 2012 11:31 pm
by mrochelle
Thanks CGraham. I'll give it a try.
Re: Need Nagios XI Plugin for MSMQ monitoring
Posted: Sun Oct 21, 2012 3:59 pm
by mrochelle
Just following up to thank you CGraham for the suggestion. I successfully implemented the MSMQ monitoring and your second note tip was on the money. It was a solid fit for what we needed.
Marcus