problem in check_odbc

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

problem in check_odbc

Post by hanya.radwan »

hi,

after upgrade nagios to latest release 2014R1.0, the services which include check_odbc are failed and timeout

COMMAND: /usr/local/nagios/libexec/check_nrpe -H sms-antispam. -t 120 -c check_odbc -a checkspam

COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.100.20.156 -t 120 -c check_odbc -a checkspam
OUTPUT: Command (scripts\check_odbc.exe checkspam) didn't terminate within the timeout period (60s)!

COMMAND: /usr/local/nagios/libexec/check_nrpe -H 10.100.2.55 -t 120 -c check_odbc -a 'CheckSMSAdvQueue'
OUTPUT: Command (scripts\check_odbc.exe CheckSMSAdvQueue) didn't terminate within the timeout period (60s)!

thanks,
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problem in check_odbc

Post by lmiltchev »

I believe this could be caused by the timeout setting in the "check_nrpe" definition. Are you still using the "default" timeout for "check_nrpe"? Does your command definition look like this?

Code: Select all

define command {
       command_name                             check_nrpe
       command_line                             $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c $ARG1$ $ARG2$
}
Be sure to check out our Knowledgebase for helpful articles and solutions!
hanya.radwan
Posts: 194
Joined: Tue Feb 25, 2014 6:12 am
Location: palestine

Re: problem in check_odbc

Post by hanya.radwan »

some check_nepe command like:
define command {
command_name check_nrpe
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 120 -c $ARG1$ $ARG2$
}

and other like;
define command {
command_name check_nrpe_10.100.20.16_log_error
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 60 -c check_logfiles -a "--logfile=C:\\`date +%d-%m-%Y`.txt --rotation=\d{2}-\d{2}-\d{2}.txt --warningpattern=Exception --noprotocol"
}
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: problem in check_odbc

Post by lmiltchev »

OK - one more place to look at. You are using check_nrpe with NSClient++, correct? Have you increased the timeout in the NSC.ini (nsclient.ini) file on the Windows box?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked