Cisco BGP graph

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

Moderators: Developers, Moderators

Wunk
Posts: 37
Joined: Fri Mar 05, 2004 8:34 am
Contact:

Post by Wunk »

upgrade to the latest cacti, you cannot import stuff that was exported from a newer version then you're running
Jeroen Wunnink
Easyhosting.nl Sysadmin
Wunk
Posts: 37
Joined: Fri Mar 05, 2004 8:34 am
Contact:

Post by Wunk »

Small bug that I found though, it gets a bit confused when you have more then 1 session with the same AS. It messes the datasources up then..
Jeroen Wunnink
Easyhosting.nl Sysadmin
bidzer
Posts: 30
Joined: Tue Jun 20, 2006 12:49 pm

Question...

Post by bidzer »

What is this exactly monitoring in BGP? The graph doesn't seem to be monitoring the received prefixes and other stuff.
Wunk
Posts: 37
Joined: Fri Mar 05, 2004 8:34 am
Contact:

Post by Wunk »

The number of updates it receives from the peers, easy to spot if someone is doing excessive updates this way..
Jeroen Wunnink
Easyhosting.nl Sysadmin
bidzer
Posts: 30
Joined: Tue Jun 20, 2006 12:49 pm

Anyway to graph prefixes and bgp sums?

Post by bidzer »

Thanks
bidzer
Posts: 30
Joined: Tue Jun 20, 2006 12:49 pm

Post by bidzer »

Anyway to graph prefixes and bgp sums?

Thanks
knobdy
Cacti User
Posts: 495
Joined: Wed Sep 28, 2005 1:39 pm

Post by knobdy »

I've been running this remplate for awhile and I just noticed something odd with the graphs, see attached. Can I just delete the double entries in the template?
Attachments
bpg_graph_template.JPG
bpg_graph_template.JPG (110.03 KiB) Viewed 22736 times
bpg_graph.JPG
bpg_graph.JPG (57.28 KiB) Viewed 22736 times
Feren
Posts: 6
Joined: Fri Sep 01, 2006 2:23 pm
Location: Oak Brook, IL

Post by Feren »

tribune wrote:within the

cacti_graph_template_cisco_bgp_updates.xml

it has the title like

<title>|host_description| - bgpPeerIdentifier</title>

but going through the other xml files, the contents between the title tags should be

|host_description| - BGP - Peer:|query_bgpPeer| AS|query_bgpPeerRemoteAs|

Changed this within cacti and boom, title's are correct and looking sweet as
I got a little lost on what you did here to get the titles updated. Can you clarify a bit for the Cacti newbie?

Thanks!
redphive
Posts: 9
Joined: Wed Jan 08, 2003 7:50 pm

Cacti 0.86i-beta4

Post by redphive »

I noticed a problem with this after reinstalling my dev system with the latest 0.8.6i beta 4 release. The following code should outline my point:

Code: Select all

 RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="7609-Core SNMP-V1 - bgpPeerIdentifier" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--y-grid=1 \
--units-exponent=1 \
--vertical-label="" \
--slope-mode \
DEF:a="/www/cacti/rra/7609core_snmpv1_bgppeerouttotalmsg_35.rrd":bgpPeerInUpdates:AVERAGE \
DEF:b="/www/cacti/rra/7609core_snmpv1_bgppeerouttotalmsg_35.rrd":bgpPeerOutUpdates:AVERAGE \
CDEF:cdefa=a,300,* \
CDEF:cdefe=b,300,* \
LINE1:cdefa#3D168B:"In updates"  \
GPRINT:cdefa:LAST:" Current\:%8.0lf"  \
GPRINT:cdefa:MIN:"Min\:%8.0lf"  \
GPRINT:cdefa:MAX:"Max\:%8.0lf\n"  \
LINE1:cdefe#7EE600:"Out updates"  \
GPRINT:cdefe:LAST:"Current\:%8.0lf"  \
GPRINT:cdefe:MIN:"Min\:%8.0lf"  \
GPRINT:cdefe:MAX:"Max\:%8.0lf\n" 

RRDTool Says:

ERROR: invalid y-grid format
From the rrdgraph man pages:
Y-Axis
[-y|--y-grid grid step:label factor]

[-y|--y-grid none]

Y-axis grid lines appear at each grid step interval. Labels are placed every label factor lines. You can specify -y none to suppress the grid and labels altogether. The default for this option is to automatically select sensible values.
So I don't know if this is something that the template author missed originally due to a fixed bug:

Code: Select all

bug#0000316: unit_value is not taken into account 
bug#0000739: "Unit value" parameter in template options ignored 
Removing the Unit Grid Value value in the Cisco - BGP Updates graph template fixes the issue, but I am sure there is to be some update to this.

Thanks
User avatar
lard
Cacti User
Posts: 165
Joined: Wed Jul 20, 2005 10:48 am
Location: UK - Cambridge

Post by lard »

I have had a problem with this template also - added and imported fine but got the usual "unable to find rrd file" error message when trying to find why the graphs dont appear - I initially went in and created 200 graphs for each peer on our router but will now do this for one and see what error message I get when it runs,

Thanks,

Lard
---- lard007skype ----
godot
Posts: 5
Joined: Thu Feb 01, 2007 4:43 am
Location: belgium

This from script

Post by godot »

--
Last edited by godot on Tue Feb 13, 2007 3:14 am, edited 1 time in total.
godot
Posts: 5
Joined: Thu Feb 01, 2007 4:43 am
Location: belgium

Post by godot »

Hello All,

I am using this template to graph BGP data... unfortunately, I have some routers in DMZ and they are not accessible using snmp.

I have a .pl script the return all necessary information about them (it uses an SNMP relay). I would like to use this BGP template but using my script to retrieve data.
My script supports the normal index, query and get arguments (its behaviour is the same than the unix_disk.xml), so I can ascociate a device with the classical "cisco_bgp" data queries, or with my "cisco_bgp_proxied" data queries, i got the same result.

Below is my XML file. It contains the same fiels that the SNMP template.

BUT... when I try to create graph (|host_description| - BGP - |query_bgpPeer| ), the |query_bgpPeer| is not resolved and nothing happend. No graphs are created.

Can someone help me please !! :(

<query>
<name>BGP peering from NETview polling</name>
<description>BGP peering from NETview polling</description>
<script_path>perl /PRD/SYDN/CACTI/scripts/BGP.pl</script_path>
<arg_prepend> |host_hostname| |host_snmp_community| </arg_prepend>
<arg_index>index</arg_index>
<arg_query>query</arg_query>
<arg_get>get</arg_get>
<arg_num_indexes></arg_num_indexes>
<output_delimeter>:</output_delimeter>
<index_order>bgpPeerRemoteAs</index_order>
<index_order_type>alphabetic</index_order_type>
<index_title_format>|chosen_order_field|</index_title_format>
<fields>
<bgpPeerRemoteAs>
<name>Remote AS</name>
<direction>input</direction>
<query_name>bgpPeerRemoteAs</query_name>
</bgpPeerRemoteAs>
<bgpPeer>
<name>Peer Address</name>
<direction>input</direction>
<query_name>bgpPeer</query_name>
</bgpPeer>
<bgpPeerAdminStatus>
<name>Admin Status(1-down,2-up)</name>
<direction>input</direction>
<query_name>bgpPeerAdminStatus</query_name>
</bgpPeerAdminStatus>

<bgpPeerInUpdates>
<name>bgpPeerInUpdates</name>
<direction>output</direction>
<query_name>bgpPeerInUpdates</query_name>
</bgpPeerInUpdates>
<bgpPeerOutUpdates>
<name>bgpPeerOutUpdates</name>
<direction>output</direction>
<query_name>bgpPeerOutUpdates</query_name>
</bgpPeerOutUpdates>
<bgpPeerInTotalMessages>
<name>bgpPeerInTotalMessages</name>
<direction>output</direction>
<query_name>bgpPeerInTotalMessages</query_name>
</bgpPeerInTotalMessages>
<bgpPeerOutTotalMessages>
<name>bgpPeerOutTotalMessages</name>
<direction>output</direction>
<query_name>bgpPeerOutTotalMessages</query_name>
</bgpPeerOutTotalMessages>
</fields>
</query>
kplau
Posts: 4
Joined: Sun Apr 22, 2007 2:09 am

IPv6 BGP Support? :)

Post by kplau »

This graph is great! I've gotten mine to work - thanks to the previous posters concerning the Y-Grid thing error as well as the title correction, I've gotten my BGP graphs to work. However I also have some peers using IPv6 addresses and I don't think these are displaying correctly (instead of IPv6 addresses I'm just getting weird IPv4 numbers) though I think the graphs still works. Anyone worked out a solution to this problem yet?
andrew2
Cacti User
Posts: 64
Joined: Mon Jul 26, 2004 2:50 pm
Location: Cincinnati, OH
Contact:

No output?

Post by andrew2 »

After adding the Data Query to a few BGP-enabled routers, I consistently get:

+ Running data query [10].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/cacti/resource/snmp_queries/cisco_bgp.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.15.3.1.7'
+ No SNMP data returned
+ Found data query XML file at '/cacti/resource/snmp_queries/cisco_bgp.xml'
+ Found data query XML file at '/cacti/resource/snmp_queries/cisco_bgp.xml'
+ Found data query XML file at '/cacti/resource/snmp_queries/cisco_bgp.xml'

running an snmpwalk for .1.3.6.1.2.1.15.3.1.7 manually from the commandline correctly returns a list of BGP peers. Any thoughts?

Andrew
tarpat1
Posts: 17
Joined: Sun Jan 01, 2006 11:39 pm

Post by tarpat1 »

tribune wrote:ok sorted this out ...

within the

cacti_graph_template_cisco_bgp_updates.xml

it has the title like

<title>|host_description| - bgpPeerIdentifier</title>

but going through the other xml files, the contents between the title tags should be

|host_description| - BGP - Peer:|query_bgpPeer| AS|query_bgpPeerRemoteAs|

Changed this within cacti and boom, title's are correct and looking sweet as

great stuff...

ooh very nice
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests