Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to pass peer ip address to email alert title/subject for a BGP trap #58

Open
giangiobomber opened this issue Apr 17, 2021 · 0 comments

Comments

@giangiobomber
Copy link

Hello,

how would i pass the bgp peer in a trap as a parameter in the notification content?
traps are appearing as follows and the IP address seems to be attached to the trap OID rather than as a value of the trap OID
I went through the user guide multiple times and i couldn't find anything related to this particular issue.
I have uploaded all the relevant MIBs and the system is capturing and displaying the traps as it should (to the best of my knowledge).

Thank you!
John

.1.3.6.1.2.1.1.3.0 sysUpTimeInstance DISMAN-EVENT-MIB 307:20:52:34.75
.1.3.6.1.2.1.15.3.1.14.10.250.254.1 bgpPeerLastError.10.250.254.1 BGP4-MIB "04 00 "
.1.3.6.1.2.1.15.3.1.2.10.250.254.1 bgpPeerState.10.250.254.1 BGP4-MIB 6
.1.3.6.1.4.1.9.9.187.1.2.1.1.7.10.250.254.1 cbgpPeerLastErrorTxt.10.250.254.1 CISCO-BGP4-MIB "hold time expired"
.1.3.6.1.4.1.9.9.187.1.2.1.1.8.10.250.254.1 cbgpPeerPrevState.10.250.254.1 CISCO-BGP4-MIB 5

Purpose

I'm trying to alert on BGP session state change using snmp traps rather than routine checks for a speedier alerting.
however as it is it's not telling me which BGP peer state has changed.

Your Environment

If related to the question in any way :

  • trapdirector version (in icinga web 2 : System - About): 1.0.6
  • Icinga Web 2 version and modules (in icinga web 2 : System - About): 2.8.2
  • Icinga 2 version (icinga2 --version): 2.12.3
  • Operating System and version:: CentOS 7.9.2009 (core)
  • Webserver, PHP versions: Apache 2.4.6, red-hat PHP 7.3
@giangiobomber giangiobomber changed the title How to pass hostname to alarm title for a BGP trap How to pass peer ip address to email alert title/subject for a BGP trap Apr 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant