Markus, thanks alot for pointing me in the right direction!
Whilst using host.zone did not change the behaviour, i've been able to restrict the notifications to specific endpoint(s) by applying the notifications using constants as such: apply Notification "host-notify-by-mail" to Host { [...] assign where host.vars.notification.mail && ZoneName == "satellite-zone-2" } (using NodeName instead of ZoneName works as well) Best regards, Markus -----Original message----- > From:Markus Frosch <mar...@lazyfrosch.de <mailto:mar...@lazyfrosch.de> > > Sent: Saturday 31st January 2015 17:26 > To: Icinga User's Corner <icinga-users@lists.icinga.org > <mailto:icinga-users@lists.icinga.org> > > Subject: Re: [icinga-users] Restrict notifications to one specific > (satellite) endpoint > > On 31.01.2015 14:47, Markus Joosten wrote: > > thanks alot for your response. > > Actually i would like the master _not_ to notify for hosts in the satellite > > zones. > > Only the satellite endpoints should generate alerts for the hosts in their > > zone. > > > > The master should only generate alerts for hosts located in the parent zones > > > > As i've written before, it seems to be impossible to accomplish this - the > > master always sends notifications for the child zones as well. > > > > Unless i disable the notification on the master, which is not what i want > > of course. > > That should be doable with different notification rules for master and > satellite, or a const helper. > > The attribute host.zone is internally set due to the zones loading. > > apply Notification ... { > ... > assign where host.zone == "master" > //assign where host.zone == ZoneName > } > > Have not tested this! > > But please try and give us feedback. > > Cheers from FOSDEM :) > Markus > > -- > mar...@lazyfrosch.de <mailto:mar...@lazyfrosch.de> > http://www.lazyfrosch.de <http://www.lazyfrosch.de> > > _______________________________________________ > icinga-users mailing list > icinga-users@lists.icinga.org <mailto:icinga-users@lists.icinga.org> > https://lists.icinga.org/mailman/listinfo/icinga-users >
_______________________________________________ icinga-users mailing list icinga-users@lists.icinga.org https://lists.icinga.org/mailman/listinfo/icinga-users