Module: check_mk
Branch: master
Commit: 243dbde760e9f1533aee95d778579ff79256bfa3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=243dbde760e9f1…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Thu Aug 11 16:11:17 2011 +0200
SNMP: switch back END_OID handling to old style
---
modules/snmp.py | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/modules/snmp.py b/modules/snmp.py
index a7a165a..cd0f2b1 100644
--- a/modules/snmp.py
+++ b/modules/snmp.py
@@ -159,10 +159,7 @@ def snmpwalk_on_suboid(hostname, ip, oid):
return rowinfo
def extract_end_oid(prefix, complete):
- if prefix == complete:
- return complete.split('.')[-1]
- else:
- return complete[len(prefix):].lstrip('.')
+ return complete[len(prefix):].lstrip('.')
# sort OID strings numerically
def cmp_oids(o1, o2):