Module: check_mk
Branch: master
Commit: 128364670805a4ee64b1712dccca8cacd17bcd64
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=128364670805a4…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Wed Jun 14 13:34:15 2017 +0200
4821 FIX heartbeat_crm: Made Check more robust
Change-Id: Ib8dda31cffdcacd3173b3a017355ea12576a89ce
---
.werks/4821 | 10 ++++++++++
checks/heartbeat_crm | 4 ++--
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/.werks/4821 b/.werks/4821
new file mode 100644
index 0000000..de72034
--- /dev/null
+++ b/.werks/4821
@@ -0,0 +1,10 @@
+Title: heartbeat_crm: Made Check more robust
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1497440024
+Class: fix
+
+
diff --git a/checks/heartbeat_crm b/checks/heartbeat_crm
index 8f88814..75e427e 100644
--- a/checks/heartbeat_crm
+++ b/checks/heartbeat_crm
@@ -92,9 +92,9 @@ def heartbeat_crm_parse_general(info):
num_nodes = int(line[0])
num_resources = int(line[3])
- elif ' '.join(line[1:3]).rstrip('.,') == 'Nodes
configured':
+ elif ' '.join(line[1:3]).rstrip('.,').lower() == 'nodes
configured':
num_nodes = int(line[0])
- elif ' '.join(line[1:3]).rstrip('.,') == 'Resources
configured':
+ elif ' '.join(line[1:3]).rstrip('.,').lower() == 'resources
configured':
num_resources = int(line[0])
return (last_updated, dc, num_nodes, num_resources)