Module: check_mk
Branch: master
Commit: f4b196c78f05978c768da8d3d9920054c10e0aa2
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f4b196c78f0597…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Fri May 5 11:47:53 2017 +0200
4640 FIX heartbeat_crm: Fixed crash if output contains capital letters
Change-Id: I97d10b4aaa1c63912ec44d6d6d2ea8016194b2e4
---
.werks/4640 | 10 ++++++++++
checks/heartbeat_crm | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/4640 b/.werks/4640
new file mode 100644
index 0000000..9803425
--- /dev/null
+++ b/.werks/4640
@@ -0,0 +1,10 @@
+Title: heartbeat_crm: Fixed crash if output contains capital letters
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1493977561
+Class: fix
+
+
diff --git a/checks/heartbeat_crm b/checks/heartbeat_crm
index e3ff61d..8f88814 100644
--- a/checks/heartbeat_crm
+++ b/checks/heartbeat_crm
@@ -214,7 +214,7 @@ def heartbeat_crm_parse_resources(info):
for parts in info:
line = " ".join(parts)
- if line == 'Failed actions:':
+ if line.lower() == 'failed actions:':
blockStart = False
elif not blockStart and line == 'Full list of resources:':
blockStart = True