Module: check_mk
Branch: master
Commit: 0b932520d1bdf7d98f8ca40ec76081904a9ba0b1
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0b932520d1bdf7…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Fri Jul 17 13:46:58 2015 +0200
bvip_video_alerts: Minor fix for item, replace x00
---
checks/bvip_video_alerts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/bvip_video_alerts b/checks/bvip_video_alerts
index 3bc2cca..5b2ee12 100644
--- a/checks/bvip_video_alerts
+++ b/checks/bvip_video_alerts
@@ -27,11 +27,11 @@
def inventory_bvip_video_alerts(info):
for cam, alerts in info:
- yield cam, None
+ yield cam.replace('\x00',""), None
def check_bvip_video_alerts(item, _no_params, info):
for cam, alerts in info:
- if cam == item:
+ if cam.replace('\x00',"") == item:
if alerts != '0':
return 2, "Device on Alarm State"
else: