mirror of
https://bitbucket.org/anguist/ntpa
synced 2025-10-06 11:04:40 +00:00
Reload configuration & bugfixes
This commit is contained in:
27
INSTALL
27
INSTALL
@ -21,7 +21,7 @@ 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.
|
||||
if needed. Minor adjustments might be needed to get the code running.
|
||||
|
||||
|
||||
Install
|
||||
@ -44,33 +44,22 @@ Touch /var/log/ntpa.log and adjust pid file location if needed.
|
||||
|
||||
Configuration
|
||||
|
||||
In ntpa.conf Hostname must point to a name or IP reachable by ntpq.
|
||||
ConfigFile must must point to ntp.conf. ConfigFile is only needed
|
||||
when generating graphs and pages. Adjust the values of HostName and
|
||||
ConfigFile settings accordingly.
|
||||
|
||||
Set database user name and password in the top of ntpa.conf. Leave the
|
||||
Create setting to 1 if you want all tables and data created automatically.
|
||||
Be sure the user you entered in ntpa.conf exists in your MySQL database.
|
||||
|
||||
If you want to generate graphs and pages then also copy ntp.conf from
|
||||
NTP host to the machine running ntpa and add timeserver ID from
|
||||
support.ntp.org. Search using google.com with f.x.
|
||||
"ntp1.innolan.net" site:support.ntp.org
|
||||
For servers not registered on support.ntp.org just add 10000 and above.
|
||||
See ntp.conf in examples on how to add time server IDs.
|
||||
Then later you can use phpMyAdmin, MySQL Workbench or similar to adjust
|
||||
the auto generated values.
|
||||
|
||||
Set Hostname to point at a name or an IP address reachable by ntpq. If
|
||||
you want to generate graphs and pages also copy ntp.conf from the NTP host
|
||||
to the machine running ntpa and set ConfigFile to point at this file.
|
||||
|
||||
Configuration can be validated with the validation tool:
|
||||
# mono ntpav.exe /etc/ntpa.conf
|
||||
|
||||
Use phpMyAdmin, MySQL Workbench or similar to adjust auto generated
|
||||
values in the database.
|
||||
|
||||
Start ntpa and watch the data arriving in MySQL tables.
|
||||
To start ntpa use:
|
||||
# mono ntpa.exe
|
||||
|
||||
The log file contains errors and other clues for debugging.
|
||||
Look in the log file for errors and other clues when debugging.
|
||||
|
||||
To stop ntpa use kill. Find the process id in the log file.
|
||||
# kill 72354
|
||||
|
Reference in New Issue
Block a user