2020-11-21 22:46:29 +01:00
|
|
|
% for group in sorted(repo.groups):
|
|
|
|
object HostGroup "group-${group.name}" {
|
2021-02-17 10:56:18 +01:00
|
|
|
display_name = "bw group ${group.name}"
|
2020-11-21 22:46:29 +01:00
|
|
|
|
2021-02-17 10:56:18 +01:00
|
|
|
assign where "${group.name}" in host.vars.bw_groups
|
2020-11-21 22:46:29 +01:00
|
|
|
}
|
|
|
|
% endfor
|
2020-11-21 23:04:15 +01:00
|
|
|
|
|
|
|
% for bundle in sorted(bundles):
|
|
|
|
object ServiceGroup "bundle-${bundle}" {
|
2021-02-17 10:56:18 +01:00
|
|
|
display_name = "bw bundle ${bundle}"
|
2020-11-21 23:04:15 +01:00
|
|
|
|
2021-02-17 10:56:18 +01:00
|
|
|
assign where service.vars.bundle == "${bundle}"
|
2020-11-21 23:04:15 +01:00
|
|
|
}
|
|
|
|
% endfor
|
2020-11-22 08:24:44 +01:00
|
|
|
|
|
|
|
object ServiceGroup "checks_with_mail" {
|
2021-02-17 10:56:18 +01:00
|
|
|
display_name = "Checks which send E-Mails"
|
2020-11-22 08:24:44 +01:00
|
|
|
|
2021-02-17 10:56:18 +01:00
|
|
|
assign where service.vars.notification.mail == true
|
2021-12-04 20:07:36 +01:00
|
|
|
ignore where host.vars.notification.mail == false
|
2020-11-22 08:24:44 +01:00
|
|
|
}
|
|
|
|
|
2021-01-02 12:58:52 +01:00
|
|
|
object HostGroup "checks_with_sms" {
|
2021-02-17 10:56:18 +01:00
|
|
|
display_name = "Hosts which send SMS"
|
2021-01-02 12:58:52 +01:00
|
|
|
|
2021-02-17 10:56:18 +01:00
|
|
|
assign where host.vars.notification.sms == true
|
2021-01-02 12:58:52 +01:00
|
|
|
}
|
|
|
|
|
2020-11-22 08:24:44 +01:00
|
|
|
object ServiceGroup "checks_with_sms" {
|
2021-02-17 10:56:18 +01:00
|
|
|
display_name = "Checks which send SMS"
|
2020-11-22 08:24:44 +01:00
|
|
|
|
2021-02-17 10:56:18 +01:00
|
|
|
assign where service.vars.notification.sms == true
|
2021-12-04 20:07:36 +01:00
|
|
|
ignore where host.vars.notification.sms == false
|
2020-11-22 08:24:44 +01:00
|
|
|
}
|
2023-05-21 06:59:34 +02:00
|
|
|
|
|
|
|
object ServiceGroup "statuspage" {
|
|
|
|
display_name = "Checks which are show on the public status page"
|
|
|
|
|
|
|
|
assign where service.vars.notification.sms == true
|
|
|
|
ignore where host.vars.notification.sms == false
|
|
|
|
ignore where host.vars.show_on_statuspage == false
|
|
|
|
}
|