Return code for failing check
Posted: Thu Apr 30, 2015 3:46 am
Hello
I am developing a Nagios plugin but I am unsure about something, I've had a look at the documentation but can't find a satisfactory answer. If my plugin goes to check something and the check fails not because the result is over a certain threshold but because a timeout occurs (ie, there is a transient network issue) what result should my plugin return? Returning a critical error is not necessarily valid as the result of that check is not critical and I would not want to attempt to fire an event handler based on that. If the host is down that'll be picked up by a different check. Should I return unknown?
Thanks in advance
K
I am developing a Nagios plugin but I am unsure about something, I've had a look at the documentation but can't find a satisfactory answer. If my plugin goes to check something and the check fails not because the result is over a certain threshold but because a timeout occurs (ie, there is a transient network issue) what result should my plugin return? Returning a critical error is not necessarily valid as the result of that check is not critical and I would not want to attempt to fire an event handler based on that. If the host is down that'll be picked up by a different check. Should I return unknown?
Thanks in advance
K