#########################################################
# Configuration for NTP Analyzer statistical recordings #
#########################################################

Database {
	# Address of sql server
	Host 127.0.0.1

	# Port of sql server. Leave empty to use default.
	#Port 2567

	# Name of database
	Name ntpa

	# Database username
	User ntpau

	# Password for the user
	Pass xxxx

	# When set to 1 all tables and data are automatically created.
	Create 1
}

Listener {
    IP 127.0.0.1
    Port 9070
}

Log {
    # Levels: error, warn, notice, info, debug and trace
	Severity trace
	File /var/log/ntpa.stat.log
}

# Syncronize timestamp for readings accross different NTP servers/peers
Reading {
	Name stat1
	
	# Indicate if generation should happen immidiatly after startup
	InitialRun 0
	
	# Minutes between reading values from NTP servers.
	Frequency 5

	# Indicate if readings should happen at rounded intervals.
	FixedRun 1
}

Server {
	# Primary key in database table "host"
	HostID 1

	# Address queried by ntpq and ntpdc
	HostAddress ntp1.domain.org

	# The utility used to query ntpd. Use ntpdc for old hosts.  
	HostType ntpq

	HostStats {
		# Use name defined in Reading section or number of minutes between readings.
		Frequency stat1
	}
		
	HostIOStats {
		Frequency stat1
	}

	PeerStats {
		Frequency stat1
	}
}

# Support for multiple servers
#Server {
#	HostID 2
#		
#	HostStats {
#		Frequency stat1
#	}
#	
#	PeerStats {
#		Frequency stat1
#	}
#}
#
