UPS w/ a few basic checks [2/2] -add the forgotten services part
This commit is contained in:
parent
f9633bcdae
commit
542dd75e88
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue