Auto-clearing passive checks

Andrew Laden Andrew.Laden at tudor.com
Thu Jan 25 17:27:00 CET 2007


Heya

I am running Nagios with snmptraps being caught in the usual
passive/volitile check method. 

The big downside with this setup is that those traps will never clear. I
have to manually submit a passive check to clear them, which is
annoying.

So I want to build an active check that I can use to auto-clear them
with the following paramaters.

If the service is currently ok, Return OK.
If the service is currently non-ok and the last non-ok passive check
state is less then x minutes old, return the current state.
If the service is currently non-ok, and the last non-ok passive check
state is greater then x minutes old, Return ok. (ie, reset the state)

I see a few problems with this.

1: With volatile being set, every time the auto-clear check runs, it
will re-notify.
2: I have no way of getting the last time that a passive check reported,
only the time that the service changed from OK to Non-ok. (ie, if a
passive check sends a non ok, at time 0, and again at time 30. I want
the reset to occur as x+30, not x.)

My leaning then is to do this outside of nagios. And run a script that
checks the status file, looks for services that meet the requirements.
(passive only, non-ok, Last update greater then x) and submit a passive
check to reset them.

Anyone else have any innovative solutions to this?

Thanks
-Andrew
-- 
_________________________________________________________
This communication is intended only for the addressee(s) and may contain confidential information. We do not waive any confidentiality by misdelivery. If you receive this communication in error, any use, dissemination, printing or copying is strictly prohibited; please destroy all electronic and paper copies and notify the sender immediately.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070125/e3c89f7f/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list