Module: check_mk
Branch: master
Commit: 9c85a674928a574c78eac29ca389d7bd1d1f3e1b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9c85a674928a57…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu May 5 18:22:59 2011 +0200
Make sanity check for OIDs requested by checks
---
modules/snmp.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/snmp.py b/modules/snmp.py
index b76a132..e0fe30d 100644
--- a/modules/snmp.py
+++ b/modules/snmp.py
@@ -178,6 +178,9 @@ def get_snmp_table(hostname, ip, oid_info):
else:
oid, suboids, targetcolumns = oid_info
+ if not oid.startswith("."):
+ raise MKGeneralException("OID definition '%s' does not begin with
." % oid)
+
all_values = []
index_column = -1
index_format = None