Hysteresis anyone?
Thomas Guyot-Sionnest
dermoth at aei.ca
Thu Nov 6 04:58:37 CET 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 05/11/08 02:23 PM, Matthias Flacke wrote:
> 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.
Interesting... I'm wondering if we could work it out in a similar
similar way as negate by passing the last state, performance data,
perfdata metric and upper/lower threshold...
Or maybe better, integrate it in the new planned thresholds, although
the former could work on 3rd party plugins too...
I'll keep that aside if some day I have time to implement it :)
- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJEmtt6dZ+Kt5BchYRArT1AKCeAb/3Uk3voI+m4WxBKIHnninibwCdFT/O
ddHtC8ChsxsZCVd+gG4oKNY=
=vlIE
-----END PGP SIGNATURE-----
-------------------------------------------------------------------------
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 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