09-13-2010 10:04 AM
Hello,
We're using NAGIOS to monitor the networks of our customers.
We're using BGPv4 and vrf lite on many of those networks.
On every remote routers, we have multiple bgp peer sessions facing two ASR-1002F backbone routers (GRT and VRFs...).
I'd like to know if there's a way to monitor all bgp sessions, on a remote router, without having to enter the ip addresses of all neighbors....
I'm wondering whether or not I can use the "bgpPeerState" state to monitor the status of these bgp peer sessions?
Someone got an idea?
Thanks in advance,
BRGs
xxxxx@NOC-SV-PL-SUP01:/usr/local/nagios/libexec$ snmpwalk -v 2c -c TESTRO 172.27.20.119 BGP4-MIB::bgpPeerRemoteAddr
BGP4-MIB::bgpPeerRemoteAddr.10.40.3.25 = IpAddress: 10.40.3.25
BGP4-MIB::bgpPeerRemoteAddr.10.40.3.29 = IpAddress: 10.40.3.29
BGP4-MIB::bgpPeerRemoteAddr.10.40.8.153 = IpAddress: 10.40.8.153
BGP4-MIB::bgpPeerRemoteAddr.10.40.8.157 = IpAddress: 10.40.8.157
BGP4-MIB::bgpPeerRemoteAddr.172.25.3.17 = IpAddress: 172.25.3.17
BGP4-MIB::bgpPeerRemoteAddr.172.25.3.18 = IpAddress: 172.25.3.18
nsoc-iec@NOC-SV-PL-SUP01:/usr/local/nagios/libexec$ snmpwalk -v 2c -c TESTRO 172.27.20.119 BGP4-MIB::bgpPeerState.10.40.3.25
BGP4-MIB::bgpPeerState.10.40.3.25 = INTEGER: established(6)
09-13-2010 04:46 PM
The bgpPeerState object is indexed by bgpPeerRemoteAddr so to query one state for one peer, you'd have to know that peer's IP. However, you can walk the entire table and get all bgpPeerState objects:
snmpwalk -c TESTRO 172.27.20.119 BGP4-MIB::bgpPeerState
Then pull the specific remote peer address from the left-hand side of the returned objects.
09-23-2010 07:37 AM
Hello Joseph,
Thanks for your answer.
We've been testing some scripts and it's now working!
We use the bgpPeerRemoteAddrMIB to get our ip @ and then we log any change in bgpPeerStateper ip@...
An alarm is on when we have an IDLE state....
Warning for the other BGP states
OK for established.
Regards
Katy Desrosiers
09-23-2010 10:46 AM
I just want to confirm that everything is working for you now? Are you finding everything you need from the MIB?
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide