Page 1 of 1

NRPE services check RC=2 when agent is down

Posted: Tue Dec 18, 2018 7:37 am
by typer100
Hi! I mainly used NCPA but for some reasons, I had to install NRPE on some older servers.
I'm trying to configure NRPE to give me an Unknown state instead of Critical when I get a timeout on port 5666.
Seems to be the default with NCPA, but not with NRPE.

Thanks for your time.

Re: NRPE services check RC=2 when agent is down

Posted: Tue Dec 18, 2018 10:47 am
by lmiltchev
You could change your command to use the "-u" flag. From the plugin's usage:
-u, --unknown-timeout Make connection problems return UNKNOWN instead of CRITICAL
This way, connection problems would return "Unknown" instead of "Critical".

Example:

Code: Select all

$USER1$/check_nrpe -H $HOSTADDRESS$ -u -t 30 -c $ARG1$ $ARG2$
See the usage of the check_nrpe plugin by running:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -h