Page 1 of 1

problem in check_odbc

Posted: Wed Sep 24, 2014 5:03 am
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,

Re: problem in check_odbc

Posted: Wed Sep 24, 2014 10:04 am
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$
}

Re: problem in check_odbc

Posted: Thu Sep 25, 2014 8:16 am
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"
}

Re: problem in check_odbc

Posted: Thu Sep 25, 2014 1:20 pm
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?