bundles/icinga2: admins shall receive more notifications
All checks were successful
bundlewrap/pipeline/head This commit looks good
All checks were successful
bundlewrap/pipeline/head This commit looks good
This commit is contained in:
parent
958f5893e6
commit
5f5c3d5207
1 changed files with 6 additions and 1 deletions
|
@ -1,5 +1,5 @@
|
|||
object UserGroup "on-call_sms" {
|
||||
display_name = "On-Call Support"
|
||||
display_name = "On-Call Support (with SMS)"
|
||||
}
|
||||
|
||||
% for username, config in sorted(node.metadata.get('icinga2', {}).get('icinga_users', {}).items()):
|
||||
|
@ -7,8 +7,13 @@ object User "${username}" {
|
|||
display_name = "${username}"
|
||||
enable_notifications = true
|
||||
period = "24x7"
|
||||
% if config['is_admin']:
|
||||
states = [ OK, Warning, Critical, Up, Down ]
|
||||
types = [ Problem, Recovery, Custom, Acknowledgement ]
|
||||
% else:
|
||||
states = [ OK, Warning, Critical, Up, Down ]
|
||||
types = [ Problem, Recovery ]
|
||||
% endif
|
||||
|
||||
% if config['is_admin'] and (config['email'] or config['phone']):
|
||||
groups = [ "on-call_sms" ]
|
||||
|
|
Loading…
Reference in a new issue