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:nfsatte...@gmail.com]
Sent: Sunday, May 19, 2013 2:18 PM
To: net-snmp-users@lists.sourceforge.net
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to