CBWFQ stats collector for Cisco
Moderators: Developers, Moderators
CBWFQ stats collector for Cisco
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
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
-
- Posts: 2
- Joined: Tue Apr 11, 2006 12:55 pm
- Location: FRANCE
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
I was wondering if the Qosdropperclass DS was defined anywhere and you just forgot to export the data input method?
Cheers
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
stacked traffic per class
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
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
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.
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.
Re: CBWFQ stats collector for Cisco
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.
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 1031 times
Last edited by Faruk on Tue May 16, 2006 10:36 pm, edited 1 time in total.
Re: stacked traffic per class
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.
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
"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.
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.
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?
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?
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?
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,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?
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
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 . . .
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 . . .
Class drops working OK?
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.
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.
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.
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.
Who is online
Users browsing this forum: No registered users and 0 guests