ZoneName usable in Director notification filter

Hello,

This has been already asked, but nobody had any answer:

We have a master zone (with 2 masters) and multiple satellite zones each with their 2 satellites.
We need the notifications for a satellite zone to be sent by the satellites of that zone, not the masters.
Is there any way to specify properly ZoneName on a notification apply in Director?

The issue is that we upload the notifications apply in the Director which pushes to the Configuration Master and since we use something like this
“assign_filter”: “host.zone=%22satellite_zone1%22”,
in the filter, the Notification objects are created on the master AND on that zone’s satellites.
At this moment we use workarounds to silently drop notifications triggered on masters for a satellite zone entity.

Is there any way for something like this in json form for Director to work?
{
“apply_to”: “host”,
“assign_filter”: “host.zone=ZoneName”,
“imports”: [
“template_mail-host-notification-custom”
],
“object_name”: “mail-host-notification-custom”,
“object_type”: “apply”,
“states”: [
“Down”,
“Up”
],
“types”: [
“Acknowledgement”,
“DowntimeEnd”,
“DowntimeRemoved”,
“DowntimeStart”,
“FlappingEnd”,
“FlappingStart”,
“Problem”
],
“user_groups”: [
“ops”
],
“period”: “workhours”,
“notification_interval”: “3600”,
“times_begin”: “240”
}

Thank you.

  • Director version (System - About): 1.10.2
  • Icinga Web 2 version and modules (System - About): 2.11.4
  • Icinga 2 version (icinga2 --version): 2.13.7
  • Operating System and version: Ubuntu 20.04
  • Webserver, PHP versions: Apache/2.4.41 , v7.4.3-4ubuntu2.19

So… since nobody answered, I’ll have to assume this is not possible at this moment…

Oh well… on to the Director Github issues page then, I guess… :slight_smile: