Hi, On Mon Sep 12, 2016 at 13:23:51PM -0400, Rob DeSanno wrote: > For example, instead of sending out a notification when every host fails a > ping check, only send one out if 10%, or more, hosts fail. > > We want something a little more complicated than that but the basic theory > should be the same, assuming its possible. Anyone have any experience or > thoughts on how to go about doing this? I don't think thats possible using the Notification object. But you could use the REST API (or the livestatus socket) to fetch information about hosts and services. Either run this script at a regular interval or perhaps the [1] event stream feature of the REST API can be used to fetch state changes in real time.
My 2 euro cents, Andreas. [1] http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/icinga2-api#icinga2-api-event-streams -- "Things that try to look like things often do look more like things than things. Well-known fact." Granny Weatherwax - "Wyrd sisters"
signature.asc
Description: PGP signature
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users