News:

We really need your input in this questionnaire

Main Menu

SNMP Traps configuration

Started by limsh, March 15, 2018, 07:10:21 AM

Previous topic - Next topic

limsh

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

limsh


Tursiops

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

limsh

Hi,

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

Regards

limsh


limsh


Victor Kirhenshtein

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

limsh

Hi Kirhenshtein,

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

Best Reguard