54 lines
1.9 KiB
Text
54 lines
1.9 KiB
Text
object CheckCommand "iperf3" {
|
|
import "plugin-check-command"
|
|
|
|
command = [ "/home/nagios/check_iperf3/check_iperf3.py" ]
|
|
|
|
arguments = {
|
|
"--remote" = {
|
|
description = "iperf3 server to connect to"
|
|
value = "$check_iperf3_remote$"
|
|
required = true
|
|
}
|
|
"--port" = {
|
|
description = "iperf3 server port to connect to"
|
|
value = "$check_iperf3_port$"
|
|
}
|
|
"--downstream" = {
|
|
description = "measure downstream instead of upstream"
|
|
set_if = "$check_iperf3_downstream$"
|
|
}
|
|
"--bidir" = {
|
|
description = "test in both directions (normal and reverse), with both the client and server sending and receiving data simultaneously"
|
|
set_if = "$check_iperf3_bidir$"
|
|
}
|
|
"--udp" = {
|
|
description = "use UDP rather than TCP"
|
|
set_if = "$check_iperf3_udp$"
|
|
}
|
|
"--time" = {
|
|
description = "time in seconds to transmit for"
|
|
value = "$check_iperf3_time$"
|
|
}
|
|
"--bytes" = {
|
|
description = "number of bytes to transmit (instead of `time`)"
|
|
value = "$check_iperf3_bytes$"
|
|
}
|
|
|
|
"--rate-warning" = {
|
|
description = "defines the transfer rate's warning threshold"
|
|
value = "$check_iperf3_rate_warning$"
|
|
}
|
|
"--rate-critical" = {
|
|
description = "defines the transfer rate's critical threshold"
|
|
value = "$check_iperf3_rate_critical$"
|
|
}
|
|
"--retransmission-warning" = {
|
|
description = "defines the transfer retransmission's warning threshold"
|
|
value = "$check_iperf3_retransmission_warning$"
|
|
}
|
|
"--retransmission-critical" = {
|
|
description = "defines the transfer retransmission's critical threshold"
|
|
value = "$check_iperf3_retransmission_critical$"
|
|
}
|
|
}
|
|
}
|