[checkmk-commits] Check_MK Git: check_mk: mbg_lantime_ng_state: Converting values to microseconds

Bastian Kuhn bk at mathias-kettner.de
Wed Feb 4 17:57:10 CET 2015


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

Author: Bastian Kuhn <bk at mathias-kettner.de>
Date:   Wed Feb  4 17:56:30 2015 +0100

mbg_lantime_ng_state: Converting values to microseconds

---

 checks/mbg_lantime_ng_state |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/checks/mbg_lantime_ng_state b/checks/mbg_lantime_ng_state
index 9445b5f..d6cd8c1 100644
--- a/checks/mbg_lantime_ng_state
+++ b/checks/mbg_lantime_ng_state
@@ -30,7 +30,10 @@ def check_mbg_lantime_nb_state(_no_item, params, info):
         '1': (2, 'not synchronized'),
         '2': (0, 'synchronized'),
     }
-    return check_mbg_lantime_state_common(states, _no_item, params, info)
+    converted_info = info[0]
+    #Convert to microseconds
+    converted_info[3] = float(converted_info[3]) * 1000
+    return check_mbg_lantime_state_common(states, _no_item, params, [converted_info])
 
 
 check_info["mbg_lantime_ng_state"] = {



More information about the checkmk-commits mailing list