[SNMP] Templates for graphing Cisco CBWFQ Policy

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

Moderators: Developers, Moderators

liusc
Posts: 13
Joined: Wed Oct 19, 2011 7:56 pm

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by liusc »

Is there anything that i miss out....Is cacti version/PA version issue?
no graph created???

Could you post the graph & data templates setting & data Queries setting?
proohu01 wrote:Yep. I am getting nice graphs.
QoS.gif
User avatar
proohu01
Posts: 45
Joined: Mon Dec 20, 2004 3:13 am
Location: The Netherlands

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by proohu01 »

Did you execute "cbindex communityname" on your QoS router? Do you get a good output?

There isn't anything I had to change in the default graph and data template settings to get this to work. It just did. Just give the numbers you get back from the command above a nice name when creating the graphs (such as Gold of Silver)
Cacti Version - 0.8.8b
CentOS 6.4
liusc
Posts: 13
Joined: Wed Oct 19, 2011 7:56 pm

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by liusc »

all ok....but no graph.....

i'm using cacti 0.8.7g with PA2.9

I saw the graph id & data source id is different.

Could you export the template for cacti 0.8.7g?

Thank you

Router#cbindex xxxx
GigabitEthernet0/1 (in): testing-inbound (32)
class-default 32.14640113
testing 32.15963441

+ Running data query [20].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/myQOS.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9.9.166.1.15.1.1.11'
+ Index found at OID: '.1.3.6.1.4.1.9.9.166.1.15.1.1.11.32.14640113' value: '0'
+ Index found at OID: '.1.3.6.1.4.1.9.9.166.1.15.1.1.11.32.15963441' value: '145000'
+ index_parse at OID: '.1.3.6.1.4.1.9.9.166.1.15.1.1.11.32.14640113' results: '32.14640113'
+ index_parse at OID: '.1.3.6.1.4.1.9.9.166.1.15.1.1.11.32.15963441' results: '32.15963441'
+ Inserting index data for field 'Index' [value='32.14640113']
+ Inserting index data for field 'Index' [value='32.15963441']
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/myQOS.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/myQOS.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/myQOS.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/myQOS.xml'

Data Source Debug
/usr/bin/rrdtool create \
/var/www/html/cacti/rra/10_1_15_38_qosbitrate_2979.rrd \
--step 60 \
DS:qosDroprate:GAUGE:120:0:U \
DS:qosPreBitrate:GAUGE:120:0:U \
DS:qosBitrate:GAUGE:120:0:U \
RRA:AVERAGE:0.5:1:500 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title='testing' \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:8: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/10_1_15_38_qosbitrate_2979.rrd":qosBitrate:AVERAGE \
DEF:b="/var/www/html/cacti/rra/10_1_15_38_qosbitrate_2979.rrd":qosPreBitrate:AVERAGE \
DEF:c="/var/www/html/cacti/rra/10_1_15_38_qosbitrate_2979.rrd":qosDroprate:AVERAGE \
AREA:a#74C366FF:"Post class-map" \
GPRINT:a:LAST:"Current\:%8.3lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.3lf %s" \
GPRINT:a:MAX:"Maximum\:%8.3lf %s\n" \
LINE1:b#311F4EFF:"Pre class-map" \
GPRINT:b:LAST:" Current\:%8.3lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.3lf %s" \
GPRINT:b:MAX:"Maximum\:%8.3lf %s\n" \
AREA:c#FF0000FF:"Drop bitrate" \
GPRINT:c:LAST:" Current\:%8.3lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.3lf %s" \
GPRINT:c:MAX:"Maximum\:%8.3lf %s\n"
RRDTool Says:
ERROR: opening '/var/www/html/cacti/rra/10_1_15_38_qosbitrate_2979.rrd': No such file or directory




proohu01 wrote:Did you execute "cbindex communityname" on your QoS router? Do you get a good output?

There isn't anything I had to change in the default graph and data template settings to get this to work. It just did. Just give the numbers you get back from the command above a nice name when creating the graphs (such as Gold of Silver)
liusc
Posts: 13
Joined: Wed Oct 19, 2011 7:56 pm

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by liusc »

Anyone got this graphing cisco cbwfq template for Cacti Version 0.8.7g with PA 2.9?


Please upload?

Thank you all....
hmorandell
Cacti User
Posts: 73
Joined: Mon May 03, 2010 11:48 am

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by hmorandell »

I did some changes to the script which makes it easier to use.
Will post soon it, have just to clean it up and make then an export.

Just if someone is interested in.

Ciao
_________________
Cacti - 1.2.14
Poller Type - SPINE 1.2.14
Devices 3,892
Graphs 21,483
Jake11
Posts: 6
Joined: Fri Dec 16, 2011 10:14 am

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by Jake11 »

I'm interested! This would be useful for us. Thanks for your efforts hmorandell! :)
bgp2002
Posts: 16
Joined: Sat Aug 18, 2007 8:29 am

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by bgp2002 »

I am also interessed in this script! It would be nice to see the name of the queues in the configuration in cacti and to have the advantages of SNMP polling anyway.
ictnetw
Posts: 1
Joined: Mon Dec 11, 2006 12:05 pm

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by ictnetw »

Hi there.

I've just configured my CACTI to graph outbound traffic of a class using these templates.

Now I need to graph the inbound traffic of the class in the same graph, just like we do with the interfaces, but I haven't found a way to do so.

Is there any way in CACTI to do this?

Best regards,

Ictnetw.
CABALRMT
Posts: 1
Joined: Thu May 03, 2012 1:34 am

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by CABALRMT »

Wow! I cant think I have found your blog. Very helpful info.
vovochka
Posts: 7
Joined: Thu Feb 10, 2011 4:27 am

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by vovochka »

i got a nice graph, but the pre and post traffic seem like not accurate, because even the traffic have exceed the policy limit (10Mbps), the post traffic still same with pre traffic, as below the traffic have reach 26Mbps but the post traffic still the same...

Image
khem
Posts: 1
Joined: Mon Feb 23, 2009 12:16 am

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by khem »

Dear All,

I have been searching around for Cisco Class-based traffic graphing. The one on this thread is the best I could find. The others I found use PHP script server/query which is waaayyy too slow than SNMP query.

I have follow instructions on this thread and could successfully create graphs. However, at the "Create Graph" page for a device, the index listing is not meaningful. It shows only plain index numbers (as in the attached image
myqos_create_graph.png
myqos_create_graph.png (19.36 KiB) Viewed 4872 times
). It should contain the interface names and descriptions.

Anyone has implemented on this? Any help would very much appreciated.

Sincerely,
Khem
rambest
Posts: 4
Joined: Tue Jul 09, 2013 8:03 am

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by rambest »

Hello,guys good template for me.
Would be great to add int des, direction,configurate rate to that data query.
Would be kindly of you to help us.
Attachments
myQOS.xml
(2.14 KiB) Downloaded 327 times
dreemtul
Posts: 1
Joined: Mon Jan 20, 2014 9:12 am

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by dreemtul »

@hmorandell:
could you repost images from your first post? It becomes really hard for me to add both data sources and graphs
mozammal
Posts: 1
Joined: Thu May 01, 2014 10:09 pm

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by mozammal »

Hi,

I created the script and save as .tcl in linux and downloaded the scripts using TFTP into router, but while putting the command cbindex communityname or cbindex it shows

SNMP calls with community communityname fail
SNMP calls with community public fail


Can anyone help me out to resolve the problem.


Thanks.
curly
Posts: 1
Joined: Tue May 27, 2014 7:40 pm

Re: [SNMP] Templates for graphing Cisco CBWFQ Policy

Post by curly »

Mozammal,
Did you make any progress on the error you were receiving. I'm getting the same error from two different routers running different IOS versions (and different platforms).
Thanks,
Curly.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests