Cisco BGP graph
Moderators: Developers, Moderators
Question...
What is this exactly monitoring in BGP? The graph doesn't seem to be monitoring the received prefixes and other stuff.
I got a little lost on what you did here to get the titles updated. Can you clarify a bit for the Cacti newbie?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
Thanks!
Cacti 0.86i-beta4
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:
From the rrdgraph man pages:
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
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
So I don't know if this is something that the template author missed originally due to a fixed bug: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.
Code: Select all
bug#0000316: unit_value is not taken into account
bug#0000739: "Unit value" parameter in template options ignored
Thanks
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
Thanks,
Lard
---- lard007skype ----
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>
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>
IPv6 BGP Support? :)
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?
No output?
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
+ 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
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
Who is online
Users browsing this forum: No registered users and 5 guests