Breaks the conversion pattern string itself up and, using the tokens thus found, builds distinct
VarBinds out of the OID's embedded in the conversion pattern string and the escaped elements of
the LoggingEvent.
Gets the flag that determines if the contents of the stack trace of any Throwable in the LoggingEvent
should be added as VarBinds to the trap PDU.
Default is FALSE.
Gets the value of the delimiter used in the conversion pattern string to delimit
value pairs that should be added as separate VarBind variables to the trap.
Description: This class makes use of the NetSNMP snmptrap utility to
send traps that implement the underlying SNMP protocol(s).
NOTE: this class is intended primarily as a "proof-of-concept", and to serve
as an example of a possible usage of a command line trap sending utility with
the appender.
An appender to send formatted logging event strings to a specified managment
host (typically, a MLM of some sort, but could also be an SNMP management
console) in the form of an SNMP trap.
This layout allows you to embed trap specific OID's in the conversion pattern defined in the
configuration script, assigning each embedded OID to a specific element of the LoggingEvent.
Sets the flag that determines if the contents of the stack trace of any Throwable in the LoggingEvent
should be added as VarBinds to the trap PDU.
Default is FALSE.
Deprecated.Now using the excellent SysUpTimeResolver idea from Thomas Muller,
but if you set this value in the properties file, the appender will use that
value, to maintain backwards compatibility.
Sets the value of the delimiter used in the conversion pattern string to delimit
value pairs that should be added as separate VarBind variables to the trap.
Title: WengsoftSNMPTrapSender
Description: This class makes use of the Wengsoft SNMP library to implement
the underlying SNMP protocol(s).
You can get a copy of Wengsoft SNMP here.
You will need a copy of the library ("snmpv3.jar" at a minimum) to use
and/or compile this class.