Last active
August 29, 2015 14:06
-
-
Save maddyblue/f95d5ef1fefb5c59582c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
notification default { | |
print = true | |
} | |
notification nc1 { | |
print = true | |
} | |
notification nc2 { | |
print = true | |
} | |
notification nc3 { | |
print = true | |
} | |
notification nc4 { | |
print = true | |
} | |
lookup nc { | |
entry host=ny-* { | |
v = nc1 | |
} | |
entry host=nyhq-* { | |
v = nc2 | |
} | |
entry host=* { | |
v = nc1,nc3 | |
} | |
} | |
alert nc { | |
crit = 1 | |
critNotification = default,nc4 | |
critNotification = lookup("nc", "v") | |
# not allowed: | |
# critNotification = default,lookup("nc", "v") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
critNotification can now be specified multiple times, with the values merging with each other. The lookup function can return something already in the list and it will be triggered only once.