15 lines
386 B
Plaintext
15 lines
386 B
Plaintext
|
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
|