Module: check_mk
Branch: master
Commit: 249407118f7ba4ddaf116a80c690a08ee56bd074
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=249407118f7ba4…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 8 15:49:17 2018 +0100
6854 FIX Host diagnose was not using SNMPv3 credentials correctly
The host diagnose page was not respecting the SNMPv3 credentials provided by
the user on the host diagnose page. It was doing a SNMPv1/v2 test instead
of SNMPv3 instead of using v3.
Change-Id: I2223339e25d910051f0f29a589558020cbe56021
---
.werks/6854 | 13 +++++++++++++
cmk_base/automations/check_mk.py | 2 +-
2 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/6854 b/.werks/6854
new file mode 100644
index 0000000..bd8a9c4
--- /dev/null
+++ b/.werks/6854
@@ -0,0 +1,13 @@
+Title: Host diagnose was not using SNMPv3 credentials correctly
+Level: 1
+Component: wato
+Class: fix
+Compatible: compat
+Edition: cre
+State: unknown
+Version: 1.6.0i1
+Date: 1541688459
+
+The host diagnose page was not respecting the SNMPv3 credentials provided by
+the user on the host diagnose page. It was doing a SNMPv1/v2 test instead
+of SNMPv3 instead of using v3.
diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py
index 11bcbaa..c1840e0 100644
--- a/cmk_base/automations/check_mk.py
+++ b/cmk_base/automations/check_mk.py
@@ -1195,7 +1195,7 @@ class AutomationDiagHost(Automation):
access_data = {
"hostname": hostname,
"ipaddress": ipaddress,
- "credentials": snmp_community,
+ "credentials": config.snmp_credentials_of(hostname),
}
data = snmp.get_snmp_table(
access_data,