NetXMS Support Forum

English Support => General Support => Topic started by: darshakamodi on September 05, 2011, 01:24:21 PM

Title: Saving Traps received to some DB or File
Post by: darshakamodi on September 05, 2011, 01:24:21 PM
Dear All,

I want to save SNMP Trap log which are traps received from other systems.
How would i do that? And how would i do some action/even if a trap is received ?

Please let me know how to do that.

THanks
Darshak
Title: Re: Saving Traps received to some DB or File
Post by: lindeamon on September 05, 2011, 02:55:40 PM
hi darshak,

to the first question i will let the big guy,victor answer since i am a common user like you.
the answer to your 2nd question will be divided to 4 parts and all the tools you need are provided in the control panel assuming you are using the old console
part 1: you have to create an event in the "events" tool.the info u need to enter there is very strait forward and u can use prebuilt events as an examples.
part 2: you have to create a new trap configuration with the "snmp trap configuration" tool.again, the info you need to enter is strait forward.
part 3: using the "actions" tool u need to create the action u want to invoke when such a trap is received.
part 4: using the "event processing policy editor" you need to create a policy with the event created earlier and the action you want to perform.

hope this info will be enough for you to start using this awesome piece of software.
lindeamon
Title: Re: Saving Traps received to some DB or File
Post by: darshakamodi on September 05, 2011, 03:35:57 PM

Thanks !.

let me check and comeback for this.

Title: Re: Saving Traps received to some DB or File
Post by: Sympology on September 09, 2011, 03:20:47 PM
Ok two ways for SNMP, traps and polling.

A quick guide.
Changes (including things up / down) are usually SENT to NetXMS  from the device. These are usually configured under "Trap Destinations" or similar.
Status, e.g. tempreture or items in use, are usally polled for i.e. NetXMS requests the info from the device.
Here you really need to make sure that your SNMP authentication details match and your destination will accept requests from NetXMS for info.
Then you will need to make sure you have the mibs for that device set on NetXMS.
Then the hard work of matching and alerting sets in :-)
Title: Re: Saving Traps received to some DB or File
Post by: darshakamodi on September 10, 2011, 07:22:49 AM
Thanks a lot..Yep that much configuration is done for Trap Receiver.

Now I have single OID with different String values. How do i match in SNMP Traps -> New  Trap ID -Events..

I want to match the string not OID is it possible ?

Title: Re: Saving Traps received to some DB or File
Post by: Victor Kirhenshtein on September 11, 2011, 12:12:32 PM
Hi!

No. it's not possible to match traps with same OID to different events. However, you can do additional matching in event processing policy using scripts, and process same event differently depending on trap parameter values.

Best regards,
Victor
Title: Re: Saving Traps received to some DB or File
Post by: darshakamodi on September 11, 2011, 01:58:38 PM
Actually, I am not good with details on Trap and its parameters, but would do that and test as per below guidelines.