mirror of
https://github.com/alexreinert/homematic_check_mk.git
synced 2023-10-10 11:37:02 +00:00
implemented additional chrony NTP daemon check because upcoming RaspberryMatic
versions will use chrony instead of NTPd.
This commit is contained in:
parent
2ab8da8d1b
commit
cf326dc2fb
@ -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/^ /%/}]"
|
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 "<<<chrony>>>"
|
||||||
|
puts $channelId "[exec /usr/local/addons/check_mk_agent/waitmax 5 /usr/bin/chronyc -n tracking]"
|
||||||
|
}
|
||||||
|
|
||||||
puts $channelId "<<<homematic:sep(59)>>>"
|
puts $channelId "<<<homematic:sep(59)>>>"
|
||||||
puts $channelId [string trim [get_homematic_check_result]]
|
puts $channelId [string trim [get_homematic_check_result]]
|
||||||
foreach dev [xmlrpc http://127.0.0.1:2001/ listBidcosInterfaces] {
|
foreach dev [xmlrpc http://127.0.0.1:2001/ listBidcosInterfaces] {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user