Module: check_mk
Branch: master
Commit: 46458abc8e77395eae364d649fcc0a71843f8f83
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=46458abc8e7739…
Author: Götz Golla <gg(a)mathias-kettner.de>
Date: Thu Oct 24 10:52:18 2013 +0200
FIX: check lgb_pdu_aux can now handle several items of one type with the
same TypeIndex but different SystemLabels
---
checks/lgp_pdu_aux | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/checks/lgp_pdu_aux b/checks/lgp_pdu_aux
index cc228d0..9c7c074 100644
--- a/checks/lgp_pdu_aux
+++ b/checks/lgp_pdu_aux
@@ -116,13 +116,13 @@ def inventory_lgp_pdu_aux(info):
for id, pdu in info.iteritems():
# Using SystemLabel as index. But it is not uniq in all cases.
# Adding the Type-Index to prevent problems
- inv.append((pdu['Type'] + '-' + pdu['TypeIndex'], None))
+ inv.append((pdu['Type'] + '-' + pdu['SystemLabel'] +
'-' + pdu['TypeIndex'], None))
return inv
def check_lgp_pdu_aux(item, params, info):
info = lgp_pdu_aux_fmt(info)
for id, pdu in info.iteritems():
- if item == pdu['Type'] + '-' + pdu['TypeIndex']:
+ if item == pdu['Type'] + '-' + pdu['SystemLabel'] +
'-' + pdu['TypeIndex']:
state = 0
output = []
perfdata = []