Module: check_mk
Branch: master
Commit: 0f4455276f1f8342e2e7d45d49802c2b923ecb93
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0f4455276f1f83…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Jun 16 15:51:48 2016 +0200
fixed bug in werk 3544
---
modules/automation.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/automation.py b/modules/automation.py
index f06da25..1cf3683 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -738,9 +738,7 @@ def automation_diag_host(args):
# ('authPriv', 'md5', '11111111', '22222222',
'DES', '33333333')
# Insert preconfigured communitiy
- if test != "snmpv3" and snmp_community:
- explicit_snmp_communities[hostname] = snmp_community
- else:
+ if test == "snmpv3":
if snmpv3_use:
snmpv3_credentials = [snmpv3_use]
if snmpv3_use in ["authNoPriv", "authPriv"]:
@@ -748,6 +746,8 @@ def automation_diag_host(args):
if snmpv3_use == "authPriv":
snmpv3_credentials.extend([snmpv3_privacy_proto,
snmpv3_privacy_password])
explicit_snmp_communities[hostname] = tuple(snmpv3_credentials)
+ elif snmp_community:
+ explicit_snmp_communities[hostname] = snmp_community
# Determine SNMPv2/v3 community
if hostname not in explicit_snmp_communities: