NetXMS Support Forum

English Support => General Support => Topic started by: johanborch on September 24, 2010, 08:11:10 PM

Title: SNMP Traps and data
Post by: johanborch on September 24, 2010, 08:11:10 PM
Hi,

I'm trying to setup traps for BGP-sessions, and I've managed to get netxms to set alarm when they go up/down. My problem is that I want the neighbor that went down to be in the alarm.

I can see the following in my SNMP traps log:

Trap OID: .1.3.6.1.2.1.15.7.2

Varbinds:

...;.1.3.6.1.2.1.15.3.1.14.10.2.4.7

The peer in this case 10.2.4.7 seems to be included in the Varbind/OID, is there some way to extract this in netxms?

Regards
Johan
Title: Re: SNMP Traps and data
Post by: Victor Kirhenshtein on September 27, 2010, 11:51:19 AM
Hi!

It's impossible to extract part of the varbind's OID as event's parameter. However, it's possible to extract varbind's value. If trap contains some value identifying BGP peer, then it can be extracted. I suppose that BGP trap can contain either .1.3.6.1.2.1.15.3.1.7.<peer_ip_here> (bgpPeerRemoteAddr) or .1.3.6.1.2.1.15.3.1.5.<peer_ip_here> (bgpPeerLocalAddr). In that case, you can add varbind matching in trap configuration, with matching OID set to .1.3.6.1.2.1.15.3.1.7 for example. When matching varbinds, NetXMS looks for longest possible match, so it will match OID with any peer IP appended to it, which is fine in that case, because there should be one trap per one peer down event.

Best regards,
Victor
Title: Re: SNMP Traps and data
Post by: johanborch on September 28, 2010, 01:29:31 PM
Hi,

Thanks for your reply

The only thing that i can see in my trap-log is the following when a BGP session goes down and none of the vars have data in the that looks like and IP address.

.1.3.6.1.2.1.15.7.2

var: .1.3.6.1.1.3.0
.1.3.6.1.6.3.1.14.1.0
1.3.6.1.2.1.15.7.2
1.3.6.1.2.1.15.3.1.14.A.B.C.D
1.3.6.1.2.1.15.3.1.2.10.10.4.201
1.3.6.1.6.3.1.1.4.3.0

Regards
Johan