Jump to Navigation

257 - nagios CHECK_NRPE: Socket timeout after 10 seconds

You may get the following error (Service Check Timed Out) in the Service Status Details part of Nagios for all your NRPE service checks.
You can extend the timeout as the following.

1. nagios command change

If you want to increase it to 60 seconds :

# vi /usr/local/nagios/etc/objects/commands.cfg


define command{
        command_name    check_nrpe60
        command_line    $USER1$/check_nrpe -t 60 -u -H $HOSTADDRESS$ -c $ARG1$


-u = Make socket timeouts return an UNKNOWN state instead of CRITICAL

2. service configuration

# vi /usr/local/nagios/etc/objects/templates.cfg


define service{
        use             generic-service
        host_name       oracle-db
        service_description     Oracle PROD DB Check
        check_command   check_nrpe60!check_oracle_prod



3. Restart nagios service

# service nagios restart



Main menu 2

Story | by Dr. Radut