My icinga is a distributed architecture. I am expecting the mail-notification script will be executed from my Master Server and not from clients or satellites
But the script itself is not being called
why you want to create a notification-plugin command? If you made a kickstart in the director, you should be able to create a notification template with all options and on this you can built you notification. see screenshot
Hi, so that’s a little bit strange. So do you have at the menu point director -> commands-> external commands a command notification?
In this menu point you should have many check_commands and also mail-host and mail-service notification.
Afaik this is not necessary, as notifications are sent by the master by default.
The only time I use the cluster zone setting is on host templates to assign hosts to a satellite zone.
All other templates have this setting untouched and thus are saved in the director-global zone, so every zone can use those templates.
Did you check the log around the time you are expecting the notifications?
How does the history of the service look like? Is there an indication of the notification not being sent?
I know the script itself is not called when a new alert is raised as i have added the below line in the script itself to push in a separate text file that I am executing…
echo “date I am executing” > /var/log/icinga2/notification.log
If this is all, you are missing the states/types for which the user(s) should be notified.
You have to set those on the notification and the user level.
Please take the time to check the “Solution” checkbox on the post that solved your problem. This way you give kudos and show others that you don’t need any more help