Module: check_mk
Branch: master
Commit: 8404a15514ccfb8abddc38be0524a628c7904f86
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=8404a15514ccfb…
Author: Marcel Arentz <ma(a)mathias-kettner.de>
Date: Thu Jun 8 13:59:47 2017 +0200
4793 FIX chrony: Changed to raw IP address without dns name to avoid empty output
The output has been empty if the timeout was reached. This fix speeds up the
computation time since the reverse DNS lookup for the IP address is skipped.
Change-Id: Ie181ba88ce685800ce0d4b7c291a08e6461e563a
---
.werks/4793 | 11 +++++++++++
agents/check_mk_agent.linux | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/4793 b/.werks/4793
new file mode 100644
index 0000000..5e09387
--- /dev/null
+++ b/.werks/4793
@@ -0,0 +1,11 @@
+Title: chrony: Changed to raw IP address without dns name to avoid empty output
+Level: 1
+Component: checks
+Compatible: compat
+Edition: cre
+Version: 1.5.0i1
+Date: 1496922905
+Class: fix
+
+The output has been empty if the timeout was reached. This fix speeds up the
+computation time since the reverse DNS lookup for the IP address is skipped.
diff --git a/agents/check_mk_agent.linux b/agents/check_mk_agent.linux
index 9617379..00b4d00 100755
--- a/agents/check_mk_agent.linux
+++ b/agents/check_mk_agent.linux
@@ -560,7 +560,7 @@ fi
# Time synchronization with Chrony
if type chronyc > /dev/null 2>&1 ; then
# Force successful exit code. Otherwise section will be missing if daemon not
running
- run_cached -s chrony 30 "waitmax 5 chronyc tracking || true"
+ run_cached -s chrony 30 "waitmax 5 chronyc -n tracking || true"
fi
if type nvidia-settings >/dev/null && [ -S /tmp/.X11-unix/X0 ]