Notification Apply - Assign where exclude?

Hey,

I have a “Notifcation-Apply-Rule”.

apply Notification "Alle-Host-Benachrichtigung-via-Signal" to Host {
    import "Info-via-Signal-Host"

    interval = 3d
    assign where host.enable_notifications
    states = [ Down, Up ]
    types = [ Problem, Recovery ]
    users = [
        "User1",
        "User2",
    ]
}

Question:

Is there a method to exclude a host-group? I want to get notifications for all hosts excluded my printer host-group…

Best regards,
Philipp

try

assign where host.enable_notifications && !("YOUR PRINTER GROUP" in host.groups)

Thanks!

I’ll try that the next two days. I’m dropping the result here. :slight_smile:

1 Like