Hi. I've reviewed the documentation and a few posts before writing. I want to enable the "-u" flag and receive UNKNOWN instead of CRITICAL for all of the nrpe and nsclient checks. Is it possible to update command.cfg to do this?
Thanks!
Alan
Enabling UNKNOWN state for all failed nrpe checks
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Enabling UNKNOWN state for all failed nrpe checks
Yes, but in XI you would want to do it in the CCM -> Commands -> check_nrpe -> Edit
change the command from this
to this
Then once saved, Apply configuration
change the command from this
Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$Code: Select all
$USER1$/check_nrpe -H $HOSTADDRESS$ -u -t 30 -c $ARG1$ $ARG2$