1
0
mirror of https://bitbucket.org/anguist/ntpa synced 2025-10-05 18:41:13 +00:00

Minor improvements

This commit is contained in:
2016-03-19 22:55:38 +01:00
parent e66f069d0a
commit 0db48ed940
24 changed files with 181 additions and 34 deletions

32
INSTALL
View File

@ -1,40 +1,42 @@
FreeBSD
-------
Run as root:
# pkg install mono
# pkg install gtk-sharp20
# pkg install libgdiplus
# 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
# sudo apt-get install libgdiplus
# 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
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.
Install
-------
Build the solution with:
# xbuild Ntp.Analyzer.sln
To build a pure server version without GTK:
# xbuild Ntp.Analyzer.sln /property:Configuration=Server
Copy the output in bin folder to /opt/ntpa or another suitable
location.
Setup
-----
Copy ntpa.stat.conf from example to /etc/ntpa.conf
In ntpa.conf Hostname must point to a name or IP reachable by ntpq.
@ -53,25 +55,21 @@ 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.
Finally validate ntpa.conf file with ntpav using:
Configuration can be validate 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
-----
Now start ntpa and watch the data arriving in MySQL tables.
Start ntpa and watch the data arriving in MySQL tables.
# mono ntpa.exe
Also watch the log file for errors and other debugging activities.
The log file contains errors and other clues for debugging.
To stop ntpa use:
# mono ntpa.exe stop
Start ntpa in daemon mode with:
To start ntpa in daemon mode:
# mono ntpa.exe &
GTK GUI

View File

@ -15,7 +15,7 @@
<SchemaVersion>2.0</SchemaVersion>-->
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ReleaseVersion>8.8.5</ReleaseVersion>
<ReleaseVersion>0.3</ReleaseVersion>
</PropertyGroup>
<Choose>
<When Condition=" '$(Platform)' != 'AnyCPU'">
@ -307,4 +307,9 @@
<PostBuildEvent>
</PostBuildEvent>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
</Project>

View File

@ -9,7 +9,7 @@
<OutputType>Library</OutputType>
<RootNamespace>NPlot</RootNamespace>
<AssemblyName>NPlot</AssemblyName>
<ReleaseVersion>8.8.5</ReleaseVersion>
<ReleaseVersion>0.3</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
@ -28,6 +28,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />

View File

@ -8,7 +8,6 @@
<ProjectGuid>{6A635537-E5E9-493E-8B89-E0E5EBB64E72}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Ntp.Analyzer.Cli</RootNamespace>
<AssemblyName>ntpa</AssemblyName>
<StartupObject>Ntp.Analyzer.Cli.MainClass</StartupObject>
<ReleaseVersion>0.3</ReleaseVersion>
</PropertyGroup>
@ -17,6 +16,7 @@
<OutputPath>..\bin\ntpa\Release</OutputPath>
<WarningLevel>4</WarningLevel>
<LangVersion>4</LangVersion>
<AssemblyName>ntpa</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<Optimize>false</Optimize>
@ -26,6 +26,13 @@
<Externalconsole>true</Externalconsole>
<DebugSymbols>true</DebugSymbols>
<Commandlineparameters>~/code/ntpa/example/ntpa.stat.conf</Commandlineparameters>
<AssemblyName>ntpa</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
<AssemblyName>Ntp.Analyzer.Cli</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Data" />

View File

@ -179,7 +179,7 @@ namespace Ntp.Analyzer.Data.Static
if (!exists) {
Log.WriteLine (
"Creating new table '" + TableName + "'.",
Severity.Info);
Severity.Notice);
try {
Open ();

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="gtk-sharp, Version=2.4.0.0, Culture=neutral, PublicKeyToken=35e10195dab3c99f">

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />

View File

@ -8,7 +8,6 @@
<ProjectGuid>{9790FACF-170E-43C7-889A-D4445FC7E7A1}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Ntp.Analyzer.Validate.Cli</RootNamespace>
<AssemblyName>ntpav</AssemblyName>
<ReleaseVersion>0.3</ReleaseVersion>
<StartupObject>Ntp.Analyzer.Validate.Cli.Program</StartupObject>
</PropertyGroup>
@ -22,6 +21,7 @@
<WarningLevel>4</WarningLevel>
<Externalconsole>true</Externalconsole>
<Commandlineparameters>~/code/ntpa/example/ntpa.stat.conf</Commandlineparameters>
<AssemblyName>ntpav</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>full</DebugType>
@ -30,6 +30,13 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Externalconsole>true</Externalconsole>
<AssemblyName>ntpav</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
<AssemblyName>Ntp.Analyzer.Validate.Cli</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />

View File

@ -40,24 +40,31 @@ namespace Ntp.Analyzer.Validate.Cli
public static void Main (string[] args)
{
if (args.Length != 1) {
Console.WriteLine ("NTP Analyzer validator tool.");
Console.WriteLine ("Usage: ntpav configuration");
// Neutralize.
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
if (args.Length == 0 || args.Length > 2) {
ShowUsage ();
return;
}
if (args.Length == 1 && args[0] == "help") {
ShowUsage ();
return;
}
string configFile = args [0];
// Neutralize.
Thread.CurrentThread.CurrentCulture = CultureInfo.InvariantCulture;
Configuration config = LoadConfig (configFile);
if (config == null) {
return;
}
Console.WriteLine ("Parsed config ...");
Console.WriteLine (config);
if (args.Length == 2 && args [1] == "verbose") {
Console.WriteLine (config);
}
TestFilesystem (config);
@ -122,5 +129,11 @@ namespace Ntp.Analyzer.Validate.Cli
Console.WriteLine (ex.Message);
}
}
private static void ShowUsage()
{
Console.WriteLine ("NTP Analyzer validator tool.");
Console.WriteLine ("Usage: ntpav configuration [verbose]");
}
}
}
}

View File

@ -58,82 +58,118 @@ Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
Server|Any CPU = Server|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{02912378-E62D-4445-BA30-F56D3ABE9DA2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{02912378-E62D-4445-BA30-F56D3ABE9DA2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{02912378-E62D-4445-BA30-F56D3ABE9DA2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{02912378-E62D-4445-BA30-F56D3ABE9DA2}.Release|Any CPU.Build.0 = Release|Any CPU
{02912378-E62D-4445-BA30-F56D3ABE9DA2}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{02912378-E62D-4445-BA30-F56D3ABE9DA2}.Server|Any CPU.Build.0 = Debug|Any CPU
{0349CF56-C07C-46B5-B9CD-2BCB2709EE0A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0349CF56-C07C-46B5-B9CD-2BCB2709EE0A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0349CF56-C07C-46B5-B9CD-2BCB2709EE0A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0349CF56-C07C-46B5-B9CD-2BCB2709EE0A}.Release|Any CPU.Build.0 = Release|Any CPU
{0349CF56-C07C-46B5-B9CD-2BCB2709EE0A}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{0349CF56-C07C-46B5-B9CD-2BCB2709EE0A}.Server|Any CPU.Build.0 = Debug|Any CPU
{03F3B0D9-AC35-43E3-9303-87A71FB73CD1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{03F3B0D9-AC35-43E3-9303-87A71FB73CD1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{03F3B0D9-AC35-43E3-9303-87A71FB73CD1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{03F3B0D9-AC35-43E3-9303-87A71FB73CD1}.Release|Any CPU.Build.0 = Release|Any CPU
{03F3B0D9-AC35-43E3-9303-87A71FB73CD1}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{03F3B0D9-AC35-43E3-9303-87A71FB73CD1}.Server|Any CPU.Build.0 = Debug|Any CPU
{13FA10AB-D656-4D72-BC69-2525D484C9DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{13FA10AB-D656-4D72-BC69-2525D484C9DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{13FA10AB-D656-4D72-BC69-2525D484C9DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{13FA10AB-D656-4D72-BC69-2525D484C9DE}.Release|Any CPU.Build.0 = Release|Any CPU
{13FA10AB-D656-4D72-BC69-2525D484C9DE}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{13FA10AB-D656-4D72-BC69-2525D484C9DE}.Server|Any CPU.Build.0 = Debug|Any CPU
{2324E69A-396F-467A-9582-8853687E9064}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{2324E69A-396F-467A-9582-8853687E9064}.Debug|Any CPU.Build.0 = Debug|Any CPU
{2324E69A-396F-467A-9582-8853687E9064}.Release|Any CPU.ActiveCfg = Release|Any CPU
{2324E69A-396F-467A-9582-8853687E9064}.Release|Any CPU.Build.0 = Release|Any CPU
{2324E69A-396F-467A-9582-8853687E9064}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{2324E69A-396F-467A-9582-8853687E9064}.Server|Any CPU.Build.0 = Debug|Any CPU
{266A828E-05CA-4FEB-8B78-0BC066760C26}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{266A828E-05CA-4FEB-8B78-0BC066760C26}.Debug|Any CPU.Build.0 = Debug|Any CPU
{266A828E-05CA-4FEB-8B78-0BC066760C26}.Release|Any CPU.ActiveCfg = Release|Any CPU
{266A828E-05CA-4FEB-8B78-0BC066760C26}.Release|Any CPU.Build.0 = Release|Any CPU
{266A828E-05CA-4FEB-8B78-0BC066760C26}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{266A828E-05CA-4FEB-8B78-0BC066760C26}.Server|Any CPU.Build.0 = Debug|Any CPU
{28444C86-1B41-4558-BA27-DCF32B2B1E0F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{28444C86-1B41-4558-BA27-DCF32B2B1E0F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{28444C86-1B41-4558-BA27-DCF32B2B1E0F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{28444C86-1B41-4558-BA27-DCF32B2B1E0F}.Release|Any CPU.Build.0 = Release|Any CPU
{28444C86-1B41-4558-BA27-DCF32B2B1E0F}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{28444C86-1B41-4558-BA27-DCF32B2B1E0F}.Server|Any CPU.Build.0 = Debug|Any CPU
{43A1A769-6ED9-4AE1-821A-43F97814968C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{43A1A769-6ED9-4AE1-821A-43F97814968C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{43A1A769-6ED9-4AE1-821A-43F97814968C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{43A1A769-6ED9-4AE1-821A-43F97814968C}.Release|Any CPU.Build.0 = Release|Any CPU
{43A1A769-6ED9-4AE1-821A-43F97814968C}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{43A1A769-6ED9-4AE1-821A-43F97814968C}.Server|Any CPU.Build.0 = Debug|Any CPU
{44D739DA-4CD4-4214-88EE-A9A293BB32B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{44D739DA-4CD4-4214-88EE-A9A293BB32B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44D739DA-4CD4-4214-88EE-A9A293BB32B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44D739DA-4CD4-4214-88EE-A9A293BB32B5}.Release|Any CPU.Build.0 = Release|Any CPU
{44D739DA-4CD4-4214-88EE-A9A293BB32B5}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{44D739DA-4CD4-4214-88EE-A9A293BB32B5}.Server|Any CPU.Build.0 = Debug|Any CPU
{6A635537-E5E9-493E-8B89-E0E5EBB64E72}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{6A635537-E5E9-493E-8B89-E0E5EBB64E72}.Debug|Any CPU.Build.0 = Debug|Any CPU
{6A635537-E5E9-493E-8B89-E0E5EBB64E72}.Release|Any CPU.ActiveCfg = Release|Any CPU
{6A635537-E5E9-493E-8B89-E0E5EBB64E72}.Release|Any CPU.Build.0 = Release|Any CPU
{6A635537-E5E9-493E-8B89-E0E5EBB64E72}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{6A635537-E5E9-493E-8B89-E0E5EBB64E72}.Server|Any CPU.Build.0 = Debug|Any CPU
{74985534-474F-4191-971F-FCC791006FF3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{74985534-474F-4191-971F-FCC791006FF3}.Debug|Any CPU.Build.0 = Debug|Any CPU
{74985534-474F-4191-971F-FCC791006FF3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{74985534-474F-4191-971F-FCC791006FF3}.Release|Any CPU.Build.0 = Release|Any CPU
{74985534-474F-4191-971F-FCC791006FF3}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{8263BEAB-1610-4F82-9FC0-84421E5AB6B0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{8263BEAB-1610-4F82-9FC0-84421E5AB6B0}.Debug|Any CPU.Build.0 = Debug|Any CPU
{8263BEAB-1610-4F82-9FC0-84421E5AB6B0}.Release|Any CPU.ActiveCfg = Release|Any CPU
{8263BEAB-1610-4F82-9FC0-84421E5AB6B0}.Release|Any CPU.Build.0 = Release|Any CPU
{8263BEAB-1610-4F82-9FC0-84421E5AB6B0}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{8263BEAB-1610-4F82-9FC0-84421E5AB6B0}.Server|Any CPU.Build.0 = Debug|Any CPU
{909C8729-ED63-4603-85EA-34A1FC4D63D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{909C8729-ED63-4603-85EA-34A1FC4D63D9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{909C8729-ED63-4603-85EA-34A1FC4D63D9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{909C8729-ED63-4603-85EA-34A1FC4D63D9}.Release|Any CPU.Build.0 = Release|Any CPU
{909C8729-ED63-4603-85EA-34A1FC4D63D9}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{909C8729-ED63-4603-85EA-34A1FC4D63D9}.Server|Any CPU.Build.0 = Debug|Any CPU
{9790FACF-170E-43C7-889A-D4445FC7E7A1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9790FACF-170E-43C7-889A-D4445FC7E7A1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9790FACF-170E-43C7-889A-D4445FC7E7A1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9790FACF-170E-43C7-889A-D4445FC7E7A1}.Release|Any CPU.Build.0 = Release|Any CPU
{9790FACF-170E-43C7-889A-D4445FC7E7A1}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{9790FACF-170E-43C7-889A-D4445FC7E7A1}.Server|Any CPU.Build.0 = Debug|Any CPU
{A98DB601-2993-4181-A573-5FCCC5E954C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{A98DB601-2993-4181-A573-5FCCC5E954C1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A98DB601-2993-4181-A573-5FCCC5E954C1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A98DB601-2993-4181-A573-5FCCC5E954C1}.Release|Any CPU.Build.0 = Release|Any CPU
{A98DB601-2993-4181-A573-5FCCC5E954C1}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{A98DB601-2993-4181-A573-5FCCC5E954C1}.Server|Any CPU.Build.0 = Debug|Any CPU
{C2DEBED1-FE91-4929-B686-8E920731E88C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C2DEBED1-FE91-4929-B686-8E920731E88C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C2DEBED1-FE91-4929-B686-8E920731E88C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C2DEBED1-FE91-4929-B686-8E920731E88C}.Release|Any CPU.Build.0 = Release|Any CPU
{C2DEBED1-FE91-4929-B686-8E920731E88C}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{C2DEBED1-FE91-4929-B686-8E920731E88C}.Server|Any CPU.Build.0 = Debug|Any CPU
{CCF0EE0C-E3E4-4A75-AFEB-C709ED51E90F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CCF0EE0C-E3E4-4A75-AFEB-C709ED51E90F}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CCF0EE0C-E3E4-4A75-AFEB-C709ED51E90F}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CCF0EE0C-E3E4-4A75-AFEB-C709ED51E90F}.Release|Any CPU.Build.0 = Release|Any CPU
{CCF0EE0C-E3E4-4A75-AFEB-C709ED51E90F}.Server|Any CPU.ActiveCfg = Debug|Any CPU
{CCF0EE0C-E3E4-4A75-AFEB-C709ED51E90F}.Server|Any CPU.Build.0 = Debug|Any CPU
{E9DF5ED1-4CBD-4226-B931-9A51610AC14D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{E9DF5ED1-4CBD-4226-B931-9A51610AC14D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{E9DF5ED1-4CBD-4226-B931-9A51610AC14D}.Server|Any CPU.ActiveCfg = Debug|Any CPU
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
EndGlobalSection
GlobalSection(MonoDevelopProperties) = preSolution
StartupItem = Ntp.Analyzer.Validate.Cli\Ntp.Analyzer.Validate.Cli.csproj
Policies = $0
$0.DotNetNamingPolicy = $1
$1.DirectoryNamespaceAssociation = PrefixedHierarchical
@ -298,7 +334,6 @@ Global
$32.scope = text/plain
description = @NTP Analyzer is a tool dedicated to\nanalyzing the operation of time servers.
version = 0.3
StartupItem = Ntp.Analyzer.Validate.Cli\Ntp.Analyzer.Validate.Cli.csproj
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />

View File

@ -27,6 +27,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>

View File

@ -8,7 +8,6 @@
<ProjectGuid>{0349CF56-C07C-46B5-B9CD-2BCB2709EE0A}</ProjectGuid>
<OutputType>Exe</OutputType>
<RootNamespace>Ntp.Monitor.Cli</RootNamespace>
<AssemblyName>ntpac</AssemblyName>
<ReleaseVersion>0.3</ReleaseVersion>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@ -21,6 +20,7 @@
<WarningLevel>4</WarningLevel>
<Externalconsole>true</Externalconsole>
<Commandlineparameters>127.0.0.1 9072 ping</Commandlineparameters>
<AssemblyName>ntpac</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<Optimize>true</Optimize>
@ -28,6 +28,13 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<Externalconsole>true</Externalconsole>
<AssemblyName>ntpac</AssemblyName>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
<AssemblyName>Ntp.Monitor.Cli</AssemblyName>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />

View File

@ -31,6 +31,11 @@
<ConsolePause>false</ConsolePause>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>

View File

@ -28,6 +28,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />

View File

@ -29,6 +29,11 @@
<WarningLevel>4</WarningLevel>
<ConsolePause>false</ConsolePause>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Server|AnyCPU' ">
<Optimize>false</Optimize>
<OutputPath>bin\Server</OutputPath>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="Mono.Posix" />

View File

@ -16,7 +16,8 @@ Listener {
}
Log {
Severity notice
# Levels: error, warn, notice, info, debug and trace
Severity info
File /var/log/ntpa.graph.log
}
@ -26,7 +27,10 @@ Server {
# Domain name of hosting NTP server
HostAddress 192.168.222.114
# The utility used to query ntpd. Use ntpdc for old hosts.
HostType ntpq
# NTP configuration file with IDs from support.ntp.org
ConfigFile /opt/ntpa/config/ntp.conf

View File

@ -28,6 +28,7 @@ Listener {
}
Log {
# Levels: error, warn, notice, info, debug and trace
Severity trace
File /var/log/ntpa.stat.log
}