Page 1 of 5
how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 12:00 pm
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
[email protected]
please help me this is so important for me for run this
Best regards
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 5:21 pm
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"
}
We offer free support on the forums, but not over email.
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 6:41 pm
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
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 9:37 pm
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.
If it doesn't work, what output/errors do you get?
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 9:44 pm
by baber
just i change nsclient++.ini ?
all of other configs such as commands.cfg , Chakavak.cfg , nrpe , nrpe.cfg were ok ?
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 10:02 pm
by Box293
They should be all ok, just replace the nsclient.ini.
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 10:07 pm
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
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 10:10 pm
by Box293
Try this updated ini file, it allows arguments.
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 10:19 pm
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
Re: how can monitor MQ with nagios
Posted: Thu Feb 04, 2016 10:25 pm
by baber
excuseme error change to this
attach pic