Files
ntpa/INSTALL
T

80 lines
2.0 KiB
Plaintext
Raw Normal View History

2016-03-12 17:05:05 +01:00
Install Dependencies
--------------------
2016-03-11 23:22:40 +01:00
2016-03-12 17:05:05 +01:00
FreeBSD
-------
Run as root:
2016-03-11 23:22:40 +01:00
# pkg install mono
# pkg install libgdiplus
2016-03-12 17:05:05 +01:00
# pkg install mysql-server
2016-03-11 23:22:40 +01:00
2016-03-12 17:05:05 +01:00
Ubuntu
------
2016-03-11 23:22:40 +01:00
2016-03-12 17:05:05 +01:00
Run:
# sudo apt-get install mono-runtime
# sudo apt-get install libgdiplus
# sudo apt-get install mysql-server
Windows
-------
Download a copy of ntpq and ntpdc. Make sure .NET is installed and
the required MySQL Server is accessible. Download and install MySQL
if needed.
Configure ntpa
--------------
Copy ntpa.stat.conf from example to /etc/ntpa.conf
In ntpa.conf Hostname must point to a name or IP reachable by ntpq.
ConfigFile must must point to ntp.conf.
Adjust the values of HostName and ConfigFile setting accordingly.
Validate ntpa.con file with ntpav using:
# ntpav /etc/ntpa.conf
Copy ntp.conf from NTP host to the machine running ntpa and then add
timeserver ID from support.ntp.org. Search using google.com with f.x.
2016-03-11 23:22:40 +01:00
"ntp1.innolan.net" site:support.ntp.org
2016-03-12 00:05:28 +01:00
For servers not registered on support.ntp.org just add 10000 and above.
2016-03-11 23:22:40 +01:00
2016-03-12 17:05:05 +01:00
See ntp.conf in example on how to add time server IDs.
2016-03-11 23:22:40 +01:00
2016-03-12 17:05:05 +01:00
Configure database
------------------
Now adjust create_data.sql with real values. For host rows:
name is name used to query with ntpdc. Must match name/ip in ntp.conf
ip is IP address as shown in generated web pages
orgId is ID from support.ntp.org. Use 10000 or above for non registered servers
For peer rows:
name is name shown in generated web pages
ip is IP address as received from ntpq -pn
orgId is ID from support.ntp.org. Use 10000 or above for non registered servers
Run:
# mysql < run create_tables.sql
# mysql < run create_data.sql
Start NTP Analyzer
------------------
2016-03-11 23:22:40 +01:00
Now start ntpa and watch the data arriving in MySQL tables.
# mono ntpa.exe
Also watch the logfile for errors and other debugging activities.
2016-03-12 00:05:28 +01:00
Now start ntpa in daemon mode with:
# &ntpa.exe
2016-03-11 23:22:40 +01:00
To stop ntpa use kill. Find ntpa pid in log file.
# kill 77342
2016-03-12 00:05:28 +01:00
GTK GUI
Run Ntp.Analyzer.Gui.exe and connect to ntpa with the a port specified in the listener section.