1
0
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:
Ilya Mashchenko
2021-05-24 14:43:15 +03:00
committed by GitHub
parent 2555dccae7
commit 0208e34e5a
2 changed files with 18 additions and 0 deletions

View File

@@ -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 \

View 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