Need help on check_msmq plugin
Posted: Wed Aug 15, 2018 2:18 am
Hi,
We are trying to use check_msmq plugin to monitor message queue count as described in below link
https://exchange.nagios.org/directory/P ... bs/details
We were able to run the plugin from Nagios server command line and able to get the output
[nagios@XXXX ~]$ /usr/local/nagios/libexec/check_nrpe -H XXXX -p 5666 -t 30 -c check_msmq -a "MessageCount DIRECT=OS:s930a3703.group.rwe.com\private$\previewjob 50 60"
MessageCount OK - DIRECT=OS: XXXX\\private$\\previewjob: 40
|'MessageCount'=40;50;60
[nagios@ XXXX ~]$
But we are getting the below error while running from Nagios console
C:\Program Files\NSClient++\scripts\check_msmq.vbs(68, 4) Microsoft VBScript runtime error: Type mismatch: 'CInt'
Nagios Service definition
define service {
host_name XXXX
service_description Monitoring_PROD_MSMQ_Queue
check_command check_win_msmq!'MessageCount DIRECT=OS:XXXX\private$\previewjob 50 60'!!!!!!!
max_check_attempts 3
check_interval 2
retry_interval 2
check_period xi_timeperiod_24x7
notification_interval 0
notification_period xi_timeperiod_24x7
notification_options c,
notifications_enabled 0
register 1
}
Kindly help us on how to resolve this error ?
We are trying to use check_msmq plugin to monitor message queue count as described in below link
https://exchange.nagios.org/directory/P ... bs/details
We were able to run the plugin from Nagios server command line and able to get the output
[nagios@XXXX ~]$ /usr/local/nagios/libexec/check_nrpe -H XXXX -p 5666 -t 30 -c check_msmq -a "MessageCount DIRECT=OS:s930a3703.group.rwe.com\private$\previewjob 50 60"
MessageCount OK - DIRECT=OS: XXXX\\private$\\previewjob: 40
|'MessageCount'=40;50;60
[nagios@ XXXX ~]$
But we are getting the below error while running from Nagios console
C:\Program Files\NSClient++\scripts\check_msmq.vbs(68, 4) Microsoft VBScript runtime error: Type mismatch: 'CInt'
Nagios Service definition
define service {
host_name XXXX
service_description Monitoring_PROD_MSMQ_Queue
check_command check_win_msmq!'MessageCount DIRECT=OS:XXXX\private$\previewjob 50 60'!!!!!!!
max_check_attempts 3
check_interval 2
retry_interval 2
check_period xi_timeperiod_24x7
notification_interval 0
notification_period xi_timeperiod_24x7
notification_options c,
notifications_enabled 0
register 1
}
Kindly help us on how to resolve this error ?