[checkmk-commits] Check_MK Git: check_mk: Fixed test code

Lars Michelsen lm at mathias-kettner.de
Fri Nov 23 15:43:00 CET 2012


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

Author: Lars Michelsen <lm at mathias-kettner.de>
Date:   Fri Nov 23 15:40:34 2012 +0100

Fixed test code

---

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

diff --git a/checks/uptime b/checks/uptime
index 0942d2c..9cb6749 100644
--- a/checks/uptime
+++ b/checks/uptime
@@ -37,7 +37,7 @@ def check_uptime(_no_item, _no_params, info):
     days = rem / 1440
     now = int(time.time())
     since = time.strftime("%c", time.localtime(now - uptime))
-    return ('xxx', "OK - up since %s (%dd %02d:%02d:%02d)" % (since, days, hours, minutes, seconds), [ ("uptime", uptime) ])
+    return (0, "OK - up since %s (%dd %02d:%02d:%02d)" % (since, days, hours, minutes, seconds), [ ("uptime", uptime) ])
 
 
 check_info["uptime"] = (check_uptime, "Uptime", 1, inventory_uptime)



More information about the checkmk-commits mailing list