Module: check_mk
Branch: master
Commit: 4f3d8a694137385a22808bb51087f2ccfc70e4f2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4f3d8a69413738…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed May 27 16:23:55 2015 +0200
#2280 agent_vsphere: now provides more information if the login attempt fails
In addition of <i>Cannot connect to vSphere Server. Maybe you provided wrong
credentials.
Please check your connection settings and try again."</i>, the agent now also
reports
extra information.
---
.werks/2280 | 12 ++++++++++++
ChangeLog | 1 +
agents/special/agent_vsphere | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/2280 b/.werks/2280
new file mode 100644
index 0000000..c59a1c5
--- /dev/null
+++ b/.werks/2280
@@ -0,0 +1,12 @@
+Title: agent_vsphere: now provides more information if the login attempt fails
+Level: 1
+Component: checks
+Class: feature
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1432736447
+
+In addition of <i>Cannot connect to vSphere Server. Maybe you provided wrong
credentials.
+Please check your connection settings and try again."</i>, the agent now also
reports
+extra information.
diff --git a/ChangeLog b/ChangeLog
index d31d837..d20d8fa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -196,6 +196,7 @@
* 1250 alcatel_timetra_cpu: New CPU Check for Alcatel Switches supporting the TIMETRA
MIB
* 2215 pfsense_status, pfsense_if: Two new checks to monitor the interfaces and
status of pfSense firewalls...
* 1251 lvm_pvs, lvm_vgs: New Checks for LVM volume groups and physical volumes...
+ * 2280 agent_vsphere: now provides more information if the login attempt fails...
* 1457 FIX: logins: new check renamed from "users" check...
NOTE: Please refer to the migration notes!
* 1762 FIX: lnx_thermal: Now ignoring trip points with level 0...
diff --git a/agents/special/agent_vsphere b/agents/special/agent_vsphere
index 2c52738..156e329 100755
--- a/agents/special/agent_vsphere
+++ b/agents/special/agent_vsphere
@@ -683,7 +683,7 @@ except Exception, e:
raise
error = "Cannot connect to vSphere Server. Maybe you provided wrong " \
"credentials. Please check your connection settings and try " \
- "again."
+ "again. Error message: %r" % e
if not error: