Module: check_mk
Branch: master
Commit: fb7ecf0fe3298ed75167c1d18b9cf7fdf6ad4aa0
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fb7ecf0fe3298e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Aug 11 16:29:38 2011 +0200
SNMP: Allow to specify empty OID with ""
---
modules/snmp.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/snmp.py b/modules/snmp.py
index 8c474c2..198f143 100644
--- a/modules/snmp.py
+++ b/modules/snmp.py
@@ -199,7 +199,8 @@ def get_snmp_table(hostname, ip, oid_info):
fetchoid = oid
if suboid:
fetchoid += "." + str(suboid)
- fetchoid += "." + str(column)
+ if column != "":
+ fetchoid += "." + str(column)
# column may be integer or string like "1.5.4.2.3"
colno += 1