Files
ntpa/INSTALL
T

82 lines
2.2 KiB
Plaintext

FreeBSD
Run as root:
# pkg install mono
# pkg install gtk-sharp20 (only for GUI)
# pkg install libgdiplus (only for graphs)
# pkg install mysql-server
Ubuntu
Run:
# sudo apt-get install mono-complete
# sudo apt-get install gtk-sharp2 (only for GUI)
# sudo apt-get install libgdiplus (only for graphs)
# sudo apt-get install mysql-server
# sudo apt-get install ntp (use updated versions)
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. Minor adjustments might be needed to get the code running.
Install
Build the solution with:
# make
Build a pure server version (no GTK) with:
# make server
Copy the output files in the bin folder to /opt/ntpa or any other
suitable location and copy ntpa.stat.conf from example to
/etc/ntpa.conf
On FreeBSD copy content of bin to /usr/local/ntpa/
Copy example/ntpa.stat.conf to /usr/local/etc/ntpa/ntpa.conf
Copy script/ntpa to /usr/local/etc/rc.d/ntpa
Touch /var/log/ntpa.log and adjust pid file location if needed.
Configuration
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.
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
To start ntpa use:
# mono ntpa.exe
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
To start ntpa in daemon mode:
# mono ntpa.exe &
On FreeBSD use the rc.d script to start and stop the daemon.
GTK GUI
Run Ntp.Analyzer.Gui.exe and connect to ntpa with the a port specified
in the listener section. The GTK GUI is experimental as does not support
SQL configuration and error handling. Use it at your own risk.
Connect to ntpa and get a list of available commands:
# ntpac 127.0.0.1 9070 help
Ask ntpa how long time it has been running:
# ntpac 127.0.0.1 9070 uptime