Module: check_mk
Branch: master
Commit: f0b1d9f943952eba47df0d6c5841f9dbe5db1176
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f0b1d9f943952e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Nov 27 11:21:13 2014 +0100
Fix yesterdays bug with You can only use one of OID_END, OID_STRING...
---
modules/snmp.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/snmp.py b/modules/snmp.py
index 6ba2e4b..4e72000 100644
--- a/modules/snmp.py
+++ b/modules/snmp.py
@@ -130,7 +130,7 @@ def get_snmp_table(hostname, ip, check_type, oid_info):
# similar: we fill in the complete OID of the entry, either as
# string or as binary UTF-8 encoded number string
if column in [ OID_END, OID_STRING, OID_BIN, OID_END_BIN,
OID_END_OCTET_STRING ]:
- if index_column >= 0:
+ if index_column >= 0 and index_column != colno:
raise MKGeneralException("Invalid SNMP OID specification in
implementation of check. "
"You can only use one of OID_END, OID_STRING, OID_BIN,
OID_END_BIN and OID_END_OCTET_STRING.")
index_column = colno