Module: check_mk
Branch: master
Commit: bc8e9a36dba89db07a38968c4eeeaa1bbd4206dd
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=bc8e9a36dba89d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 16 10:31:27 2011 +0200
--snmpwalk now always prefixes OIDs with dot
---
modules/check_mk.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 4fc165e..11671b9 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -2822,8 +2822,8 @@ def do_snmpwalk_on(hostname, filename):
while value[-1] != '"':
value += f.readline().strip()
- if oid.startswith("."):
- oid = oid[1:]
+ if not oid.startswith("."):
+ oid = "." + oid
oids.append(oid)
values.append(value)
for oid, value in zip(oids, values):