/ntp_monitor

Primary LanguageC++GNU Lesser General Public License v3.0LGPL-3.0

NTP status monitor

What is it for?

This program gets the status ntp and pps from ntpq and displays it in the window, coloring the state of the element. In addition, the application displays the current time and date on this system.

Also in the program there is a button that reloads ntp server by executing folowing command:

service ntp restart

What do the colors mean?

Time color:

  • Green - offset < 0.1
  • Yellow - offset >= 0.1
  • Red - somethig wrong in status

PPS block color:

  • Green - pps is active
  • Yellow - pps not active
  • Red - somethig wrong in status

GPS block color:

  • Green - no errors in last 8 attempts
  • Yellow - have errors in last 8 attempts
  • Red - somethig wrong in status

Debug version

When building the debug version, if the ntpq command fails, an attempt will be made to load the output of the command from the file ntpq_output.txt.

Stuff used on development stage

  • Qt >v5.6