Module: check_mk
Branch: master
Commit: ad80e8911f0d153c8fee9610fa98c524694f6db5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=ad80e8911f0d15…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Sep 29 17:34:21 2016 +0200
3894 FIX mkeventd_status: Fixed bug in case Event Console is not running
---
.werks/3894 | 9 +++++++++
ChangeLog | 3 +++
checks/mkeventd_status | 2 +-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/.werks/3894 b/.werks/3894
new file mode 100644
index 0000000..c9979ce
--- /dev/null
+++ b/.werks/3894
@@ -0,0 +1,9 @@
+Title: mkeventd_status: Fixed bug in case Event Console is not running
+Level: 1
+Component: checks
+Compatible: compat
+Version: 1.4.0i2
+Date: 1475163235
+Class: fix
+
+
diff --git a/ChangeLog b/ChangeLog
index 65f8335..4ce978d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
1.4.0i2:
+ Checks & Agents:
+ * 3894 FIX: mkeventd_status: Fixed bug in case Event Console is not running
+
1.4.0i1:
Core & Setup:
diff --git a/checks/mkeventd_status b/checks/mkeventd_status
index cf9b6e7..affdad1 100644
--- a/checks/mkeventd_status
+++ b/checks/mkeventd_status
@@ -71,7 +71,7 @@ def check_mkeventd_status(item, params, parsed):
# Ignore down sites. This happens on a regular basis due to restarts
# of the core. The availability of a site is monitored with 'omd_status'.
if status == None:
- yield None, "Currently not running"
+ yield 0, "Currently not running"
return
yield 0, "Open events: %d" % status["num_open_events"], \