How monitor MSMQ

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

How monitor MSMQ

Post by azam101 »

Hi,

Can Nagios monitor MSMQ?

if so then how?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How monitor MSMQ

Post by rkennedy »

A quick search of the exchange returned a few results -
https://exchange.nagios.org/index.php?o ... hword=msmq

Take a look and see if any of those plugins will work for you.
Former Nagios Employee
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: How monitor MSMQ

Post by azam101 »

Hi

I am new nagios xi and centos OS, so im not sure how to make changes.

Do you have any step by step guide, or is their anything in your video library.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How monitor MSMQ

Post by rkennedy »

Take a look at this document for information on how to install plugins - https://assets.nagios.com/downloads/nag ... ios-XI.pdf

We have a knowledge base that has a lot of articles linked from it here as well - https://support.nagios.com/kb/
Former Nagios Employee
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: How monitor MSMQ

Post by azam101 »

Hi,

I am following the below link:
https://exchange.nagios.org/directory/P ... bs/details

I have edited the NSC.ini on the client server C:\Program Files\NSClient++\NSC.ini see attached and also moved the VBScript to the C:\program files\NSClient++\scripts.

But not sure about ###command definition### and ###service definition###

Where do I add theses?
You do not have the required permissions to view the files attached to this post.
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: How monitor MSMQ

Post by azam101 »

sorry please ignore above comments
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: How monitor MSMQ

Post by azam101 »

See attached screenshot would this be correct, i have edited with our server name and Queue names but they command does not seem work, dont get any OUTPUT. The queue that we are monitoring for testing has thousands, so left at 200 for Critical so it should have a OUTPUT of Critical but getting nothing.
You do not have the required permissions to view the files attached to this post.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: How monitor MSMQ

Post by tmcdonald »

Try saving the check and letting it run normally - the Test Check Command button is not always accurate, and has some issues with escaping certain characters.
Former Nagios employee
azam101
Posts: 50
Joined: Fri Mar 18, 2016 6:01 am

Re: How monitor MSMQ

Post by azam101 »

Im getting a return code of 255 is out of bounds message see attached, not sure what this means.

Tried changing the Critical and Warning thresholds so that it should only so a warning but still get the same message.

I have edited the vi /etc/xinetd.d/nrpe and added the nagios server ip address and the server ip address that im monitoring and restarted the service xinetd restart.
And also disabled the nagios firewall, add the nagios server ip address to the allowed host list /usr/local/nagios/etc/nrpe.cfg
There no firewalls between the nagios server and the server that im trying to monitor. Also when I run the command on the nagios cli with the ip address the remote server I get a connection refused message:

Connect to address (ip address of server that im trying to monitor) port 5666: connection refused
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: How monitor MSMQ

Post by rkennedy »

Can you post your NSClient++ log file for us to look at?
Former Nagios Employee
Locked