by gormank » Thu Aug 04, 2022 4:52 pm
You could write a wrapper script that runs check_nrpe and prints another message when it times out, or you can modify the source and recompile it.
You can also adjust the return value...
-u, --unknown-timeout Make connection problems return UNKNOWN instead of CRITICAL
-t, --timeout=INTERVAL:STATE
INTERVAL Number of seconds before connection times out (default=10)
STATE Check state to exit with in the event of a timeout (default=CRITICAL)
Timeout STATE must be a valid state name (case-insensitive) or integer:
(OK, WARNING, CRITICAL, UNKNOWN) or integer (0-3)