This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Convert chrony's tracking and statistics logs to something ntpsec's ntpviz can graph | |
# Assumes chrony's logs are in /var/log/chrony and outputs to /var/log/ntpstats | |
# See below and fill in an adapter from your local refid names for refclocks to NTPd style | |
# IPs for refclocks. | |
import shutil, os, math | |
from datetime import datetime, timezone |