Page 1 of 3
Queue depth monitoring
Posted: Mon Sep 23, 2019 7:48 am
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!!
Re: Queue depth monitoring
Posted: Mon Sep 23, 2019 8:54 am
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"
Re: Queue depth monitoring
Posted: Tue Sep 24, 2019 5:46 am
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.
Re: Queue depth monitoring
Posted: Tue Sep 24, 2019 9:49 am
by lmiltchev
Is the plugin present in the libexec directory? Can you list the files in libexec?
Can you also zip up the "check_queue_depth" plugin and upload it on the forum?
Re: Queue depth monitoring
Posted: Wed Sep 25, 2019 2:46 am
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.
Re: Queue depth monitoring
Posted: Wed Sep 25, 2019 8:54 am
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.
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.
Re: Queue depth monitoring
Posted: Thu Sep 26, 2019 4:30 am
by RIDS_I2MP
Hello,
I have ran the command on client machine now and attached output here.
Re: Queue depth monitoring
Posted: Thu Sep 26, 2019 8:43 am
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"
Re: Queue depth monitoring
Posted: Fri Sep 27, 2019 9:32 am
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
Re: Queue depth monitoring
Posted: Fri Sep 27, 2019 10:27 am
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!