diff options
-rw-r--r-- | health/Makefile.am | 1 | ||||
-rw-r--r-- | health/health.d/timex.conf | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/health/Makefile.am b/health/Makefile.am index 7b25c07cdd..f5ec7dcaec 100644 --- a/health/Makefile.am +++ b/health/Makefile.am @@ -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 \ diff --git a/health/health.d/timex.conf b/health/health.d/timex.conf new file mode 100644 index 0000000000..32a9a3afbf --- /dev/null +++ b/health/health.d/timex.conf @@ -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 |