# -----------------------------------------------------------------------------
# Configuration file for snmptrapfmt-1.0
#
# Comment lines start with the character '#'
# Blank lines are ignored
#
# In order to configure the log output, use the following keywords.
# -----------------------------------------------------------------------------


# - SUBST=\a\b\
#   substitute char 'a' with 'b' in variable values
#   Default: \;\ \
SUBST=\#\ \

# NOTE: The OIDFMT has to be set in the /etc/snmp/snmp.conf file and is
#       valid for all snmp programs of package SNMPD. It is ignored here.
# - OIDFMT=text | oid
#   print OIDs symbolically (text) or numerical (oid);
#   used in formats $e $*
#   Default: oid
#OIDFMT=text

# NODEFMT=ip | fqdn | name
#   print nodenames as IP address (ip), as fully qualified domain name (fqdn)
#   or in the short form (name);
#   used in formats $A $R $r $*
#   Default: fqdn
NODEFMT=ip

# VARFMT="format string for variables"
#   specify the output of variables when using the '$*' format specifier
#   in the logfile format;
#   special chars recognized:
#    %s ... sequence number of the variable
#    %n ... the name of the variable (see OIDFMT)
#    %t ... the type of the variable
#    %v ... the value of the variable
#   used in format $*
#   Default: ";[%s] %n (%t) : %v"  
#VARFMT="\n\t[%s] %n (%t) : %v"
VARFMT="#[%s] %n (%t) : %v" 

# LOGFMT="format string for logfile entry"
#   specify the output of the logfile entry;
#   special char recognized:
#    \n  ... newline
#    \r  ... carriage return
#    \t  ... horizontal tab
#    \\  ... backslash
#    $#  ... number of variables in the trap
#    $*  ... print all variables of the trap as specified in VARFMT
#    $x  ... date the trap was received (YYYYMMDD.HHMMSS)
#    $r  ... the implied source of the trap (agent address) (see NODEFMT)
#    $R  ... the true source of the trap (via transport layer) (see NODEFMT)
#    $$  ... the character '$'
#    $e  ... the enterprise of the trap as specified in OIDFMT
#    $A  ... the trap agent address as specified in NODEFMT
#    $G  ... the trap generic number
#    $S  ... the trap specific number
#    $T  ... the trap's sysUpTime timestamp (in seconds)
#    ordinary characters represent themselfes
#   Default: "$x;$A;$e;$G;$S$*"
#LOGFMT="\n$$x=$x\n$$r=$r\n$$R=$R\n$$e=$e\n$$A=$A\n$$G=$G\n$$S=$S\n$$T=$T\n$$#=$#$*"
LOGFMT="$x#$A#$e#$G#$S#$T$*"

# LOGFILE="path to logfile"
#   specify the pathname of the logfile; if none or the empty string "" is
#   given, use the syslog() mechanism to log the traps
#   Default: ""
LOGFILE="/var/log/snmptrapfmt.log"
