Skip to content

SNMP trap forwarder for various consumers, e.g. syslog, sensu, icinga

License

Notifications You must be signed in to change notification settings

marcsauter/trapforwarder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

trapforwarder

Quick start

Add the following lines to /etc/snmp/snmptrapd.conf:

disableAuthorization yes
traphandle default /path/to/trapforwarder log

Start snmpd in a terminal:

$ snmptrapd -f -Le -Dsnmptrapd

Send a trap in another terminal:

$ snmptrap -v 1  -c public localhost 1.3.6.1.4.1.5471.2  $(hostname) 6 20 "" SNMPv2-MIB::sysLocation.0 s "Just here"

Check syslog to see the result:

$ journalctl -t trapforwarder

Recipients

Log

Send the raw trap to syslog

Sensu

Send the trap to the sensu client. Work in progress ...

Icinga

Not implmented yet.

About

SNMP trap forwarder for various consumers, e.g. syslog, sensu, icinga

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages