I am trying to find out the most recent time chrony checked to see if we are in sync. I can see chrony's sources with the following command:
~]$ chronyc sources
210 Number of sources = 3
MS Name/IP address Stratum Poll Reach LastRx Last sample
===============================================================================
^* a.b.c 1 10 377 32m -8638us[-8930us] +/- 103ms
^- d.e.f 1 10 366 77m +2928us[+1960us] +/- 104ms
^+ g.h.i 2 10 377 403 -14ms[ -14ms] +/- 137ms
The *
symbol indicates the server that we synced to, and the +
symbol indicates "acceptable" servers. I can see that chrony is indeed polling both a.b.c
and g.h.i
.
So what I want to know is if I can use the minimum between the two LastRx
values as the most recent time that we confirmed we are in sync. In this example we are synced to a.b.c
, but 403s < 32m, so does that mean that 403 seconds ago chrony checked against g.h.i
and determined we are in sync. In other words, is 403 seconds the last time I know system-time was in sync, or is it 32 minutes ago?
There is some documentation on the chronyc
command here: https://chrony.tuxfamily.org/doc/3.5/chronyc.html