Module: check_mk
Branch: master
Commit: 42c67e7ffdcae951146e505bb0941df505c19571
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=42c67e7ffdcae9…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Tue Sep 11 11:11:42 2012 +0200
SNMP scan: fixed case where = was contained in SNMP info
---
ChangeLog | 1 +
modules/check_mk.py | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 9dff937..16248b1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -7,6 +7,7 @@
* Allow subcheck to be in a separate file (e.g. foo.bar)
* Contacts can now define *_notification_commands attributes which can now
override the default notification command check-mk-notify
+ * SNMP scan: fixed case where = was contained in SNMP info
Checks & Agents:
* New Checks for Siemens Blades (BX600)
diff --git a/modules/check_mk.py b/modules/check_mk.py
index 46e01d2..230cfeb 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -710,7 +710,7 @@ def get_single_oid(hostname, ipaddress, oid):
snmp_process = os.popen(command, "r")
line = snmp_process.readline().strip()
- item, value = line.split("=")
+ item, value = line.split("=", 1)
value = value.strip()
if opt_debug:
sys.stdout.write("SNMP answer: ==> [%s]\n" % value)