Code

Fixed wrong perfdata label for output traffic in check_mrtgtraf
authorMatthias Eble <psychotrahe@gmx.de>
Fri, 22 May 2009 21:57:36 +0000 (23:57 +0200)
committerMatthias Eble <psychotrahe@gmx.de>
Fri, 22 May 2009 21:57:36 +0000 (23:57 +0200)
check_mrtgtraf used the label "in" for both input and output traffic.
This fixed, now.

NEWS
plugins/check_mrtgtraf.c

diff --git a/NEWS b/NEWS
index c5d820f8ea151debd386dc1d4619acdf75a5775f..4a1628a6e93d5d78a421762054bececbe4846e72 100644 (file)
--- a/NEWS
+++ b/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)
index 3232f1e7a7681525afee1b76f58eb773f0a7aac8..376a50995754dd0ba8257c3107730150964850da 100644 (file)
@@ -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));