1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-06 19:12:11 +00:00
Files
ntpa/examples/ntpa.conf

377 lines
8.3 KiB
Plaintext
Raw Normal View History

2016-05-22 23:40:47 +02:00
Database {
2016-08-21 11:48:36 +02:00
# Uncomment if you want to use PostgreSQL
# Provider PostgreSQL
2016-08-18 19:18:52 +02:00
Provider MySql
2016-08-21 11:48:36 +02:00
2016-08-18 19:18:52 +02:00
Host 127.0.0.1
2016-08-21 11:48:36 +02:00
# Uncomment to use another port than default
# Port 5432
2016-08-18 19:18:52 +02:00
Name ntpa
User ntpau
Pass "password"
2016-08-21 11:48:36 +02:00
# Uncomment to change connection timeout
# ConnectionTimeout 60
# Uncomment to use a SSL connection
# EnableSsl Yes
2016-08-22 22:40:08 +02:00
# Uncomment if your MySQL server uses client certificates
2016-08-21 11:48:36 +02:00
# CertificateFile client.pem
2016-08-22 22:40:08 +02:00
# Uncomment if your MySQL server uses password for client certificates
2016-08-21 11:48:36 +02:00
# CertificatePassword "certpass"
2016-08-22 22:40:08 +02:00
# Uncomment to override connection settings
2016-08-21 11:48:36 +02:00
# ConnectionString "Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;"
2016-08-23 22:08:23 +02:00
# Uncomment to automatically create all tables and data
# New systems should enable this setting when creating a new database
# Create Yes
# Uncomment to automatically upgrade database schema
# Upgrade Yes
2016-05-22 23:40:47 +02:00
}
2016-08-23 22:08:23 +02:00
# Uncomment to change permission settings for generated files
# Permission {
# Mode 644
# User www
# Group ntpa
# }
2016-05-22 23:40:47 +02:00
Log {
2016-08-18 19:18:52 +02:00
File /var/log/ntpa/ntpa.log
2016-08-23 22:08:23 +02:00
# Uncomment to hide severity level in log messages
# ShowSeverity No
# Uncomment to hide timestamps in log messages
# ShowTimestamp No
# Uncomment to show log messages with severity debug
2016-09-09 21:56:08 +02:00
# Levels: error, warn, notice, info, debug and trace
2016-08-23 22:08:23 +02:00
# Severity Debug
# Uncomment to change default time stamp in log messages
# TimeFormat "MM-dd-yyyy HH:mm:ss"
2016-05-22 23:40:47 +02:00
}
2016-08-21 11:48:36 +02:00
# Uncomment to give more details in Syslog (default severity in syslog is Notice)
# Log {
# Type Syslog
# Severity Info
# }
# Uncomment to show debug info in console window
# Log {
# Type Console
# Severity Debug
# }
# Uncomment to show a heartbeat entry in logs
# Daemon {
# Heartbeat 120
# }
2016-09-09 21:56:08 +02:00
Notify ntpstat-summary {
# Uncomment to send a test immediately after start up
# InitialRun Yes
# Uncomment to send a mail every 360 minutes (6 hours)
# Frequency 360
Recipient root@example.net
Sender sender@example.net
Subject "NTP Analyzer stats daily run - stat"
Host 127.0.0.1
Port 587
# Uncomment to set SMTP user name
# User "username"
# Uncomment to set SMTP password
# Pass "password"
# Uncomment to enable SMTP SSL connection
# EnableSsl Yes
}
2016-05-22 23:40:47 +02:00
Reading {
2016-08-18 19:18:52 +02:00
Name stat1
2016-08-21 11:48:36 +02:00
# Uncomment to read values from NTP servers immediately after start up
# InitialRun Yes
2016-08-23 22:08:23 +02:00
2016-08-22 22:40:08 +02:00
# Uncomment to change Frequency of NTP server readings to 10 minutes
2016-08-21 11:48:36 +02:00
# Frequency 10
2016-08-18 19:18:52 +02:00
Frequency 5
2016-08-21 11:48:36 +02:00
# Uncomment to change database timestamps to local time
# TimeStamp Local
2016-08-18 19:18:52 +02:00
TimeStamp UTC
2016-05-22 23:40:47 +02:00
}
Server {
2016-08-18 19:18:52 +02:00
HostID 1
HostAddress 127.0.0.1
FilePath "/usr/local/www/ntpa"
2016-08-23 22:08:23 +02:00
# Uncomment to use ntpctl instead of ntpq for readings
# HostType Ntpctl
2016-08-22 22:40:08 +02:00
# Uncomment to change base URL for generated files and links
# WebPath /ntpa
2016-08-18 19:18:52 +02:00
HostStats {
Frequency stat1
}
HostIoStats {
Frequency stat1
}
PeerStats {
Frequency stat1
}
2016-09-04 23:43:39 +02:00
# Uncomment to track changes in NTP drift file
# DriftStats {
# Frequency stat1
# }
2016-08-18 19:18:52 +02:00
HostPage ntp1 {
PageTitle "ntp1.example.net"
2016-08-21 11:48:36 +02:00
# Uncomment to use the default HTML template
# Template Default
2016-08-18 19:18:52 +02:00
Template Bootstrap
2016-08-21 11:48:36 +02:00
2016-09-04 23:43:39 +02:00
# Uncomment to use local time in host page.
2016-08-23 22:08:23 +02:00
# PageTime Local
2016-08-18 19:18:52 +02:00
PeerPages ntp1-peers
2016-08-20 15:59:52 +02:00
Link /index.html
2016-08-22 22:40:08 +02:00
2016-08-23 22:08:23 +02:00
# Uncomment to fetch peer status directly from NTP servers instead of from database
2016-08-22 22:40:08 +02:00
# QueryDirect Yes
2016-08-23 22:08:23 +02:00
2016-08-21 11:48:36 +02:00
# Uncomment to generate a link to pool.ntp.org
# PoolMember Yes
2016-05-22 23:40:47 +02:00
2016-08-18 19:18:52 +02:00
Images {
Title "Recent offset graphs"
Graph offset1
Graph offset3
}
2016-05-22 23:40:47 +02:00
2016-08-18 19:18:52 +02:00
Destinations {
File index.html
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
}
PeerPages ntp1-peers {
PageTitle "ntp1.example.net"
Template Bootstrap
2016-08-20 15:59:52 +02:00
Link /peers/
2016-08-18 19:18:52 +02:00
2016-09-08 21:37:36 +02:00
# Uncomment to use local time in peer pages.
# PageTime Local
2016-08-18 19:18:52 +02:00
Images {
Graph offset24
Graph offset72
Graph delay
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
Destinations {
Directory peers/
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
}
HostGraph offset1 {
Frequency 15
InitialRun Yes
Title "ntp1.example.net (1 day)"
2016-08-23 22:08:23 +02:00
# Uncomment to show a 7 days graph
# Timespan 7
2016-08-18 19:18:52 +02:00
Timespan 1
2016-08-23 22:08:23 +02:00
# Uncomment to generate a graph with 512 pixels width
# Width 512
# Uncomment to generate a graph with 320 pixels height
# Height 320
2016-08-18 19:18:52 +02:00
Jitter 1
Offset 1
2016-08-23 22:08:23 +02:00
# Uncomment to show deviation (stability) in graph
# Stability 1
# Uncomment to show frequency for the kernel phase-locked loop (PLL)
# GFrequency 1
# Uncomment to remove readings which divert more than factor 4 from average
# FilterFactor 4
2016-05-22 23:40:47 +02:00
2016-09-08 22:00:20 +02:00
# Uncomment to use local time in graph time line.
2016-09-08 21:37:36 +02:00
# GraphTime Local
2016-09-04 23:43:39 +02:00
2016-08-18 19:18:52 +02:00
Destinations {
File ntp1.png
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
Links {
Link ntp1.png
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
}
HostGraph offset3 {
Frequency 30
InitialRun Yes
Title "ntp1.example.net (3 days)"
Timespan 3
Jitter 1
Offset 1
GFrequency 1
2016-05-22 23:40:47 +02:00
2016-09-08 22:00:20 +02:00
# Uncomment to use local time in graph time line.
2016-09-08 21:37:36 +02:00
# GraphTime Local
2016-08-18 19:18:52 +02:00
Destinations {
File ntp3.png
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
Links {
Link ntp3.png
}
}
PeerGraphs offset24 {
Frequency 15
InitialRun Yes
Title "24 hours offset"
Timespan 1
Offset 1
2016-05-22 23:40:47 +02:00
2016-09-08 22:00:20 +02:00
# Uncomment to use local time in graph time line.
2016-09-08 21:37:36 +02:00
# GraphTime Local
2016-08-18 19:18:52 +02:00
Destinations {
Prefix offset24-
Directory /peers/
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
Links {
Link peer1/offset24-
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
}
PeerGraphs offset72 {
Frequency 15
InitialRun Yes
Title "72 hours offset"
Timespan 3
Offset 1
2016-05-22 23:40:47 +02:00
2016-09-08 22:00:20 +02:00
# Uncomment to use local time in graph time line.
2016-09-08 21:37:36 +02:00
# GraphTime Local
2016-08-18 19:18:52 +02:00
Destinations {
Prefix offset72-
Directory /peers/
}
Links {
Link peers/offset72-
}
}
PeerGraphs delay {
Frequency 180
InitialRun Yes
Title "15 days delay"
Timespan 15
Offset 1
Jitter 1
Delay 1
2016-09-08 22:00:20 +02:00
# Uncomment to use local time in graph time line.
2016-09-08 21:37:36 +02:00
# GraphTime Local
2016-08-18 19:18:52 +02:00
Destinations {
Prefix delay-
Directory /peers/
2016-05-22 23:40:47 +02:00
}
2016-08-18 19:18:52 +02:00
Links {
Link peers/delay-
}
}
2016-08-21 11:48:36 +02:00
2016-08-23 22:08:23 +02:00
Menu {
Item title {
Type Link
Caption example.net
Link http://example.net
}
Item main {
Type Page
Caption NTP
Page ntp1
}
Item {
Type Page
Caption About
Page about1
}
}
AboutPage about1 {
PageTitle "example.net"
Link /about.html
ContentTitle "ntp1.example.net"
# Uncomment to generate a link to support.ntp.org
# ServerID 999
Content {
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.
Sed et risus vel leo interdum fringilla. Vestibulum ex justo,
euismod ac conat tempor a massa. Donec elementum congue.</p>
}
Destinations {
File about.html
}
}
2016-08-21 11:48:36 +02:00
HostGraphPage graphpages1 {
InitialRun Yes
Frequency 0
GraphPage ntp1
Destinations {
Directory hgraphs/
}
}
PeerGraphPage graphpages2 {
InitialRun Yes
Frequency 0
GraphPage ntp1-peers
Destinations {
Directory pgraphs/
}
}
2016-08-18 19:18:52 +02:00
}