Compare commits

..

4 commits

Author SHA1 Message Date
2d67a016b0 Add separate thresholds for upstream and downstream transfer rate
The old thresholds are the default and apply to both if they are not explicitly set.
2025-05-16 17:32:20 +02:00
f2d8454158 Improve code with temporary variable retransmits 2025-05-16 17:28:53 +02:00
9dd93fd7af Improve code formatting 2025-05-16 17:28:15 +02:00
2c2f25092e Add command and service definition for icinga2 2025-05-15 20:33:21 +02:00
2 changed files with 3 additions and 3 deletions

View file

@ -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" = {

View file

@ -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
} }
} }