Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Receiving SNMP Traps

Status
Not open for further replies.

rbutz

Programmer
Dec 20, 2005
1
DE
Hi all,

I guess I've got a quite simple question but I didn't find the answer anywhere:

when a management station receives a trap - where will it be stored? Is it in a mib or in a log file?

The reason why I should know that is that my CEO wants me to collect all SNMP traps in a text or log file. I'm working with SUSE 9.3 with net-snmp and ethereal installed. If the traps are not stored in a file - is there any possibility to catch the traps and forward them to a file?

Many thanks!
Rainer
 
Depends on the management station. If you're just using net-snmp's snmptrapd daemon, it'll go into syslog by default. I use syslog-ng and have a filter like this:

filter f_snmptrap {
program(snmptrapd.*);
};

which puts it in /var/log/snmptrapd.

If you have "real" management station, then that software will deal with the traps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top