/*
 * -------------------------------------------------------------
 *
 *   Dr.Web (R) Statistic Agent configuration file
 *
 *  $Revision: 1.1 $
 *
 * -------------------------------------------------------------
 */

    Configuration file is an ordinary text file with the following rules:

[Section 1 name]
Parameter1 = volume
.....
ParameterN = volume

.....

[Section X name]
Parameter1 = volume
.....
ParameterY = volume

The parameters will be described in the following way:

---
parameter_name = parameter_type (default_value or 'absent')

parameter description
---

All the parameters may be of the following four types:
- string parameters (STRING), and here paths, names, actions etc. 
- list of strings parameters (STRING_LIST), these are strings separated by ","
- numeric ones (COUNT), these are signless numbers from 0 to 2^31 - 1,
- octal ones (OCTAL), these are numbers in octal representation
- Boolean ones (BOOL), these variables may have such values as:
     yes, on, true - to enable,
     no, off, false - to disable the option set by this parameter,
  any of the adduced variants possible, letter case is not taken into account.
- address specification, these variables may correspond to the following :
  TYPE:TRANSPORT_ADDRESS
  Admissible the following types:
      inet - TCP sockets used, than TRANSPORT_ADDRESS has the following :
             PORT@HOST_NAME
             HOST_NAME may be either direct IP address, or host domain name.
             Example:
               Address = inet:3003@localhost
      local - local UNIX sockets used, than TRANSPORT_ADDRESS 
             is a mere path to the socket file.
             Example:
               Address = local:/var/drweb/run/.drweb-agent

Now let's stop at the options that may be specified. 


     Section [AgentServer] contains parameters related to agent and filter
intercation.

Address = ADDRESS (absent)

Specifies agent address to which the filter will drop statistic.

Backlog = COUNT (0)

Connections queue length (parameter backlog of listen() syscall).

RunAs = STRING (absent)

Name of the user whose account will be used for operating. 

RunForeground = BOOL (no)

If this parameter is set to "yes" filter will not become a daemon, it uses tools
for monitoring filter state with different utilities (i.e. daemontools).


     Section [VStatServer] contains parameters related to agent and statistic
server intercation.

Address = ADDRESS (absent)

Address of statistic site.
NOTE: Currently only inet:80@stat.drweb.com is available.

Host = STRING (absent)

Value of Host: parameter in HTTP request.

Uuid = STRING (absent)

Customer ID: personal (if assigned by Doctor Web Ltd.) or md5 of key file.

UsePost = BOOL (yes)

Agent can use POST and GET methods for updating statistic on server.
Method POST more reliable because size of URL is limited.

Timeout = COUNT (10)

Time limit (in seconds) for updating session.

UpdatePeriod = COUNT (60)

Statistic update interval (in minutes) cannot be less that 5.


    In the [Logging] section the parameters of outputting the information
on filter operating are described.

Level = STRING (Quiet)

Set the detalization level of the output information. Currently available next 
values: Quiet, Errors, Alerts, Info, Verbose, Debug. Operational information 
will be output with SyslogPriority priority and SyslogFacility facility.

SyslogFacility = STRING (Mail)

Logging type if syslogd system service is used. Available values: Daemon, Mail, 
Local0 .. Local7

SyslogPriority = STRING (Info)

Logging priority if syslogd system service is used. Available values: Debug, 
Info, Notice, Alert.
