SNMP Traps configuration
-
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.8The 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
-
-
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 UpSomeone else may have an easier solution?
Cheers
-
-
-
-
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 -
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login