Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Monitoring BGP sessions status
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
lion_han



Joined: 04 Oct 2006
Posts: 19

PostPosted: Tue Jan 16, 2007 1:16 am    Post subject: Monitoring BGP sessions status Reply with quote

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!
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12148
Location: Muenster, Germany

PostPosted: Sat Jan 27, 2007 4:03 pm    Post subject: Reply with quote

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
Back to top
lion_han



Joined: 04 Oct 2006
Posts: 19

PostPosted: Thu Feb 08, 2007 6:12 am    Post subject: Reply with quote

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 ......)
Back to top
khooker



Joined: 22 Mar 2007
Posts: 8
Location: Paris

PostPosted: Thu Mar 22, 2007 5:38 pm    Post subject: Reply with quote

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!!



Cacti BGP peer status.PNG
 Description:
 Filesize:  18.52 KB
 Viewed:  7250 Time(s)

Cacti BGP peer status.PNG



cacti_graph_template_cisco_bgp_peer_status.xml
 Description:

Download
 Filename:  cacti_graph_template_cisco_bgp_peer_status.xml
 Filesize:  13.34 KB
 Downloaded:  588 Time(s)


cacti_data_template_cisco_router_bgp_peer_status.xml
 Description:

Download
 Filename:  cacti_data_template_cisco_router_bgp_peer_status.xml
 Filesize:  7 KB
 Downloaded:  427 Time(s)


cacti_data_query_cisco_bgp_peer_status.xml
 Description:

Download
 Filename:  cacti_data_query_cisco_bgp_peer_status.xml
 Filesize:  15.38 KB
 Downloaded:  434 Time(s)


cisco_bgp.xml
 Description:
Put this one in your <cacti>/resource/snmp_queries/ folder.

Download
 Filename:  cisco_bgp.xml
 Filesize:  1.12 KB
 Downloaded:  479 Time(s)

Back to top
gg234
Cacti User


Joined: 07 Oct 2005
Posts: 62

PostPosted: Tue Apr 17, 2007 3:31 am    Post subject: Reply with quote

Thanks for your templates can you provide some procedure how to use this scripts
Back to top
redrobish



Joined: 29 May 2007
Posts: 23

PostPosted: Wed Jun 20, 2007 1:32 am    Post subject: Reply with quote

Hi khooker,

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

thanks
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 969

PostPosted: Wed Jun 20, 2007 1:37 am    Post subject: Reply with quote

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.
Back to top
redrobish



Joined: 29 May 2007
Posts: 23

PostPosted: Wed Jun 20, 2007 6:35 pm    Post subject: Reply with quote

its Cacti Version - 0.8.6j.

tnx
Back to top
niobe
Cacti User


Joined: 10 Mar 2008
Posts: 125
Location: Australia

PostPosted: Tue Apr 22, 2008 1:36 am    Post subject: Reply with quote

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



bgp_peer_status.png
 Description:
Example graph
 Filesize:  28.49 KB
 Viewed:  4955 Time(s)

bgp_peer_status.png



cisco_bgp.xml
 Description:
XML query

Download
 Filename:  cisco_bgp.xml
 Filesize:  3 KB
 Downloaded:  267 Time(s)


cacti_data_query_cisco_-_bgp_peer_statistics.xml
 Description:
BGP Peer Statistics Templates

Download
 Filename:  cacti_data_query_cisco_-_bgp_peer_statistics.xml
 Filesize:  20.46 KB
 Downloaded:  230 Time(s)

Back to top
kanada
Cacti User


Joined: 28 Aug 2005
Posts: 125

PostPosted: Tue May 13, 2008 6:54 am    Post subject: Reply with quote

Hi,

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

Alex.
Back to top
eternal
Cacti User


Joined: 14 Dec 2006
Posts: 57
Location: Kingsport TN

PostPosted: Tue May 13, 2008 8:32 am    Post subject: Reply with quote

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
Back to top
niobe
Cacti User


Joined: 10 Mar 2008
Posts: 125
Location: Australia

PostPosted: Tue May 13, 2008 6:37 pm    Post subject: Reply with quote

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

True, it's a standard MIB not Cisco specific.
Back to top
kanada
Cacti User


Joined: 28 Aug 2005
Posts: 125

PostPosted: Thu May 15, 2008 5:35 am    Post subject: Reply with quote

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.
Back to top
niobe
Cacti User


Joined: 10 Mar 2008
Posts: 125
Location: Australia

PostPosted: Thu May 15, 2008 6:07 am    Post subject: Reply with quote

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
Back to top
kanada
Cacti User


Joined: 28 Aug 2005
Posts: 125

PostPosted: Fri May 16, 2008 3:44 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group