[checkmk-commits] Check_MK Git: check_mk: Fix: Changed pdu_gude from INT to FLOAT output

git version control git at mathias-kettner.de
Mon Nov 5 17:16:08 CET 2012


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

Author: Bastian Kuhn <bk at mathias-kettner.de>
Date:   Mon Nov  5 17:15:16 2012 +0100

Fix: Changed pdu_gude from INT to FLOAT output

---

 checks/pdu_gude.include |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/checks/pdu_gude.include b/checks/pdu_gude.include
index 53f77f9..279b013 100644
--- a/checks/pdu_gude.include
+++ b/checks/pdu_gude.include
@@ -52,7 +52,7 @@ def check_pdu_gude(item, params, info):
         perf = []
         state = 0
         for pos, data in units.items():
-            value = saveint(values[pos])
+            value = savefloat(values[pos])
             unit, div = data
             if div:
                 value = value / div
@@ -73,7 +73,7 @@ def check_pdu_gude(item, params, info):
                 elif warn != None and value > warn:
                     state = max(state, 1)
                     label = "(!)"
-            message.append("%d%s%s" % (value, unit, label))
+            message.append("%.2f%s%s" % (value, unit, label))
 
         return(state, nagios_state_names[0] + " - " + ", ".join(message), perf)
  



More information about the checkmk-commits mailing list