Skip to content

Instantly share code, notes, and snippets.

@maddyblue
Last active August 29, 2015 14:06
Show Gist options
  • Save maddyblue/f95d5ef1fefb5c59582c to your computer and use it in GitHub Desktop.
Save maddyblue/f95d5ef1fefb5c59582c to your computer and use it in GitHub Desktop.
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")
}
@maddyblue
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment