Queue depth monitoring
Re: Queue depth monitoring
Hello,
I searched for this plugin but could not find any documentation.
Can you help us with other plugin which would help us to complete request?
I was able to find check_mq plugin which is under Nagios support. Can you please advise?
I searched for this plugin but could not find any documentation.
Can you help us with other plugin which would help us to complete request?
I was able to find check_mq plugin which is under Nagios support. Can you please advise?
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Queue depth monitoring
Have you tried contacting the developer (owner) of the plugin? We wouldn't be able to test the plugin in-house, however you can upload it on the forum. We will do some digging into this, and see if we can figure out the correct syntax that needs to be used.I searched for this plugin but could not find any documentation.
Supported plugins would be the ones that are part of the "official" nagios plugins:Can you help us with other plugin which would help us to complete request?
I was able to find check_mq plugin which is under Nagios support. Can you please advise?
https://nagios-plugins.org/downloads/
or the ones, that are included (shipped with) Nagios XI by default.
Plugins that are listed on the Nagios Exchange (including check_mq) are usually 3rd party plugins. They are not officially supported. We can try helping you with any of them, but cannot guarantee that they will work/work well.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Queue depth monitoring
Hello,
I have checked the check_queue_depth plugin and it seems that I am doing some mistake with service definition.
I am attaching the script here. Can you please check it once and help us with service definition?
Hostname: eu1pmwu050
Queue Manager Name : PRFGMQA4
Queue Name to be Monitored: WBIA.EESOCC1.REQQ
Thanks for you continuous support
I have checked the check_queue_depth plugin and it seems that I am doing some mistake with service definition.
I am attaching the script here. Can you please check it once and help us with service definition?
Hostname: eu1pmwu050
Queue Manager Name : PRFGMQA4
Queue Name to be Monitored: WBIA.EESOCC1.REQQ
Thanks for you continuous support
You do not have the required permissions to view the files attached to this post.
Thanks & Regards,
I2MP Team.
I2MP Team.
Re: Queue depth monitoring
I looked at the script, and noticed that it requires four separate arguments.
try removing the quotes, and pass them as 4 args:
Also, I've never seen a shebang with two pound signs. It may be OK and still work, but you may want to probably change it just in case. Change this:
to this:
Save, exit, and try your check locally (on the remote machine). If it works, then you can test the check_nrpe on the Nagios XI server. Thanks!
In your case, these would be:QM=$1
Queue=$2
warn=$3
critical=$4
So, instead of wrapping your arguments in quotes (and passing them as one argument this way):PRFGMQA4
WBIA.EESOCC1.REQQ
500
1000
Code: Select all
/usr/local/nagios/libexec/check_queue_depth "PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000"Code: Select all
/usr/local/nagios/libexec/check_queue_depth PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000Code: Select all
##!/bin/bashCode: Select all
#!/bin/bashBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: Queue depth monitoring
Hello,
I have changed the line in script as below:
#!/bin/bash
And restarted nrpe service on it.
Still m getting the same error:'
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > /usr/local/nagios/libexec/check_queue_depth PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000
Unknown - Queue Depth of the WBIA.EESOCC1.REQQ is not found
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
I have changed the line in script as below:
#!/bin/bash
And restarted nrpe service on it.
Still m getting the same error:'
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > /usr/local/nagios/libexec/check_queue_depth PRFGMQA4 WBIA.EESOCC1.REQQ 500 10000
Unknown - Queue Depth of the WBIA.EESOCC1.REQQ is not found
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
Thanks & Regards,
I2MP Team.
I2MP Team.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Queue depth monitoring
We don't have this equipment so I'm not 100% sure, but is it possible that the first 2 arguments are flipped?
Can you run
Can you run
Code: Select all
/usr/local/nagios/libexec/check_queue_depth WBIA.EESOCC1.REQQ PRFGMQA4 500 10000Re: Queue depth monitoring
Hi,
Below is the output:
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > /usr/local/nagios/libexec/check_queue_depth WBIA.EESOCC1.REQQ PRFGMQA4 500 10000
Unknown - Queue Depth of the PRFGMQA4 is not found
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
Below is the output:
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > /usr/local/nagios/libexec/check_queue_depth WBIA.EESOCC1.REQQ PRFGMQA4 500 10000
Unknown - Queue Depth of the PRFGMQA4 is not found
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
Thanks & Regards,
I2MP Team.
I2MP Team.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Queue depth monitoring
Has this plugin every worked for you?
Do you get output running wither of these commands?
Do you get output running wither of these commands?
Code: Select all
runmqsc WBIA.EESOCC1.REQQCode: Select all
runmqsc PRFGMQA4Re: Queue depth monitoring
Hello,
My apologies for late reply, was stuck in a production issue from last three weeks.
Yes, this plugin is working on another server. I have copied the plugin from that server to the server on which we are currently working. Also, I have copied the service so that there should be no difference.
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > runmqsc WBIA.EESOCC1.REQQ
5724-H72 (C) Copyright IBM Corp. 1994, 2016.
Starting MQSC for queue manager WBIA.EESOCC1.REQQ.
AMQ8118: IBM MQ queue manager does not exist.
No MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
==============
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > runmqsc PRFGMQA4
5724-H72 (C) Copyright IBM Corp. 1994, 2016.
Starting MQSC for queue manager PRFGMQA4.
AMQ8146: IBM MQ queue manager not available.
No MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
Not sure why its not working particularly for this sevrer.
My apologies for late reply, was stuck in a production issue from last three weeks.
Yes, this plugin is working on another server. I have copied the plugin from that server to the server on which we are currently working. Also, I have copied the service so that there should be no difference.
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > runmqsc WBIA.EESOCC1.REQQ
5724-H72 (C) Copyright IBM Corp. 1994, 2016.
Starting MQSC for queue manager WBIA.EESOCC1.REQQ.
AMQ8118: IBM MQ queue manager does not exist.
No MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
==============
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec > runmqsc PRFGMQA4
5724-H72 (C) Copyright IBM Corp. 1994, 2016.
Starting MQSC for queue manager PRFGMQA4.
AMQ8146: IBM MQ queue manager not available.
No MQSC commands read.
No commands have a syntax error.
All valid MQSC commands were processed.
PRODUCTION> nagios@eu1pmwu050: /usr/local/nagios/libexec >
Not sure why its not working particularly for this sevrer.
Thanks & Regards,
I2MP Team.
I2MP Team.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Queue depth monitoring
Looking at the plugin again, it looks like it runs the following, can you run this and show the output
and
Code: Select all
echo "DISPLAY QUEUE(WBIA.EESOCC1.REQQ) CURDEPTH" | runmqsc PRFGMQA4Code: Select all
echo "DISPLAY QUEUE(WBIA.EESOCC1.REQQ) CURDEPTH" | runmqsc PRFGMQA4 | grep 'CURDEPTH(' | rev | cut -d'(' -f1 | rev | cut -d')' -f1