how can monitor MQ with nagios

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

how can monitor MQ with nagios

Post by baber »

hi dear friend

i have a problem with MQ monitor can you help me ?

i have installed MQ (ibm websphere ) on windows server 2008-r2 server i have 2 que manager each of them has 4 channel now i don\t know which plugin work correctly for example will this plugin work? (https://exchange.nagios.org/directory/P ... bs/details) if yes please help me i have attached 2 pics in zip file from my Quemanager with channels now i don't know what do i have to write in nsclient++.ini in windows and what do i have to write in commands.cfg and windows.cfg file on nagios server please help me ? i read most of doc on plugins but most of them are confused me please just say me what lines do i have to add in nsclient++.ini and commands.cfg and windows.cfg file on nagios server ?

i need your help please

this is my mail adress bab.sdn@gmail.com

please help me this is so important for me for run this

Best regards
Attachments
MQ.zip
(120.46 KiB) Downloaded 307 times
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: how can monitor MQ with nagios

Post by hsmith »

All of the information you're looking for looks like it's listed on the plugin page.
baber wrote:i don't know what do i have to write in nsclient++.ini in windows

Code: Select all

For use with NSClient++ please add the following line to your NSC.INI [NRPE Handlers]:

check_msmq=cscript.exe //T:30 //NoLogo scriptscheck_msmq.vbs $ARG1$

and copy "check_msmq.vbs" into "scripts" folder. Refer to NSClient++ Documentation for using remote checks via NRPE.
baber wrote: what do i have to write in commands.cfg

Code: Select all

###command definition###

define command {
command_name check_msmq
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -t 30 -c check_msmq -a $ARG1$
} 
baber wrote:and windows.cfg file

Code: Select all

define service{
use generic-service
host_name WINSVR01
service_description MSMQ MessageCount MSMQSVR01
process_perf_data 1
check_command check_msmq!"MessageCount DIRECT=OS:MSMQSVR01\Private$\ServiceFooBar 50 200"
} 
baber wrote:this is my mail adress bab.sdn@gmail.com
We offer free support on the forums, but not over email.
Former Nagios Employee.
me.
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor MQ with nagios

Post by baber »

thanks i do these configs but nothing do i have attached main files in a zip file ( nsclient++.ini (on MQ windows server) , commands.cfg , Chakavak.cfg , nrpe (all of these are on nagios server) and attach a pic from my nagios monitoring page i am so confused what is my problem all of my configs are ok ? also i have attached my MQ channels name and quemanagers

not need use channel names or quemanager names?


best regards
Babak
Attachments
config.zip
(129.24 KiB) Downloaded 281 times
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: how can monitor MQ with nagios

Post by Box293 »

This updated nsclient.ini file should fix the problem. Specifically the command needed to be like:

Code: Select all

[/settings/external scripts/scripts]
check_msmq = cscript.exe //T:30 //NoLogo scripts\\check_msmq.vbs $ARG1$
Replace your ini file with this one and restart the service.
nsclient.ini
(15.23 KiB) Downloaded 434 times
If it doesn't work, what output/errors do you get?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor MQ with nagios

Post by baber »

just i change nsclient++.ini ?

all of other configs such as commands.cfg , Chakavak.cfg , nrpe , nrpe.cfg were ok ?
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: how can monitor MQ with nagios

Post by Box293 »

They should be all ok, just replace the nsclient.ini.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor MQ with nagios

Post by baber »

i have replaced that and now this error on my monitoring page

i have attached pic and nagios.log file


please help me for solve problem
Attachments
nagios.log
(27.78 KiB) Downloaded 375 times
pic.jpg
Last edited by baber on Thu Feb 04, 2016 10:12 pm, edited 1 time in total.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: how can monitor MQ with nagios

Post by Box293 »

Try this updated ini file, it allows arguments.
nsclient.ini
(15.23 KiB) Downloaded 407 times
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor MQ with nagios

Post by baber »

thanks

but another same error i have attached pic and nagios.log file please help me for solve this i hava many searched
Attachments
pic.jpg
nagios.log
(28.87 KiB) Downloaded 382 times
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor MQ with nagios

Post by baber »

excuseme error change to this

attach pic
Attachments
nagios.log
(29.96 KiB) Downloaded 382 times
pic.jpg
Locked