Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


CBWFQ stats collector for Cisco
Goto page 1, 2, 3  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
kingaru
Cacti User


Joined: 09 Mar 2005
Posts: 54

PostPosted: Thu Apr 06, 2006 9:26 am    Post subject: CBWFQ stats collector for Cisco Reply with quote

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



cacti_cbwfq.tar.gz
 Description:
CBWFQ stats collection tool for Cacti ...

Download
 Filename:  cacti_cbwfq.tar.gz
 Filesize:  5.72 KB
 Downloaded:  1729 Time(s)

Back to top
frenchwazzup



Joined: 11 Apr 2006
Posts: 2
Location: FRANCE

PostPosted: Tue Apr 11, 2006 12:58 pm    Post subject: Reply with quote

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
Back to top
kingaru
Cacti User


Joined: 09 Mar 2005
Posts: 54

PostPosted: Tue Apr 18, 2006 4:06 am    Post subject: Reply with quote

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
Back to top
mape122



Joined: 28 Apr 2006
Posts: 1

PostPosted: Tue May 09, 2006 9:47 am    Post subject: stacked traffic per class Reply with quote

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
Back to top
arthur103



Joined: 10 Apr 2006
Posts: 16

PostPosted: Wed May 10, 2006 3:43 am    Post subject: Reply with quote

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.
Back to top
Faruk



Joined: 04 Apr 2006
Posts: 10

PostPosted: Tue May 16, 2006 1:27 am    Post subject: Re: CBWFQ stats collector for Cisco Reply with quote

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.



cbqos_error_log.txt
 Description:

Download
 Filename:  cbqos_error_log.txt
 Filesize:  1.94 KB
 Downloaded:  538 Time(s)



Last edited by Faruk on Tue May 16, 2006 10:36 pm; edited 1 time in total
Back to top
kingaru
Cacti User


Joined: 09 Mar 2005
Posts: 54

PostPosted: Tue May 16, 2006 6:30 am    Post subject: Re: stacked traffic per class Reply with quote

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
Back to top
kingaru
Cacti User


Joined: 09 Mar 2005
Posts: 54

PostPosted: Tue May 16, 2006 6:35 am    Post subject: Reply with quote

"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.
Back to top
avillegas



Joined: 13 Jan 2005
Posts: 3

PostPosted: Thu May 18, 2006 6:55 pm    Post subject: Reply with quote

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?
Back to top
avillegas



Joined: 13 Jan 2005
Posts: 3

PostPosted: Fri May 19, 2006 9:07 am    Post subject: Reply with quote

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?
Back to top
Faruk



Joined: 04 Apr 2006
Posts: 10

PostPosted: Fri May 19, 2006 11:06 pm    Post subject: Reply with quote

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
Back to top
avillegas



Joined: 13 Jan 2005
Posts: 3

PostPosted: Tue May 23, 2006 3:40 pm    Post subject: Reply with quote

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 . . .
Back to top
mlsrar



Joined: 19 Jan 2004
Posts: 5

PostPosted: Fri Jun 16, 2006 9:22 am    Post subject: Reply with quote

Stacking?

How difficult would it be to manipulate the graph templates to stack all traffic classes on one graph?
Back to top
wmelick



Joined: 11 Apr 2003
Posts: 34
Location: Wilmington, Delaware

PostPosted: Mon Jun 26, 2006 3:25 pm    Post subject: Class drops working OK? Reply with quote

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.
Back to top
wmelick



Joined: 11 Apr 2003
Posts: 34
Location: Wilmington, Delaware

PostPosted: Tue Jun 27, 2006 8:02 am    Post subject: Reply with quote

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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Goto page 1, 2, 3  Next
Page 1 of 3

 



Powered by phpBB © 2001, 2005 phpBB Group