Closed tonynajjar closed 3 months ago
Hey @tonynajjar.
Thanks for the issue. I think this is a very specific use case. If we do this, we could also add diagnostics monitors for all possible configuration options. And this is then nothing specific to robotics, but to Linux systems. What you can do is check the time offset to the desired NTP server if that helps you.
Sorry, I close this. Feel free to reopen it if there are more people having this request or a more generic idea to solve this.
What do you think of adding to the NTP monitor an optional check for which source we are currently synchronized with? I have the case that although my chrony configuration is set to prefer a computer connected via ethernet, it sometimes switches to another source. I would like to detect this in the diagnostics.
Implementation details
I only researched how to do it for chrony. Unfortunately there is no python library for chrony so the method uses
subprocess.run
. We would runchronyc tracking
and parse the server name (in this casenuc
) and check whether it matches the user-configured wished serverWhat do you think @ct2034?