Module: check_mk
Branch: master
Commit: 33d617e5fcd32f8b0788771503b2b24073b0f79d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=33d617e5fcd32f…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Thu Jul 31 15:43:05 2014 +0200
Added missing perfdata
---
checks/raritan_pdu_inlet | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/raritan_pdu_inlet b/checks/raritan_pdu_inlet
index 266e380..2aafa1c 100644
--- a/checks/raritan_pdu_inlet
+++ b/checks/raritan_pdu_inlet
@@ -36,7 +36,7 @@ capabilities = {
}
units = {
- '-1' : "",
+ '-1' : "kVA",
'0' : "",
'1' : "V",
'2' : "A",
@@ -89,7 +89,7 @@ def check_raritan_pdu_inlet_summary(item, _no_params, info):
digits = int(digits)
sensor_value = float(sensor_value) / 10**digits
- yield 0, "Value: %.2f %s" % ( sensor_value, units[unit] )
+ yield 0, "Value: %.2f %s" % ( sensor_value, units[unit] ), [
(units[unit], sensor_value ) ]
sensor_state = int(sensor_state)
sensor_text = "Sensor State: " + sensor_states[sensor_state]