Re: How to increase NRPE socket timeout??
Posted: Tue May 05, 2015 4:04 pm
Just to recap. You need to do 3 things:
1. Verify that service_check_timeout in the nagios.cfg on your nagios server is set high enough:
grep service_check_timeout /usr/local/nagios/etc/nagios.cfg
NOTE: Remember to restart nagios after any changes to nagios.cfg.
2. Add "-t" to the check_nrpe command on the nagios server:
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$
3. Verify that the command_timeout in the nrpe.cfg file on the remote host is configured to be long enough:
NOTE: Remember to restart the nrpe daemon on the remote host after changing any nrpe.cfg directive values.
Does the command run correctly with -t 30 from the cli?
1. Verify that service_check_timeout in the nagios.cfg on your nagios server is set high enough:
grep service_check_timeout /usr/local/nagios/etc/nagios.cfg
NOTE: Remember to restart nagios after any changes to nagios.cfg.
2. Add "-t" to the check_nrpe command on the nagios server:
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$
3. Verify that the command_timeout in the nrpe.cfg file on the remote host is configured to be long enough:
Code: Select all
grep command_timeout /usr/local/nagios/etc/nrpe.cfgDoes the command run correctly with -t 30 from the cli?
Code: Select all
./check_nrpe -H <host> -t 30 -c check_cassandra