18 lines
393 B
Text
18 lines
393 B
Text
apply Service "iperf3" {
|
|
import "generic-service"
|
|
|
|
check_command = "iperf3"
|
|
check_interval = 4h
|
|
retry_interval = 15m
|
|
vars.notification_interval = 1d
|
|
|
|
for (k => v in host.vars.iperf3) {
|
|
if (match("_*", k)) {
|
|
vars[k.substr(1)] = v
|
|
} else {
|
|
vars["check_iperf3_" + k] = v
|
|
}
|
|
}
|
|
|
|
assign where host.vars.iperf3 != null
|
|
}
|