apply Notification "mail-icingaadmin" to Service {
import "mail-service-notification"
user_groups = host.vars.notification.mail.groups
users = host.vars.notification.mail.users
if(service.name == "yum"){
interval = 24h
}
assign where host.vars.notification.mail && host.vars.emergency
}
Notifications are working and are sending every 30 minutes. I’d like to be able to change the notification interval for the yum service only. Trying to set it like the above gives:
Thank you for the quick reply, but I did spot this shortly after the question was posted.
Sorry, I should have updated the question sooner.
The icinga service is now running, however I’m not getting the desired outcome of the yum process notifications only being sent every 24hrs. (I just received another email a few minutes ago)
It seemed to have worked for 1 day only… I’m just now getting the notifications again. It seems like the interval was for 24 hours and then went back to being every 30 minutes.
The notification object has not been changed.
Merged the new topic into the existing one. Next time, please be patient and wait.
You can speed things up with providing more details about your problem. This includes full configuration on how to reproduce this, object inspection from object list and the REST API, and with notifications, logs and debug logs. If you’re not sure what to provide, check the troubleshooting docs.