I tried this += assignment on the variable but it’s not doing the job.
Tried also the += in the host definition thinking it’s overwriting the var bur it’s not working either.
Is there a way to simply add a user or group in notifications for a service only?
Hello @darxmurf
You could use an apply rule for the notification for the service only.
apply Notification "mail-service-notification-Other-IT-Admins" to Service {
import "mail-service-notification"
groups = [ "Other-IT-Admins" ]
assign where match ( "Check Microscope Sync", service.name )
}
Hi, @aclark6996
Thanks, this is working. The variable name was user_groups instead of groups but it’s working.
New question then as this notification definition added my group to the existing list but is there also possible to replace completely the defined groups for a service?
Notifications for this server will go to the IT-Admins and General-Mail but for a specific service, I want to send notif only to one group.