UPS w/ a few basic checks [2/2] -add the forgotten services part

This commit is contained in:
root 2019-11-01 22:49:26 +02:00
parent f9633bcdae
commit 542dd75e88
1 changed files with 11 additions and 0 deletions

View File

@ -99,3 +99,14 @@ apply Service "bird_bgp_sessions" {
vars.notif_prio = "high" 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
}