Module: check_mk
Branch: master
Commit: 44700a549be6aabf1d426bd6c7604b56d7dbd3e6
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=44700a549be6aa…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Thu Mar 7 09:39:24 2019 +0100
ibm_svc_enclosurestats: Removed unit from perf value
Change-Id: Ie81727154b2dc5a75c02f7cc6f17ac69f091d2a7
---
checks/ibm_svc_enclosurestats | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/checks/ibm_svc_enclosurestats b/checks/ibm_svc_enclosurestats
index 4de4812..4b1ccd8 100644
--- a/checks/ibm_svc_enclosurestats
+++ b/checks/ibm_svc_enclosurestats
@@ -98,7 +98,7 @@ def check_ibm_svc_enclosurestats_power(item, _no_params, info):
for enclosure_id, stat_name, stat_current, _stat_peak, _stat_peak_time in info:
if enclosure_id == item and stat_name == "power_w":
stat_current = int(stat_current)
- perfdata = [('power', str(stat_current) + "Watt")]
+ perfdata = [('power', stat_current)]
return 0, "Enclosure %s Power Consumption is %s Watt" %
(enclosure_id,
stat_current),
perfdata