Monitoring BGP sessions status

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Monitoring BGP sessions status

Post by lion_han »

Hello guys!
I need your help...! Is there any opportunity to monitor the status of BGP sessions (up or down), i mean if my BGP peer is down how can I know or monitor it? Also, is it possible to figure out it using graphics?

Thanks in advance!
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Up/Down would be a binary status. Cacti as an rrdtool frontend will only be able to graph numbers. So if you write a wrapper script that converts up to 1 and down to 0, cacti will graph it. See first link of my signature for walkthroughs
Reinhard
lion_han
Posts: 19
Joined: Wed Oct 04, 2006 12:47 am

Post by lion_han »

I found another method monitoring BGP peer
i have oid for BGP peer state: 1.3.6.1.2.1.15.3.1.2
this oid have 6 Values
1 : idle
2 : connect
3 : active
4 : opensent
5 : openconfirm
6 : established

so how to create graph for this 6 values that in they will be different color.
(1-red, 2-blue ......)
khooker
Posts: 8
Joined: Thu Mar 22, 2007 5:29 pm
Location: Paris

Post by khooker »

Hi, here are some templates you can use (0.86j) to graph the BGP peering status on your router.

Please give me your feedback on this one so I can improve it if needed!! :D
Attachments
cisco_bgp.xml
Put this one in your <cacti>/resource/snmp_queries/ folder.
(1.12 KiB) Downloaded 2062 times
cacti_data_query_cisco_bgp_peer_status.xml
(15.38 KiB) Downloaded 1911 times
cacti_data_template_cisco_router_bgp_peer_status.xml
(7 KiB) Downloaded 1944 times
cacti_graph_template_cisco_bgp_peer_status.xml
(13.34 KiB) Downloaded 2430 times
Cacti BGP peer status.PNG
Cacti BGP peer status.PNG (18.52 KiB) Viewed 26753 times
gg234
Cacti User
Posts: 63
Joined: Fri Oct 07, 2005 11:14 am
Contact:

Post by gg234 »

Thanks for your templates can you provide some procedure how to use this scripts
redrobish
Posts: 25
Joined: Tue May 29, 2007 2:09 am

Post by redrobish »

Hi khooker,

I'm receiving this "Error: XML: Hash version does not exist" when importing the template. Can you help me out?

thanks
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

redrobish wrote:Hi khooker,

I'm receiving this "Error: XML: Hash version does not exist" when importing the template. Can you help me out?

thanks
What version of Cacti are you running ? These templates were exported using Cacti 0.8.6j.
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
redrobish
Posts: 25
Joined: Tue May 29, 2007 2:09 am

Post by redrobish »

its Cacti Version - 0.8.6j.

tnx
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

Here is a slightly modified version that adds Peer Uptime and Peer Flaps (transitions to established state since reboot). Includes a CDEF for converting seconds to hours

cheers,

N
Attachments
cacti_data_query_cisco_-_bgp_peer_statistics.xml
BGP Peer Statistics Templates
(20.46 KiB) Downloaded 1948 times
cisco_bgp.xml
XML query
(3 KiB) Downloaded 1906 times
Example graph
Example graph
bgp_peer_status.png (28.49 KiB) Viewed 24458 times
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Post by kanada »

Hi,

someone can upload these templates under 0.8.6h of cacti version?

Alex.
eternal
Cacti User
Posts: 68
Joined: Thu Dec 14, 2006 4:38 pm
Location: Kingsport TN
Contact:

Post by eternal »

This works cross platform. Could take the Cisco off

To add Go to device > THen your device > Associated Data Queries > Add Data Query: add

Then add graphs you should see it there
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

[quote="eternal"]This works cross platform. Could take the Cisco off

True, it's a standard MIB not Cisco specific.
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Post by kanada »

Guys, i know how to add this template to my Cisco device, but i can't import it due to my old 0.8.6h cacti version on one machine.

I'm getting back Error: XML: Hash version does not exist when importing the template.

Alex.
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

kanada wrote:Guys, i know how to add this template to my Cisco device, but i can't import it due to my old 0.8.6h cacti version on one machine.

I'm getting back Error: XML: Hash version does not exist when importing the template.

Alex.
Sorry I have no idea how to make it work on the old version. Have you considered upgrading?

cheers,

N
kanada
Cacti User
Posts: 137
Joined: Sun Aug 28, 2005 12:51 pm

Post by kanada »

niobe wrote:
kanada wrote:Guys, i know how to add this template to my Cisco device, but i can't import it due to my old 0.8.6h cacti version on one machine.

I'm getting back Error: XML: Hash version does not exist when importing the template.

Alex.
Sorry I have no idea how to make it work on the old version. Have you considered upgrading?

cheers,

N
Yep, i think about it but at this time i can't do an upgrade. Anyway thank you ;)

Alex.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests