How to ignore Unkown state and return previous state?
Posted: Wed Sep 25, 2013 1:04 pm
Hi,
Maybe a stupid question and I missed something.. But I have a problem with my environment..
look a this log:
Service was in WARN state, then probably because of short network outage plugin didnt receive a response and the result was Hard Unknown state (without notification). Next check was successfull and I received a new notification but the state is still the same.. So in this case nothing new happend and I received new notification. Notification in this case is sent only for W, C.
So, Is it possible to tell nagios that if plugin returns an Unkown state, nagios will use the previous state? (Ok, Warn, Crit). So simply, I want to ignore Unkown state and want to avoid changing states..
Can I use events, macros or something like this? I know only about one solution.. create a script and put it between nagios and plugins. But I think that it`s too complicated and I hope that nagios offers a solution for this
Maybe a stupid question and I missed something.. But I have a problem with my environment..
look a this log:
Code: Select all
2013/09/23 21:30:56 WS00001 Dell_Storage WARNING NOTIF Controller 0 [PERC H710 Mini]: Firmware 21.1.0-0007 is out of date
2013/09/23 21:30:56 WS00001 Dell_Storage WARNING HARD Controller 0 [PERC H710 Mini]: Firmware '21.1.0-0007' is out of date
2013/09/23 20:59:55 WS00001 Dell_Storage UNKNOWN HARD SNMP UNKNOWN: No response from remote host '10.42.8.241'
2013/09/23 20:44:35 WS00001 Dell_Storage WARNING NOTIF Controller 0 [PERC H710 Mini]: Firmware 21.1.0-0007 is out of date
2013/09/23 20:44:35 WS00001 Dell_Storage WARNING HARD Controller 0 [PERC H710 Mini]: Firmware '21.1.0-0007' is out of date
So, Is it possible to tell nagios that if plugin returns an Unkown state, nagios will use the previous state? (Ok, Warn, Crit). So simply, I want to ignore Unkown state and want to avoid changing states..
Can I use events, macros or something like this? I know only about one solution.. create a script and put it between nagios and plugins. But I think that it`s too complicated and I hope that nagios offers a solution for this