From cf326dc2fb2afdf04627e023278428de57177029 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Mon, 21 Jan 2019 17:58:24 +0100 Subject: [PATCH] implemented additional chrony NTP daemon check because upcoming RaspberryMatic versions will use chrony instead of NTPd. --- addon/addon/server.tcl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addon/addon/server.tcl b/addon/addon/server.tcl index c83aa8b..b260297 100755 --- a/addon/addon/server.tcl +++ b/addon/addon/server.tcl @@ -85,6 +85,11 @@ proc handle_connection { channelId clientAddress clientPort } { puts $channelId "[exec /usr/local/addons/check_mk_agent/waitmax 5 /usr/bin/ntpq -np | sed -e 1,2d -e {s/^\(.\)/\1 /} -e {s/^ /%/}]" } + if { [file exists /usr/bin/chronyc] == 1 } { + puts $channelId "<<>>" + puts $channelId "[exec /usr/local/addons/check_mk_agent/waitmax 5 /usr/bin/chronyc -n tracking]" + } + puts $channelId "<<>>" puts $channelId [string trim [get_homematic_check_result]] foreach dev [xmlrpc http://127.0.0.1:2001/ listBidcosInterfaces] {