Compare commits
4 commits
c3699bcbe9
...
2d67a016b0
Author | SHA1 | Date | |
---|---|---|---|
2d67a016b0 | |||
f2d8454158 | |||
9dd93fd7af | |||
2c2f25092e |
2 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
object CheckCommand "iperf3" {
|
object CheckCommand "iperf3" {
|
||||||
import "plugin-check-command"
|
import "plugin-check-command"
|
||||||
|
|
||||||
command = [ "/home/nagios/check_iperf3/check_iperf3.py" ]
|
command = [ "/home/nagios/check_iperf3_check_iperf3.py" ]
|
||||||
|
|
||||||
arguments = {
|
arguments = {
|
||||||
"--remote" = {
|
"--remote" = {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
apply Service "iperf3" {
|
apply Service "iperf3" {
|
||||||
import "generic-service"
|
import "generic-service"
|
||||||
|
|
||||||
check_command = "iperf3"
|
check_command = "check_iperf3"
|
||||||
check_interval = 4h
|
check_interval = 4h
|
||||||
retry_interval = 15m
|
retry_interval = 15m
|
||||||
vars.notification_interval = 1d
|
vars.notification_interval = 1d
|
||||||
|
@ -10,7 +10,7 @@ apply Service "iperf3" {
|
||||||
if (match("_*", k)) {
|
if (match("_*", k)) {
|
||||||
vars[k.substr(1)] = v
|
vars[k.substr(1)] = v
|
||||||
} else {
|
} else {
|
||||||
vars["check_iperf3_" + k] = v
|
vars["check_iperf3+_" + k] = v
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue