Monitoring BGP status of VRF

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Monitoring BGP status of VRF

Post by benningtonr »

I am trying to find a way to monitor bgp sessions under a VRF on my router.

Any one out there doing this?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring BGP status of VRF

Post by slansing »

Hey there benningtonr!

Are any of these an option for you?

http://exchange.nagios.org/index.php?op ... chword=bgp
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Monitoring BGP status of VRF

Post by benningtonr »

Nope, they all seem to have the same problem.
I need to change the "sho ip bgp summ" to "Sho ip bgp vrf Internet2 summ"

But these statements are not blantently obvious in the script, so I do not know what to change to make it work.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring BGP status of VRF

Post by slansing »

Hmmff, I have not been able to locate any already created plugins this specific for you. Perhaps you could also try and contact one of those plugin's developers and ask where you could edit in your requirements whilst we keep hunting around for you.
Last edited by slansing on Fri Feb 15, 2013 11:52 am, edited 1 time in total.
Reason: Please see the post below mine.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Monitoring BGP status of VRF

Post by sreinhardt »

If you look at the plugin check_bgp_ipv6, on line 50 you can directly modify the sho command that is being run to suit your needs. I believe this should work for you since the script seems to just execute the command and take results from that, however it may need some changes between 125-171 to filter output correctly.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Monitoring BGP status of VRF

Post by benningtonr »

That is what i was thinking, i have a mib capture i am going through now to see if I can find a way to accomplish this without bothering anyone.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Monitoring BGP status of VRF

Post by slansing »

Cool, let us know if you need help, I know we're all glad to be bothered.
benningtonr
Posts: 524
Joined: Tue May 22, 2012 2:16 pm

Re: Monitoring BGP status of VRF

Post by benningtonr »

I will go look at that right now, thanks
Locked