### RWSender configuration file  -*- sh -*-
##
## The canonical pathname for this file is ${prefix}/etc/rwsender.conf
##
## RCSIDENT("$SiLK: rwsender.conf.in 13332 2009-01-09 18:35:26Z mthomas $")

# Set to non-empty value to enable rwsender
ENABLED=

# These are convenience variables for setting other values in this
# configuration file; their use is not required.
prefix=/usr/local
exec_prefix=${prefix}
statedirectory=${prefix}/var/lib/rwsender

# If CREATE_DIRECTORIES is set to "yes", the directories named in this
# file will be created automatically if they do not already exist
CREATE_DIRECTORIES=no

# Full path of the directory containing the "rwsender" program
SENDER_BIN=${exec_prefix}/sbin

# The full path of the directory where incoming files will be placed.
INCOMING_DIR=${statedirectory}/incoming

# The full path of the directory where files will be placed for processing.
PROCESSING_DIR=${statedirectory}/processing

# The mode in which the sender will run.  Valid values are "server"
# and "client".
MODE=server

# The name of this sender instance
IDENTIFIER=sender-1

# The port upon which the server listens for incoming connections.
# This is only required when running in server mode.
PORT=

# The receivers to which the sender will send its data.  This is a
# list of lines containing information about the receivers, one line
# per receiver.
#
# This variable is only used in client mode.  The lines should have
# the following format:
# <identifier>  <machine-bname>:<port> <filter-regexp>
#
# The <filter-regexp> is optional.  See the --filter switch in the
# rwsender(8) man page for details on how it is used.
#
# The regular expressions are POSIX 1003.2 "modern" or "extended"
# regular expressions, roughly akin to those used by egrep.
# Documentation might be found in the regex(7) or re_format(7) man
# pages on your system.
#
# There may be any amount of whitespace before or after the
# <identifier>, and before and after <filter-regexp>.  Whitespace
# within the <filter-regexp> is significant, and will be considered
# part of the regular expression.
#
# In this template, the line should be inserted between the line
# beginning: RECEIVER_SERVERS=`cat <<'END_RECEIVERS'
# and the line beginning: END_RECEIVERS
# Do not modify these lines or the backquote on the following line.
#
RECEIVER_SERVERS=`cat <<'END_RECEIVERS' # Do not modify this line
    receiver-1  machine.test.org:9999
    receiver-2  192.168.100.10:9998     ^[^_]*_netflow_
END_RECEIVERS
` #Do not modify this line or the previous line

# The receivers to which the sender will send its data.  This is a
# list of lines containing information about the receivers, one line
# per receiver.  The syntax of the lines varies depending on whether
# the sender is in server or client mode.
#
# This variable is only used in server mode.  The lines should have
# the following format:
# <identifier>  <filter-regexp>
#
# The <filter-regexp> is optional.  See the --filter switch in the
# rwsender(8) man page for details on how it is used.  See
# RECEIVER_SERVERS above for information about the regular expression.
#
# There may be any amount of whitespace before or after the
# <identifier>, and before and after <filter-regexp>.  Whitespace
# within the <filter-regexp> is significant, and will be considered
# part of the regular expression.
#
# In this template, the line should be inserted between the line
# beginning: RECEIVER_CLIENTS=`cat <<'END_RECEIVERS'
# and the line beginning: END_RECEIVERS
# Do not modify these lines or the backquote on the following line.
#
RECEIVER_CLIENTS=`cat <<'END_RECEIVERS' # Do not modify this line
    receiver-1
    receiver-2                          ^[^_]*_netflow_
END_RECEIVERS
` #Do not modify this line or the previous line

# File priorities
#
# Files can be prioritized such that some files are always sent before
# other files.  Files are chosen by regular expression, and are
# assigned a priority from 0 to 100.
#
# The priorites are a list of lines, with each line describing a
# single priority.  The lines follow the following format:
# <priority>  <regexp>
#
# <priority> is an integer from 0 to 100 (inclusive).  The first
# regular expression a file matches will get the matching priority.
#
# Regular expressions follow the same format as those in RECEIVERS
# above.
#
# For information on how rwsender uses priority levels, see the
# rwsender(7) man page.
#
# No priorities are becessary.
#
# In this template, the line should be inserted between the line
# beginning: PRIORITIES=`cat <<'END_PRIORITIES'
# and the line beginning: END_PRIORITIES
# Do not modify these lines or the backquote on the following line.
#
PRIORITIES=`cat <<'END_PRIORITIES' # Do not modify this line
    100  ^S[0-3]_
     25  ^S[7-9]_
END_PRIORITIES
` #Do not modify this line or the previous line


# Interval between attempts to check the INCOMING_DIR for new files,
# in seconds.  This may be left blank, and will default to 15.
POLLING_INTERVAL=


###

# When using the optional GnuTLS support (which must be compiled into
# rwsender), the full path the CA file (TLS_CA) must be specified,
# as well as either the full path to the program-specific PKCS#12 file
# (TLS_PKCS12) or the full paths to the program-specific certificate
# (TLS_CERT) and key (TLS_KEY) files.
#
# If the PKCS#12 file is password protected, you must set the
# RWSENDER_TLS_PASSWORD environment variable to the password prior
# to starting rwsender.

# The full path to the root CA file, PEM encoded
TLS_CA=

# The full path to the program specific PKCS#12 file, DER encoded
TLS_PKCS12=

# The full path to the program specific key file, PEM encoded
TLS_KEY=

# The full path to the program specific certificate file, PEM encoded
TLS_CERT=

###

# The type of logging to use.  Valid values are "legacy" and "syslog".
LOG_TYPE=syslog

# The lowest level of logging to actually log.  Valid values are:
# emerg, alert, crit, err, warning, notice, info, debug
LOG_LEVEL=info

# The full path of the directory where the log files will be written
# when LOG_TYPE is "legacy".
LOG_DIR=${statedirectory}/log

# The full path of the directory where the PID file will be written
PID_DIR=${LOG_DIR}

# The user this program runs as; root permission is required only when
# rwsender listens on a privileged port.
USER=root

# Extra options to pass to rwsender
EXTRA_OPTIONS=
