Queue depth monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Queue depth monitoring

Post by RIDS_I2MP »

Hi Team,

I am trying to monitor queue depth on a AIX server (10.144.223.208). I am getting below error:

[nagios@eu1papu003 ~]$ /usr/local/nagios/libexec/check_nrpe -2 -H 10.144.223.208 -t 30 -c check_queue_depth -a "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000" NRPE: Unable to read output


Below are the details:

Host name: eu1pmwu050 (10.144.223.208)
Queue Manager Name: PRFGMQA4
Queue Name to be Monitored : WBIA.EESOCC1.REQQ

Warning: 500
Critical : 10000

I am attaching here Service management screenshot. Also, I am attaching nrpe.cfg file along with our Nagios XI server system profile.

I have to configure this at the earliest, please help me on the same.

Thanks in advance!!
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Queue depth monitoring

Post by lmiltchev »

What kind of output do you see when you run the check "locally" on the AIX box? Can you run the command below on the client as root and as nagios user, and show the output?

Code: Select all

/usr/local/nagios/libexec/check_queue_depth "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000"
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Queue depth monitoring

Post by RIDS_I2MP »

Hi,

I am getting below output:

PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > /usr/local/nagios/libexec/check_queue_depth "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000"
ksh: /usr/local/nagios/libexec/check_queue_depth: not found
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >


We dont have root access to the server.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Queue depth monitoring

Post by lmiltchev »

Is the plugin present in the libexec directory? Can you list the files in libexec?

Code: Select all

ls -la /usr/local/nagios/libexec
Can you also zip up the "check_queue_depth" plugin and upload it on the forum?
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Queue depth monitoring

Post by RIDS_I2MP »

Hi,

I do not see any plugin in /usr/local/nagios/libexec path in Nagios server.

[nagios@eu1papu003 ~]$ cd /usr/local/nagios/libexec
[nagios@eu1papu003 libexec]$ ls -lrt check_queue_depth
ls: cannot access check_queue_depth: No such file or directory
[nagios@eu1papu003 libexec]$

I have attached the output of ls -la /usr/local/nagios/libexec command here.

This is quite strange as we are already monitoring queue depth on same Nagios server for other server and its running perfectly fine.

I am attaching here the screen shot of the other queue depth service which is running fine and also the nrpe.cfg file of the other server on which the queue depth is being monitored.

Please check the difference in nrpe.cfg file of this server with the previous nrpe.cfg file, hope we can get something from there.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Queue depth monitoring

Post by lmiltchev »

I wanted you to run the following command:

Code: Select all

/usr/local/nagios/libexec/check_queue_depth "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000"
and to list the files in the "/usr/local/nagios/libexec" directory on the client (remote) machine.

Code: Select all

ls -la /usr/local/nagios/libexec
This should be done on the box with the 10.144.223.208 IP address. It seems like you are running these commands on the Nagios XI server. I am sorry if I was not clear with my instructions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Queue depth monitoring

Post by RIDS_I2MP »

Hello,

I have ran the command on client machine now and attached output here.
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Queue depth monitoring

Post by lmiltchev »

It seems like you are missing the "check_queue_depth" plugin that you are trying to call via check_nrpe...

Here's the command that is defined in the nrpe.cfg file:

Code: Select all

command[check_queue_depth]=/usr/local/nagios/libexec/check_queue_depth $ARG1$
so, you need to have the "check_queue_depth" plugin present in the "/usr/local/nagios/libexec/" directory to start with. Find the plugin, and copy it it over to the plugins directory on client.

Next, test the plugin locally by running the following command on the remote machine:

Code: Select all

/usr/local/nagios/libexec/check_queue_depth "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000"
Finally, if it works, test your check from the command line on the Nagios XI system:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -2 -H 10.144.223.208 -t 30 -c check_queue_depth -a "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000"
Be sure to check out our Knowledgebase for helpful articles and solutions!
RIDS_I2MP
Posts: 751
Joined: Thu Mar 13, 2014 9:25 am

Re: Queue depth monitoring

Post by RIDS_I2MP »

Hi,

I have copied the plugin there in remote machine, restarted the nrpe service on it and ran the command.
I am getting below output.

PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > ls -lrt check_queue_depth
-rwxr-x--- 1 nagios nagios 2312 Sep 27 15:27 check_queue_depth
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > /usr/local/nagios/libexec/check_queue_depth "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000"
Usage: runmqsc [-e] [-v] [-c] [-n] [-u UserName] [-w WaitTime [-x] [-m LocalQMgrName]] [QMgrName]

-c Client connection to queue manager.
-e Do not echo MQSC commands into the output.
-m Local queue manager used to send commands to the target.
-n Do not connect to a queue manager.
-u User name for authentication.
-v Verify commands without performing the actions.
-w Run the MQSC commands on another queue manager.
-x Target queue manager is on z/OS.

Unknown - Queue Depth of the is not found
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >


Output from GUI:

[nagios@eu1papu003 ~]$ /usr/local/nagios/libexec/check_nrpe -2 -H 10.144.223.208 -t 30 -c check_queue_depth -a "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000" Unknown - Queue Depth of the WBIA.EESOCC1.REQQ is not found
Thanks & Regards,
I2MP Team.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Queue depth monitoring

Post by lmiltchev »

You will need to figure out how to run the plugin locally before even looking into the Nagios XI side of things... It was not run correctly as the plugin showed you the usage (help menu).
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > /usr/local/nagios/libexec/check_queue_depth "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000"
Usage: runmqsc [-e] [-v] [-c] [-n] [-u UserName] [-w WaitTime [-x] [-m LocalQMgrName]] [QMgrName]

-c Client connection to queue manager.
-e Do not echo MQSC commands into the output.
-m Local queue manager used to send commands to the target.
-n Do not connect to a queue manager.
-u User name for authentication.
-v Verify commands without performing the actions.
-w Run the MQSC commands on another queue manager.
-x Target queue manager is on z/OS.
This means that something is not correct with the syntax you used. The "check_queue_depth" is not one of our (Nagios) plugins, and we are not familiar with it, so we cannot really help (it's out of scope of Nagios support). I would recommend that you review plugin's documentation (if it exists), and/or contact the plugin's owner.

Once you are able to run the plugin successfully on the remote machine, we can help you with setting up the command definition in the nrpe.cfg file, and the service on the Nagios XI server. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked