Module: check_mk
Branch: master
Commit: 8889df238bf9d6a695b872667d0a056b92d03633
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8889df238bf9d6…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Feb 10 10:17:24 2017 +0100
fixed non-lexicographic order in oids to walk
Change-Id: I2fcf666dd705bf8c71c983e60a786d26c65e9abe
---
modules/check_mk.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index a4bb0cd..10ce0f7 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -3183,7 +3183,7 @@ def do_snmpwalk_on(hostname, filename):
".1.3.6.1.4.1" # SNMPv2-SMI::enterprises
] + opt_extra_oids
- for oid in oids_to_walk:
+ for oid in sorted(oids_to_walk, key = lambda x: map(int,
x.strip(".").split("."))):
try:
console.verbose("Walk on \"%s\"..." % oid)