Module: check_mk
Branch: master
Commit: 3f96430466d03ed45f03bb807bfca63e570a26fe
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=3f96430466d03e…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Feb 5 15:11:07 2016 +0100
Fix scan functions fetching OID ending in .* for stored SNMP walks
---
modules/check_mk.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index b3503d2..5b249b9 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -1651,6 +1651,8 @@ def get_single_oid(hostname, ipaddress, oid):
# we need an exact match
if len(walk) == 1 and oid == walk[0][0]:
value = walk[0][1]
+ elif oid.endswith(".*") and len(walk) > 0:
+ value = walk[0][1]
else:
value = None