[checkmk-commits] Check_MK Git: check_mk: FIX: cisco_temp_perf: add critical level to performance data

git version control git at mathias-kettner.de
Tue Aug 9 10:08:13 CEST 2011


Module: check_mk
Branch: master
Commit: e171c8c8676d650be0e1b7e54d45e1862f296204
URL:    http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e171c8c8676d650be0e1b7e54d45e1862f296204

Author: Mathias Kettner <mk at mathias-kettner.de>
Date:   Tue Aug  9 10:08:07 2011 +0200

FIX: cisco_temp_perf: add critical level to performance data

Thanks to Ulrich Kiermayer

---

 ChangeLog              |    1 +
 checks/cisco_temp_perf |    2 +-
 2 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9e96489..33cbc19 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -15,6 +15,7 @@
     * FIX: if64: fix UNKNOWN in case of non-unique ifAlias
     * FIX: lnx_if/if/if64: ignore percentual traffic levels on NICs without
            speed information.
+    * FIX: cisco_temp_perf: add critical level to performance data
     * brocade_port: check for Brocade FC ports has been rewritten with
       lots of new features.
     * AIX agent now simulates <<<netctr>>> output (by Jörg Linge)
diff --git a/checks/cisco_temp_perf b/checks/cisco_temp_perf
index e441a1d..ea9f4bf 100644
--- a/checks/cisco_temp_perf
+++ b/checks/cisco_temp_perf
@@ -69,7 +69,7 @@ def check_cisco_temp_perf(item, params, info):
         if line[0] == item or line[4] == item:
             temp = saveint(line[1])
             if temp != 0:
-                perfdata = [("temp", temp)]
+                perfdata = [("temp", temp, None, saveint(line[2]) )]
                 temptext = ", %d degrees (critical at %d)" % (temp, saveint(line[2]))
             else:
                 perfdata = []



More information about the checkmk-commits mailing list