bundles/icinga2: add servicegroup for every service which has checks
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
Some checks failed
bundlewrap/pipeline/head There was a failure building this commit
This commit is contained in:
parent
0bc4b5439c
commit
d428572461
3 changed files with 23 additions and 10 deletions
|
@ -5,3 +5,11 @@ object HostGroup "group-${group.name}" {
|
|||
assign where "${group.name}" in host.vars.bw_groups
|
||||
}
|
||||
% endfor
|
||||
|
||||
% for bundle in sorted(bundles):
|
||||
object ServiceGroup "bundle-${bundle}" {
|
||||
display_name = "bw bundle ${bundle}"
|
||||
|
||||
assign where service.vars.bundle == "${bundle}"
|
||||
}
|
||||
% endfor
|
||||
|
|
|
@ -14,6 +14,7 @@ object Service "${service}" {
|
|||
% endif
|
||||
% endif
|
||||
% endfor
|
||||
vars.bundle = "${bundle_name}"
|
||||
vars.notification.sms = ${str(config.get('vars.notification.sms', False)).lower()}
|
||||
}
|
||||
% endfor
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue