Module: check_mk
Branch: master
Commit: 4ebb726c85a2eee8578c4df9ade3bd4296624f2e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4ebb726c85a2ee…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Sep 25 11:18:57 2015 +0200
#2643 FIX Fix spurious CRIT status on check on mknotifyd
In case the total run time of the Linux agent was more than 10 seconds,
the check would go CRIT from time to time and say that the notification
spooler might be crashed. This was due to a to rigid timeout. This
as been fixed.
---
.werks/2643 | 12 ++++++++++++
ChangeLog | 1 +
checks/mknotifyd | 2 +-
3 files changed, 14 insertions(+), 1 deletion(-)
diff --git a/.werks/2643 b/.werks/2643
new file mode 100644
index 0000000..493f3d0
--- /dev/null
+++ b/.werks/2643
@@ -0,0 +1,12 @@
+Title: Fix spurious CRIT status on check on mknotifyd
+Level: 1
+Component: core
+Compatible: compat
+Version: 1.2.7i3
+Date: 1443172664
+Class: fix
+
+In case the total run time of the Linux agent was more than 10 seconds,
+the check would go CRIT from time to time and say that the notification
+spooler might be crashed. This was due to a to rigid timeout. This
+as been fixed.
diff --git a/ChangeLog b/ChangeLog
index 9bbc6df..4cb1b76 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
* 2543 FIX: Fixed usage of icons/actions configured directly with process rules
* 2630 FIX: fixed incorrect check interval of Check_MK Discovery...
* 2430 FIX: Fixed crash with availability queries when using nagios as core...
+ * 2643 FIX: Fix spurious CRIT status on check on mknotifyd...
Checks & Agents:
* 2312 New checks for EMC VPLEX: emc_vplex_cpu, emc_vplex_director_stats,
emc_vplex_if, emc_vplex_volumes...
diff --git a/checks/mknotifyd b/checks/mknotifyd
index 6292b5d..5310ae5 100644
--- a/checks/mknotifyd
+++ b/checks/mknotifyd
@@ -139,7 +139,7 @@ def check_mknotifyd(item, _no_params, parsed):
# Check age of status file. It's updated every 20 seconds
status_age = now - stat["Updated"]
- if status_age > 30:
+ if status_age > 90:
yield 2, "Status last updated %s ago, spooler seems crashed or busy" %
get_age_human_readable(status_age)
else:
yield 0, "Spooler running"