On Thu, Jun 30, 2005 at 11:25:29PM -0500, Joe Wells wrote: > sending the traps in using raw OIDs, since the docs seem to indicate > that jffnms requires this. I'd really like to have the traps converted > to something approaching human-readable via mibs, but I can live without > it. I'm not sure there is a simple way of doing that, possibly there is some PHP function to do it.
> Where I'm getting hung up is the configuration of the snmp trap rules. > The doc pdf says to go to Administration\Internal Configuration\Event > Analyzer\SNMP Trap Rules, but I don't have that option. I have SNMP Trap > Receivers, but that's a different animal, isn't it? Or am I being dense? > > I saw an earlier exchange where Craig Small indicated that the snmp trap > stuff has recently changed and isn't documented yet. Is this the case? Yes, most definitely the case. It's a completely different way of looking at the traps, let alone just a few cosmetic changes. > If so can someone give a brief run-down of how this is done now? Any > help would be most appreciated. Like most things in JFFNMS, it is best to work forwards in the planning and backwards in the coding :) OK, so you have a trap, with an OID identifying it as *this* trap. The trap has some varbinds, variables. You might like to mangle some of them and get variables. You then probably want to raise an event. Most is easy to do, but the reciever command is a bit tricky. These devices take the trap varbinds and set the event attributes, eg changes the interface number varbind into an interface id. The SNMP trap Receivers table is what says which trap (identified by OID) goes where. The Backend can use the event Receiver Backend. This backend has a variable which is the event type, eg alarm type 3=interface alarm. So you would: Create a new event, note the new event id Create a new Receiver Backend, command is event, Paramater is the event it Create a new trap_receiver to pass and mange any varbinds into event fields, like the ones in syslog Create a new SNMP Trap Reciever that uses all of the above - Craig -- Craig Small GnuPG:1C1B D893 1418 2AF4 45EE 95CB C76C E5AC 12CA DFA5 Eye-Net Consulting http://www.enc.com.au/ MIEE Debian developer csmall at : enc.com.au ieee.org debian.org ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ jffnms-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jffnms-users
