Maybe a check_multi solution is something for you (http://my-plugin.de/check_multi):
----- 8< ------------------------------------------------------ # hysteresis.cmd # call: check_multi -f hysteresis.cmd \ # -s LASTSERVICESTATEID=$LASTSERVICESTATEID$ \ # -s UPPER=<upper threshold> -s LOWER=<lower threshold> # # 1. get temperature value command [ temperature ] = check_snmp ... # 2. evaluate states state [ CRITICAL ] = \ $temperature$ >= $UPPER$ || \ ( $temperature$ >= $LOWER$ && $LASTSERVICESTATEID$ != OK ) ----- 8< ------------------------------------------------------ Didn't tested it, but it should work that way ;-) The trick is the state evaluation which allows arbitrary perl expressions. Nagios macros or extra parameters can be passed via -s/--set. HTH - Matthias Simon Kainz wrote: > I'm currently monitoring several room temperature and humidity meters > and was wondering if anyone already has implementet some kind of > hysteresis in Nagios ? > > My scenario is the following: I want an critical state when temp rises > above 26 degrees. As long as it doesnt drop below, say 24 deg, the state > should stay critial. The temp usually floats around 26 degrees (my upper > bound) which would lead to lots of notifications. But i only want the ok > notification after the temp drops below my lower bound (24 deg). > Everything inbetween shoud not trigger any warnings. > > > I've arguing to implement this behaviour directly in my temp check > plugins but was wondering if there is another more general approach to > this. Maybe some event handler magic ? > > > Hope i got this clear... > > > TIA, Simon ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Nagios-users mailing list Nagios-users@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