Jelajahi Sumber

Fixed wrong perfdata label for output traffic in check_mrtgtraf

check_mrtgtraf used the label "in" for both input and output traffic.
This fixed, now.
Matthias Eble 16 tahun lalu
induk
melakukan
221cb49206
2 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 1 0
      NEWS
  2. 1 1
      plugins/check_mrtgtraf.c

+ 1 - 0
NEWS

@@ -35,6 +35,7 @@ This file documents the major additions and syntax changes between releases.
 	Fixed check_mysql* not using password set in my.cnf (#2531905 - Ben Timby) - Specify an empty password explicitly if you need to override it.
 	Fixed awk subst.in/subst script path error (#2722832 - Martin Foster)
 	check_http: Add SSL/TLS hostname extension support (SNI) - (#1939022 - Joe Presbrey)
+	Fixed wrong perfdata label for output traffic in check_mrtgtraf (#2654308 - Gavin Williams)
 
 1.4.13 25th Sept 2008
 	Fix Debian bug #460097: check_http --max-age broken (Hilko Bengen)

+ 1 - 1
plugins/check_mrtgtraf.c

@@ -199,7 +199,7 @@ main (int argc, char **argv)
 	                   (int)incoming_warning_threshold, incoming_warning_threshold,
 	                   (int)incoming_critical_threshold, incoming_critical_threshold,
 	                   TRUE, 0, FALSE, 0),
-	          fperfdata("in", adjusted_outgoing_rate, outgoing_speed_rating,
+	          fperfdata("out", adjusted_outgoing_rate, outgoing_speed_rating,
 	                   (int)outgoing_warning_threshold, outgoing_warning_threshold,
 	                   (int)outgoing_critical_threshold, outgoing_critical_threshold,
 	                   TRUE, 0, FALSE, 0));