Code Monkey home page Code Monkey logo

chrony_ntp_logconv's Introduction

Convert chrony's tracking and statistics logs to something ntpsec's ntpviz can graph.

This is just a script for me, but its probably useful for others.

There's a few things hard-coded that you may wish to change:

  • Assumes chrony's logs are in /var/log/chrony and outputs to /var/log/ntpstats
  • Has a list of mappings from my refids to NTPd-style local IP addresses, which you probably need to change if you don't use "NMEX" for the X'th NMEA input and "GPSX" for the X'th GPS PPS pin.

Note that the graphs from chrony are not directly comparable to those from NTPd. Differences include:

  • Chrony prints "error bounds" on the local frequency range, whereas NTPd prints the Allan Deviation. ntpviz will title it "RMS Frequency Jitter" even though its really an error bound.
  • We currently don't map the RTT to our peers, just printing 0. This isn't 1-to-1 mappable and to do so we'd need to read the measurements.log and do some averaging ourselves. At some point we should do this, though.
  • Chrony massages samples over a longer time horizon and prints the calcualted offset in statistics.log whereas NTP prints samples from a much shorter time horizon (possibly before massaging, but I didn't dig deep enough) in peerstats. We could pull from measurements.log which may be more comparable to NTPd peerstats, but it doesn't print the jitter (as a single measurement doesn't, itself, have jitter).

chrony_ntp_logconv's People

Contributors

thebluematt avatar agallogwu avatar rbollar avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.