RE: Trap description

Todd Bradley <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
FWIW, a few months ago I ran into the same issue you just wrote about. I didn't post it here, assuming "I must be doing something wrong, since this feature seems broken so badly they couldn't have released the software this way."  Maybe I was wrong. I just learned to live with it. But I'd love to hear if there's something I'm missing.


Cheers,
Todd.



From: Nicholas Satterly [mailto:[email protected]]
Sent: Sunday, May 19, 2013 2:18 PM
To: [email protected]
Subject: Trap description

Hi

I'm using snmptrapd to call a trap handler and assumed that defining an execute format with "%W" in it would give me the trap description because that is how the man page describes it [1]. However, it seems this only gives me "Enterprise Specific" which is not very useful.

Can snmptrapd be configured to supply the description for a trap that is contained in the MIB to a trap handler?

If not, can anyone suggest other ways that this description could be obtained when a trap is received? One possibility would be to execute "snmptranslate -Td" for every trap received but this might not scale for systems receiving 100's or 1000's of traps a second.

Any help would be appreciated.

Thanks,
Nick


[1] /etc/snmp/snmptrapd.conf

authCommunity log,execute,net public
format execute $a %a\n$A %A\n$b %b\n$B %B\n$x %#y-%#02m-%#02l\n$X %#02.2h:%#02.2j:%#02.2k\n$N %N\n$q %q\n$P %P\n$t %t\n$T %T\n$w %w\n$W %W\n%V~\%~%v\n
traphandle default /tmp/traphandler.sh

------------------------------------------------------------------------------
AlienVault Unified Security Management (USM) platform delivers complete
security visibility with the essential security capabilities. Easily and
efficiently configure, manage, and operate all of your security controls
from a single console and one unified framework. Download a free trial.
http://p.sf.net/sfu/alienvault_d2d

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.