Enabling UNKNOWN state for all failed nrpe checks

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
awilson
Posts: 224
Joined: Mon Mar 21, 2016 1:20 pm

Enabling UNKNOWN state for all failed nrpe checks

Post by awilson »

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
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

Post by scottwilkerson »

Yes, but in XI you would want to do it in the CCM -> Commands -> check_nrpe -> Edit
change the command from this

Code: Select all

$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
to this

Code: Select all

$USER1$/check_nrpe -H $HOSTADDRESS$ -u -t 30 -c $ARG1$ $ARG2$
Then once saved, Apply configuration
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked