mirror of
https://github.com/netdata/netdata.git
synced 2021-06-06 23:03:21 +03:00
health: add system clock synchronization state alarm (#11177)
* health: add system clock synchronization state alarm
This commit is contained in:
@@ -81,6 +81,7 @@ dist_healthconfig_DATA = \
|
||||
health.d/synchronization.conf \
|
||||
health.d/swap.conf \
|
||||
health.d/systemdunits.conf \
|
||||
health.d/timex.conf \
|
||||
health.d/tcp_conn.conf \
|
||||
health.d/tcp_listen.conf \
|
||||
health.d/tcp_mem.conf \
|
||||
|
||||
17
health/health.d/timex.conf
Normal file
17
health/health.d/timex.conf
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
# It can take several minutes before ntpd selects a server to synchronize with;
|
||||
# try checking after 17 minutes (1024 seconds).
|
||||
|
||||
alarm: system_clock_sync_state
|
||||
on: system.clock_sync_state
|
||||
os: linux
|
||||
class: System
|
||||
component: Clock
|
||||
type: Error
|
||||
calc: $state
|
||||
units: synchronization state
|
||||
every: 10s
|
||||
warn: $system.uptime.uptime > 17 * 60 AND $this == 0
|
||||
delay: down 5m
|
||||
info: the system time is not synchronized to a reliable server
|
||||
to: silent
|
||||
Reference in New Issue
Block a user