bundlewrap/bundles/icinga2/files/icinga2/users.conf

15 lines
386 B
Plaintext
Raw Normal View History

2020-11-21 09:29:36 +00:00
object UserGroup "on-call_sms" {
display_name = "On-Call Support"
}
% for username in sorted(node.metadata.get('icinga2', {}).get('icinga_users', {})):
object User "${username}" {
display_name = "${username}"
enable_notifications = true
period = "24x7" # Is overwritten in notifications.conf
states = [ OK, Critical, Up, Down ]
types = [ Problem, Recovery ]
}
% endfor