Module: check_mk
Branch: master
Commit: f754246e8e4bcd8bf458f07bc47bccbb62ba5f3c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f754246e8e4bcd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 3 13:10:13 2015 +0100
#2086 FIX apc_ats_status: Fixed exception when source different than selected source
---
.werks/2086 | 10 ++++++++++
ChangeLog | 1 +
checks/apc_ats_status | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/2086 b/.werks/2086
new file mode 100644
index 0000000..afbbe99
--- /dev/null
+++ b/.werks/2086
@@ -0,0 +1,10 @@
+Title: apc_ats_status: Fixed exception when source different than selected source
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.2.7i1
+Date: 1425384603
+
+
diff --git a/ChangeLog b/ChangeLog
index 47f18ca..26f5198 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -216,6 +216,7 @@
* 2082 FIX: jolokia_metrics.mem: Fixed levels on total memory usage
* 2049 FIX: window agents: prevent errors with invalid plugin output...
* 2050 FIX: netapp_api_if: Fixed invalid speed warning for virtual interface
groups...
+ * 2086 FIX: apc_ats_status: Fixed exception when source different than selected
source
Multisite:
* 1758 Improved exception hander: Shows details without additional debug request,
added mailto link for error report...
diff --git a/checks/apc_ats_status b/checks/apc_ats_status
index 73590a8..82bec6c 100644
--- a/checks/apc_ats_status
+++ b/checks/apc_ats_status
@@ -39,7 +39,7 @@ def check_apc_ats_status(_no_item, source, info):
if source != selected_source:
state = 2
messages.append("Power source Changed from %s to %s(!!)" % \
- (source[source], sources[selected_source]))
+ (sources[source], sources[selected_source]))
else:
messages.append("Power source %s selected" % sources[source])