All,
I have requirement to change the $SERVICESTATE from UNKNOWN to CRITICAL for some services when the Nagios plugin is deleted. We have some customized Nagios plugins that is deleted often from the host. The Service in Nagios became UNKN - NRPE: Unable to read output. These events are not visible to our operations and we no longer provide its monitor.
I would like to know if is there a method to change it to CRITICAL, so we can restore it right the way.
Thank you,
Gerson Garcia
[email protected]
Change $SERVICESTATE$ for some UNKNOWN alarms
-
GersonGarcia
- Posts: 2
- Joined: Tue Aug 05, 2014 5:52 pm
Re: Change $SERVICESTATE$ for some UNKNOWN alarms
So the checks are being run through NRPE, and the plugins are deleted from the remote machine?
In theory you can write a wrapper script around the check_nrpe command and have it look for the UNKNOWN exit code (and optionally a specific message) then if change that to CRITICAL.
But this isn't something that would exist by default in Nagios.
In theory you can write a wrapper script around the check_nrpe command and have it look for the UNKNOWN exit code (and optionally a specific message) then if change that to CRITICAL.
But this isn't something that would exist by default in Nagios.
Former Nagios employee