CBWFQ stats collector for Cisco

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

kingaru
Cacti User
Posts: 54
Joined: Wed Mar 09, 2005 6:35 am

CBWFQ stats collector for Cisco

Post by kingaru »

All,

Here is created by me perl based script and all reuqired .xml stuff which is required to run CBWFQ stats collection (Drops per configured class/Traffc rate per class) for Cisco devices from Cacti. Instrallation is very simple and described in the README file which inside of the ".gz" file.

Enjoy it :)

Igor
Attachments
cacti_cbwfq.tar.gz
CBWFQ stats collection tool for Cacti ...
(5.72 KiB) Downloaded 3589 times
frenchwazzup
Posts: 2
Joined: Tue Apr 11, 2006 12:55 pm
Location: FRANCE

Post by frenchwazzup »

Hello Kingaru, looks like there is something missing as I imported the templates, but although I can select the different Cos I am interested in, it doesn't generate any graphs.
I was wondering if the Qosdropperclass DS was defined anywhere and you just forgot to export the data input method?

Cheers
kingaru
Cacti User
Posts: 54
Joined: Wed Mar 09, 2005 6:35 am

Post by kingaru »

All tempaltes and xml files are included ... just tried to install the same bundle and did not notice any issues.


frenchwazzup wrote:Hello Kingaru, looks like there is something missing as I imported the templates, but although I can select the different Cos I am interested in, it doesn't generate any graphs.
I was wondering if the Qosdropperclass DS was defined anywhere and you just forgot to export the data input method?

Cheers
mape122
Posts: 1
Joined: Fri Apr 28, 2006 8:42 am

stacked traffic per class

Post by mape122 »

hello Kingaru,

I tested your template for QoS traffic monitoring which look pretty good. Nevertheless I 'm tried to gather all class into one graffic...
Is there a template which could be able to display all these information into one graph ?

Thanks
arthur103
Cacti User
Posts: 50
Joined: Mon Apr 10, 2006 11:00 am

Post by arthur103 »

congratulation for wallows work.
But I have a probleme with your script.
When I charge my graph I have no value(NAN) ,nevertheless I have all to copy file. Of or its can come?
In my data templates it needs that I mark compartment: IP of Host, Community String and QoS class? Otherwise I have to put how as value?
Thank you for your answer or is worth idea.
Faruk
Posts: 10
Joined: Tue Apr 04, 2006 8:20 am

Re: CBWFQ stats collector for Cisco

Post by Faruk »

Hi Kingaru,

The problem was solved after changing permission on qos.xml file. Ignore the remaining part of this post.

Faruk


I have tried your scripts as per insturction. Getting following error :

Data Query Debug Information
======================================
+ Running data query [11].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/qos.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/qos.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/qos.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/qos.xml'
======================================

I have checked that the perl script is working fine[ attachment ]. Can you help me out ? My platform is CentOS and Cacti 0.8.6h.
Attachments
cbqos_error_log.txt
(1.94 KiB) Downloaded 1030 times
Last edited by Faruk on Tue May 16, 2006 10:36 pm, edited 1 time in total.
kingaru
Cacti User
Posts: 54
Joined: Wed Mar 09, 2005 6:35 am

Re: stacked traffic per class

Post by kingaru »

I dont know if it is possible since you may have varibale number of the monitored classes per router. I found that using separate graphs for the each individual case is more convinient.. however if somebody will create a template that will combine graphs together .. I'll have no problem with that :)

K.

mape122 wrote:hello Kingaru,

I tested your template for QoS traffic monitoring which look pretty good. Nevertheless I 'm tried to gather all class into one graffic...
Is there a template which could be able to display all these information into one graph ?

Thanks
kingaru
Cacti User
Posts: 54
Joined: Wed Mar 09, 2005 6:35 am

Post by kingaru »

"nan" means that you do not get stats from your router ... for wahtever reasons ... I dont know what to suggest here. It does not look to me as a problem of this script since it works for others and in my case ...
try to delete and recreate graphs again ...?!

K.

arthur103 wrote:congratulation for wallows work.
But I have a probleme with your script.
When I charge my graph I have no value(NAN) ,nevertheless I have all to copy file. Of or its can come?
In my data templates it needs that I mark compartment: IP of Host, Community String and QoS class? Otherwise I have to put how as value?
Thank you for your answer or is worth idea.
avillegas
Posts: 3
Joined: Thu Jan 13, 2005 4:38 pm

Post by avillegas »

I imported the templates, adjusted the script to reflect my "snmpwalk" and "snmpget" paths. The query seems to be working fine, I get information about the different Class Maps I have.

However, when I create the graphs for the different classes, all graphs show the same value: 11.

I'm using Cacti 0.8.6g

Any idea what could be wrong?
avillegas
Posts: 3
Joined: Thu Jan 13, 2005 4:38 pm

Post by avillegas »

I just realized that the value 11, which is being acquired for all traffic graphs is the last part of the corresponding OID: 1.3.6.1.4.1.9.9.166.1.15.1.1.11
For the Drops Graphs, the value acquired is always 14, which corresponds also to the last part of the OID:
1.3.6.1.4.1.9.9.166.1.15.1.1.14

When I run the script form the command line, I always get a proper value:

./qospol.pl RTR-ATM community get QoSbitrate 34.class-default
1086000


but looks like Cacti is not managing properly the script.

Dou you have any idea?
Faruk
Posts: 10
Joined: Tue Apr 04, 2006 8:20 am

Post by Faruk »

avillegas wrote:I just realized that the value 11, which is being acquired for all traffic graphs is the last part of the corresponding OID: 1.3.6.1.4.1.9.9.166.1.15.1.1.11
For the Drops Graphs, the value acquired is always 14, which corresponds also to the last part of the OID:
1.3.6.1.4.1.9.9.166.1.15.1.1.14

When I run the script form the command line, I always get a proper value:

./qospol.pl RTR-ATM community get QoSbitrate 34.class-default
1086000


but looks like Cacti is not managing properly the script.

Dou you have any idea?
Hi,
I have encountered the same problem wiht Cacti 0.8.6g. However I tried it on Cacti 0.8.6h and it works fine.

Faruk
avillegas
Posts: 3
Joined: Thu Jan 13, 2005 4:38 pm

Post by avillegas »

Well, I finally managed to solve it. The problem was the script was not correctly parsing the output from snmpget.

I just made a simple modification on the script and it worked. I modified the " print $ifpol1[13] . "\n"; " line, to parse the 18th field instead of the 13th:

#getting dropsper class
if ($cmd eq 'get' && $cmd1 eq 'QoSdropperclass') {
cindex($get_ix);
my($classdrop) = `/usr/local/bin/snmpget -Os -c $community -v $snmpv"c" $node 1.3.6.1.4.1.9.9.166.1.15.1.1.14.$sindex1.$sindex2`;
$classdrop =~ s/ /./g;
chomp($classdrop);
my(@ifpol1) = split(/\./,$classdrop);
print $ifpol1[18] . "\n";
#print("$classdrop \n");
}

Now I have cute QoS Graphics . . .
mlsrar
Posts: 5
Joined: Mon Jan 19, 2004 3:20 pm

Post by mlsrar »

Stacking?

How difficult would it be to manipulate the graph templates to stack all traffic classes on one graph?
wmelick
Posts: 34
Joined: Fri Apr 11, 2003 4:11 pm
Location: Wilmington, Delaware

Class drops working OK?

Post by wmelick »

First let me say thanks for the nice work on creating this --- the traffic per class seems to work fine for me.

However, I have some questions about the drops per class graphs. First, I see that the data source type is "gauge" for traffic but the data source type is "counter" for drops.

Also the Y-axis scales on the graphs show values like 300m (300 million?) for some classes yet others are on a scale from 0.0 to 1.0 (doesn't make sense to drop a partial packet?) --- and these graphs have spikes that are a fractional percentage of 1.0.

Should the drops per class data source type be changed to match the traffic per class data source type?

Should the Y-axis scales also be reported in bits/sec rather than packets?

Thanks.
wmelick
Posts: 34
Joined: Fri Apr 11, 2003 4:11 pm
Location: Wilmington, Delaware

Post by wmelick »

OK, I have done some digging and I see that the graph types are correct for what the Cisco snmp agent reports.

However I am still not seeing correct numbers for drops appear in the graphs....this should be a packet counter value, right? I still see zeros for the values, yet there are spikes on the graph.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests