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$" } "--rate-up-warning" = { description = "defines the upstream rate's warning threshold" value = "$check_iperf3_rate_up_warning$" } "--rate-up-critical" = { description = "defines the upstream rate's critical threshold" value = "$check_iperf3_rate_up_critical$" } "--rate-down-warning" = { description = "defines the downstream rate's warning threshold" value = "$check_iperf3_rate_down_warning$" } "--rate-down-critical" = { description = "defines the downstream rate's critical threshold" value = "$check_iperf3_rate_down_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$" } } }