Am 27.10.2016 um 13:00 schrieb Antony Stone:

Hi Antony,

> Hi.
>
> Is it possible to get Icinga to alert in either of the following situations:
>
> 1. The check value is lower than the previous check value.
>
> I'm looking for a way to monitor something which is assumed to steadily 
> increase (maybe stay the same between checks, but not go down) and I want an 
> alert if the check value is less than the previously-measured value.
>
> I guess there would be situations where "higher than" would also be useful.
i would go with a custom check script that does the logic (compare both
values, take the difference, alert if it's negative) and use perfdata to
realize what you would like to do.

If you have a look at
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/toc#!/icinga2/latest/doc/module/icinga2/chapter/plugin-check-commands#plugin-contrib-command-interfaces
you can see that there's interfaces_perfdata that takes the last
perfdata to calculate bandwidth utilitzation (or something like that).
And if you take the runtime macro service.perfdata you can take the last
perfdata and give it to your custom script.

Hope this helps,
Stephan

_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to