NetXMS Support Forum

English Support => General Support => Topic started by: limsh on March 15, 2018, 07:10:21 AM

Title: SNMP Traps configuration
Post by: limsh on March 15, 2018, 07:10:21 AM
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.8.8.8.8

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

If extract is not possible, can varbinds be output unprocessed?

Regards
Title: Re: SNMP Traps configuration
Post by: limsh on March 16, 2018, 03:56:03 AM
Please, help me  :'(
Title: Re: SNMP Traps configuration
Post by: Tursiops on March 16, 2018, 06:34:10 AM
Hi,

You can get the values of the varbinds, but I don't think you can get the varbinds themselves.
I don't think you can query the SNMP Trap Log via NXSL either, but I guess you could trigger an action that calls a script on the server which pulls the information from the database or via nxshell (i.e. trigger an action on the event via event processing policies, with the action pulling the information out of the logs).

Alternatively you could:
- setup DCIs to actively monitor the status of your BGP peers via BGP SNMP table, but that won't be as "instant" as an SNMP trap.
- use Syslog, where you can grab the relevant information from the message

Some example syslog from a Cisco:
%BGP-3-NOTIFICATION: sent to neighbor 192.168.255.5 4/0 (hold time expired) 0 bytes
%BGP-5-NBR_RESET: Neighbor 192.168.255.5 reset (BGP Notification sent)
%BGP-5-ADJCHANGE: neighbor 192.168.255.5 Down BGP Notification sent
%BGP-5-ADJCHANGE: neighbor 192.168.255.5 Up


Someone else may have an easier solution?

Cheers
Title: Re: SNMP Traps configuration
Post by: limsh on March 16, 2018, 07:08:26 AM
Hi,

Thank you very much for your reply.
But, I want to real-time output it.

Regards
Title: Re: SNMP Traps configuration
Post by: limsh on March 19, 2018, 03:30:33 AM
Please help me  :'( :'(
Title: Re: SNMP Traps configuration
Post by: limsh on March 22, 2018, 02:32:19 AM
Please help me..  :'(  :'(  :'(
Title: Re: SNMP Traps configuration
Post by: Victor Kirhenshtein on March 26, 2018, 05:41:00 PM
Hi,

unfortunately you cannot access actual varbinds from NXSL. I can change it in next release (change is really simple, information is there, just not exposed to NXSL). Then you'll be able to use simple script to extract necessary information.

Best regards,
Victor
Title: Re: SNMP Traps configuration
Post by: limsh on March 27, 2018, 02:39:54 AM
Hi Kirhenshtein,

Thank you very much for your assistance.
I'll wait until the next releases.

Best Reguard