Module: check_mk
Branch: master
Commit: 71e43f4420945737dbd9dc1238d8c7dd27e7bce5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=71e43f44209457…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Tue Aug 12 19:24:12 2014 +0200
rms200_temp: Fix: Now use correct oid for temperature
---
checks/rms200_temp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/checks/rms200_temp b/checks/rms200_temp
index a0749c0..bfa008e 100644
--- a/checks/rms200_temp
+++ b/checks/rms200_temp
@@ -33,14 +33,14 @@ def check_rms200_temp(item, params, info):
for line in info:
if line[0] == item:
warn, crit = params
- temp = saveint(line[2])/100
+ temp = float(line[2])/100
name = line[1]
state = 0
if temp >= crit:
state = 2
elif temp >= warn:
state = 1
- message = "Current Temperature: %d °C (%s)" % (temp, name)
+ message = "Current Temperature: %.2f °C (%s)" % (temp, name)
perf = [ ('temp', temp, warn, crit ) ]
return state, message, perf
return 3, "No information found about the device"
@@ -55,7 +55,7 @@ check_info["rms200_temp"] = {
"snmp_info" : ( ".1.3.6.1.4.1.1909.13.1.1.1", [
1, # ID,
2, # Name,
- 3, # Temp
+ 5, # Temp
] ),
}