Cisco BGP Peer Accepted Prefixes count SNMP query

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

Moderators: Developers, Moderators

yuval_ba
Posts: 32
Joined: Mon Oct 13, 2008 6:19 am

Cisco BGP Peer Accepted Prefixes count SNMP query

Post by yuval_ba »

Hi,

Here is an SNMP query that will allow to graph Cisco per BGP peer accepted prefixes count.

Few key points:
  1. this is a quick and not perfect query, the only input field is the peer IP, and it will only work well for ipv4 af, other af will show the OID suffix, this is due to the way this MIB is built.
  2. your Cisco router must support the feature: "BGP MIB Support Enhancements", you can test by walking this OID: .1.3.6.1.4.1.9.9.187.1.2.4.1.1
  3. created on 0.8.7b
  4. place the XML file on <cacti_dir>/resource/snmp_queries/
Attachments
cisco_cbgp.xml
(1.25 KiB) Downloaded 2612 times
slampt
Posts: 2
Joined: Sun Feb 11, 2007 5:47 am

Post by slampt »

I know this was an old thread however I have made some corrections in the above xml as well as a graph template to suit. It is kinda hacky, but it works :P


Cheers
Slampt
Attachments
cacti_graph_template_cisco_bgp_prefixes.xml
(19.32 KiB) Downloaded 2546 times
cisco_cbgp_760.xml
(1.7 KiB) Downloaded 2317 times
graph_image.php.png
graph_image.php.png (18.49 KiB) Viewed 31276 times
slampt
Posts: 2
Joined: Sun Feb 11, 2007 5:47 am

Post by slampt »

Just an update the OID for Denied Prefixes (1.3.6.1.4.1.9.9.187.1.2.4.1.2) is a counter and only resets when a hard reset occurs on the peer :(

I will be modifying mine to not show denied.

Slampt
DI2ACULA
Posts: 4
Joined: Wed Feb 07, 2007 10:33 am

hash version errror

Post by DI2ACULA »

cacti_graph_template_cisco_bgp_prefixes_174.xml file gives and "Hash version does not exist" error during import process.Any ideas?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: hash version errror

Post by Howie »

DI2ACULA wrote:cacti_graph_template_cisco_bgp_prefixes_174.xml file gives and "Hash version does not exist" error during import process.Any ideas?
Your Cacti version is older than the one that exported the template.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
gentleman75012
Posts: 9
Joined: Thu Apr 09, 2009 10:25 am

Data Query Cisco BGP Prefix

Post by gentleman75012 »

Does anyone have xml file : data_query_prefix_bgp ?

Because I don't understand why we have to provide the 3 following fields :

Output Type ID : ???
Index value : ???
Index type : ???

Can you give me example for Accepted prefix please ?

OID : 1.3.6.1.4.1.9.9.187.1.2.4.1.1
Index value : ????
Index type : ?????
Attachments
BGP Prefix.JPG
BGP Prefix.JPG (30.84 KiB) Viewed 29838 times
Last edited by gentleman75012 on Tue Sep 22, 2009 9:39 am, edited 1 time in total.
gentleman75012
Posts: 9
Joined: Thu Apr 09, 2009 10:25 am

Data Query Cisco BGP Prefix

Post by gentleman75012 »

Does someone have cisco_data_query_cbgp_760.xml ?

Here is my config :

Cacti Version - 0.8.7e
Plugin Architecture[/b] - 2.5
Poller Type[/b] - CMD.php
Server Info[/b] - Linux 2.6.28-15-server
Web Server[/b] - Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch
PHP[/b] - 5.2.6-3ubuntu4.2
MySQL[/b] - 5.0.75-0ubuntu10.2
RRDTool[/b] - 1.3.1
SNMP[/b] - 5.4.1
Plugins[/b]
  • Thresholds (thold - v0.4.1)
    Global Plugin Settings (settings - v0.5)
    Cacti Log View (CLog - v1.21)
    Device Monitoring (monitor - v0.8.2)
    Realtime for Cacti (realtime - v0.34)
    Network Discovery (discovery - v0.8.5)
    Syslog Monitoring (syslog - v0.5.2)
    Watermark (watermark - v0.1)
    Router Configs (routerconfigs - v0.1)
    Host Info (hostinfo - v0.2)
    Update Checker (update - v0.4)
    Documents (docs - v0.1)
    PHP Network Weathermap (weathermap - v0.96a)
gentleman75012
Posts: 9
Joined: Thu Apr 09, 2009 10:25 am

Re: Cisco BGP Peer Accepted Prefixes count SNMP query

Post by gentleman75012 »

yuval_ba wrote:Hi,

Here is an SNMP query that will allow to graph Cisco per BGP peer accepted prefixes count.

Few key points:
  1. this is a quick and not perfect query, the only input field is the peer IP, and it will only work well for ipv4 af, other af will show the OID suffix, this is due to the way this MIB is built.
  2. your Cisco router must support the feature: "BGP MIB Support Enhancements", you can test by walking this OID: .1.3.6.1.4.1.9.9.187.1.2.4.1.1
  3. created on 0.8.7b
  4. place the XML file on <cacti_dir>/resource/snmp_queries/

Hi yuval_ba,

Can you help me please ? I am so confused and so sad that it doesn't work for me ....
gsaray101
Cacti User
Posts: 233
Joined: Thu May 17, 2007 9:18 am

Post by gsaray101 »

anybody resolved this issue?

output type id:?

index value:?

index type:?
bengelly
Cacti User
Posts: 57
Joined: Fri Jan 26, 2007 2:28 am

Post by bengelly »

Hello,

Stuck at the same step. Anyone has solved this successfully ?

Thanks.

Regards.
AntonArd
Posts: 4
Joined: Tue Oct 26, 2010 4:47 am
Location: Krasnodar, Russia
Contact:

Re:

Post by AntonArd »

gsaray101 wrote:anybody resolved this issue?

output type id:?

index value:?

index type:?
Just add query in "Data Queries" with the link to cisco_cbgp_760.xml and connect graph template to it.
aka Ardzhan
realshiro
Posts: 16
Joined: Wed Feb 17, 2010 2:24 am

Re: Cisco BGP Peer Accepted Prefixes count SNMP query

Post by realshiro »

i try to used slampt's template :P but i can't get bgp prefix values. :cry:
error log show on cacti log file "CMDPHP: Poller[0] Host[262] DS[3802] WARNING: Result from SNMP not valid. Partial Result: U"

Please help me solve this problem :( .

BS.
Realshiro
yuval_ba
Posts: 32
Joined: Mon Oct 13, 2008 6:19 am

Re: Cisco BGP Peer Accepted Prefixes count SNMP query

Post by yuval_ba »

gentleman75012 wrote:
Hi yuval_ba,

Can you help me please ? I am so confused and so sad that it doesn't work for me ....
Hi,
Sorry, for some reason I was not notified about the posts to this thread :(
Anyway, I posted it long time ago and I don't have access to that Cacti anymore. I also see that I only posted the SNMP XML and not the data query or graph template...

I will try to re-install it and re-export, but I can't promise how soon....

Yuval
ArchiFleKs
Posts: 4
Joined: Tue Jun 18, 2013 5:23 am

Re: Cisco BGP Peer Accepted Prefixes count SNMP query

Post by ArchiFleKs »

Hi,

This thread hasn't been updated for a long time but I wanted to post the template I did on Cacti 0.8.8a based on the previous on this thread

Here are some screeshots:
Image
Image
Image

Hope it will be useful to some of you.
Attachments
cacti_0.8.8a.bgp_template.tar
(79.5 KiB) Downloaded 1584 times
killshoot
Cacti User
Posts: 84
Joined: Wed Mar 26, 2008 2:51 am

Re: Cisco BGP Peer Accepted Prefixes count SNMP query

Post by killshoot »

Hi,

Thanks for the Update but I can't find how to map correctly the graph Template with the gived snmp queries. Is something wrong in you Template export?

Could you help me?

Best regards,
Vince
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests