traphandles

"Deas, Jim" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <8D186948DD442640ADB56A1001FEB3A62E1439E416@WBWBURPEX7C2M4.amer.warnerbros.com>
I need some help with snmptrapd.conf
I have loaded an MIB for the APC UPS systems and attempted to run a script on trap. I know the script works as 'default' will trigger it

I have already used snmptranslate and confirmed that the the OID .1.3.6.1.4.1.318.0.48 = PowerNet-MIB::passwordChange
I have already added  'traphandle PowerNet-MIB::passwordChange /usr/sbin/runme' to the config
When I trigger the trap I do receive:
----------------------
Mar  7 16:24:52 Joan snmptrapd[23461]: 2011-03-07 16:24:52 ups-SR4-2.audioservers [10.130.28.131] (via UDP: [10.130.28.131]:161->[10.130.28.88]) TRAP, SNMP v1, community public#012#011PowerNet-MIB::apc Enterprise Specific Trap (PowerNet-MIB::passwordChange) Uptime: 19 days, 6:04:01.19#012#011PowerNet-MIB::mtrapargsString.0 = STRING: "System: Password changed."
---------------------------

To me this looks like a match but the program only runs if the traphandle is default.

Have I forgotten something? Is there a better tool for decoding this?

Thanks
JAD

------------------------------------------------------------------------------
What You Don't Know About Data Connectivity CAN Hurt You
This paper provides an overview of data connectivity, details
its effect on application quality, and explores various alternative
solutions. http://p.sf.net/sfu/progress-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.