Module: check_mk
Branch: master
Commit: d9f019ff7a83aa7e4718f2cd4c76d53395cb80f3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d9f019ff7a83aa…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Jan 20 16:32:10 2016 +0100
#2910 FIX heartbeat_crm: Fixed crash in case of "number of resources" paramters
have been configured
---
.werks/2910 | 9 +++++++++
ChangeLog | 1 +
checks/heartbeat_crm | 2 +-
3 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/.werks/2910 b/.werks/2910
new file mode 100644
index 0000000..3129339
--- /dev/null
+++ b/.werks/2910
@@ -0,0 +1,9 @@
+Title: heartbeat_crm: Fixed crash in case of "number of resources" paramters
have been configured
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.2.7i4
+Date: 1453303675
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 611e810..996e4c7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -196,6 +196,7 @@
* 2907 FIX: chrony: Fixed exception in discovery function when daemon is not running
* 2908 FIX: oracle_locks: Fixed handling of ORA- errors as sent from e.g. older AIX
agents
* 2909 FIX: postfix_mailq: Fixed crash when postfix mailq size can not be read
+ * 2910 FIX: heartbeat_crm: Fixed crash in case of "number of resources"
paramters have been configured
Multisite:
* 2684 Added icons for downloading agent data / walks of hosts...
diff --git a/checks/heartbeat_crm b/checks/heartbeat_crm
index b835b8c..5070704 100644
--- a/checks/heartbeat_crm
+++ b/checks/heartbeat_crm
@@ -168,7 +168,7 @@ def check_heartbeat_crm(item, params, info):
if numResources == params['num_resources']:
output += 'Resources: %d, ' % numResources
else:
- output += 'Resources: %d (Expected %d (!!)), ' % (numResources,
params['num_ressources'])
+ output += 'Resources: %d (Expected %d (!!)), ' % (numResources,
params['num_resources'])
status = 2
return (status, output.rstrip(', '))