Module: check_mk
Branch: master
Commit: b3ed2d8e62097cdb6127dc1c824575f6e5926f03
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b3ed2d8e62097c…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon Oct 14 19:05:15 2013 +0200
FIX: fix configuration of explicit SNMP community, allow unicode
---
ChangeLog | 1 +
modules/check_mk.py | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 11074eb..984e442 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
* FIX: inventory check now honors settings for exit code
* FIX: avoid exception nodes of cluster have different agent type
* FIX: continue inventory, if one check does not support it
+ * FIX: fix configuration of explicit SNMP community, allow unicode
Multisite:
* Speed-O-Meter: now measure only service checks. Host checks
diff --git a/modules/check_mk.py b/modules/check_mk.py
index df9dde5..ff09864 100755
--- a/modules/check_mk.py
+++ b/modules/check_mk.py
@@ -714,7 +714,7 @@ def snmp_base_command(what, hostname):
command = 'snmpbulkwalk'
# Handle V1 and V2C
- if type(credentials) == str:
+ if type(credentials) in [ str, unicode ]:
if is_bulkwalk_host(hostname):
options = '-v2c'
else: