SNMP Trap Output Module [snmptrap_out]

Description

Used to generate SNMP traps. Raw traps can be enhanced and forwarded (RAW mode), or new traps can be generated (RIPE mode). Don't ask me where those names came up.

Configuration Tokens

managementstation: Address of host to send traps to.
port: UDP port number (162)
community: SNMP community name to use
debugmode: Debug Level
debugmessages: Path to file to log debug messages
rawmode: Set to '1' to ignore all RIPE mode tokens and process in "RAW" mode. Useful for trap forwarding.

RIPE mode configuration tokens

agentaddress: Local agent IP address
enterprise: Private enterprise number (1.3.6.1.4.1.xxx)
varbindoids: Varbind OID prefix.
varbinddelimeter: Delimeter to use to separate variable bindings from the varbinds.

RAW mode configuration tokens

varbindoids: Uses as a prefix to the enhanced varbind OID.

Output Tokens


RIPE Mode

generictrap: Generic trap number
specifictrap: Specific trap number
varbinds: Varbinds delimeted by varbinddelimeter.

RAW Mode

rawtrap: Base64 encoded raw trap data. Usually taken from the SNMP input module.
enhancetrap: An additional string to append to the varbinds of the raw trap.

Examples

See samples in conf/trapfwd.conf and conf/snmpdemo.conf.


Back to Module Reference


PHP Warnings

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/pear/DB/common.php:741: Notice[8]: Only variable references should be returned by reference

lib/Template.php:106: Notice[8]: Only variables should be assigned by reference

lib/Template.php:107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'htmldump'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'htmldump'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'htmldump'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'htmldump'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'htmldump'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'htmldump'?):107: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'htmldump'?):106: Notice[8]: Only variables should be assigned by reference

lib/Template.php(In template 'body'?)(In template 'htmldump'?):107: Notice[8]: Only variables should be assigned by reference