diff --git a/monitoring/icinga2/conf.d/services-new.conf b/monitoring/icinga2/conf.d/services-new.conf index 4589133..cc88317 100644 --- a/monitoring/icinga2/conf.d/services-new.conf +++ b/monitoring/icinga2/conf.d/services-new.conf @@ -99,3 +99,14 @@ apply Service "bird_bgp_sessions" { vars.notif_prio = "high" } + +apply Service for (ups_check => config in host.vars.ups) { + import "generic-service" + display_name = "UPS " + ups_check + check_command = "check_ups" + + vars.host = host.address + vars += config + + assign where host.vars.ups +}