I created an apply rule for notifications within an Icinga2 global zone:
apply Notification "mail-icingaadmin" to Service { import "mail-service-notification" user_groups = ["icingaadmins"] assign where host.vars.notification_type == "mail" }
This works.
In my setup, there is a master and a satellite node, both with the notification feature enabled.
I now want to control which node sends out the notification manually without having to disable the notification feature on one of the nodes.
Is something like this possible? I tried many things (setting a zone, command_endpoint etc.), but none of them worked.
Answer
Attribution
Source : Link , Question Author : PythonLearner , Answer Author : Community