From 542dd75e88f96630377c34801dd8c6b479908334 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Nov 2019 22:49:26 +0200 Subject: [PATCH] UPS w/ a few basic checks [2/2] -add the forgotten services part --- monitoring/icinga2/conf.d/services-new.conf | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 +}