Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jun 18, 2019 6:00 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: cisco CBWFQ QoS monitoring
PostPosted: Wed Mar 15, 2006 6:49 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 25, 2004 3:38 am
Posts: 187
Hi guys,

i'm trying to get the previous scripts/templates posted for this working, but i've run into a dead end.
if anyone wants to take a crack at it plz contact me via aim.
thx
Morgan

http://forums.cacti.net/viewtopic.php?t=7401&start=75


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 15, 2006 7:16 am 
Offline

Joined: Thu Oct 27, 2005 8:47 pm
Posts: 24
Location: Sydney, Australia
I have this running on 8.6h / Win2k3 and all OK. What is it you need as I don't use Aim.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 15, 2006 7:17 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 25, 2004 3:38 am
Posts: 187
well using moonman's scripts ( link in previous post) i'm stuck

my data query works ( on the device) i create the graph, and my rrd's are created, but my data input method must be screwed ( or my data template) because the index of the class is not being passed to the script for the cbwfq.pl ip comm get bytes oid.index syntax.

do u use msn? gootgle talk? any kind of IM ?

morgan


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 15, 2006 8:58 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 25, 2004 3:38 am
Posts: 187
could you post an exported package of the files, as well as details on your data input method used ( and fields) so that i can try to reproduce.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 17, 2006 5:03 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 25, 2004 3:38 am
Posts: 187
shameless bump

i really wana get this working...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 20, 2006 6:06 am 
Offline

Joined: Thu Oct 27, 2005 8:47 pm
Posts: 24
Location: Sydney, Australia
Sorry, I'll put the files up tomorrow.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 21, 2006 5:11 am 
Offline

Joined: Thu Oct 27, 2005 8:47 pm
Posts: 24
Location: Sydney, Australia
OK, here are the files for CBWFQ that I have working on W2k3 using 8.6h. Copy the files and import the templates. I have added NBAR in there as well As it goes pretty well with the CBWFQ. The router template updates some 95th percentile stuff that is pretty nice to have on the graphs.

I have not included a lot of the templates that have been discussed in other forums areas as I only implemented what I needed.

Add a data input method as per:

http://forums.cacti.net/viewtopic.php?t ... sc&start=0

And all should be good. I have noticed with the NBAR stuff that older series of Cisco gear such as the 3620's while they support NBAR, do not report it under the same OID as is used in the NBAR script here so be wary of that.


Attachments:
CBWFQ and NBAR.zip [28.24 KiB]
Downloaded 4178 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 8:35 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 25, 2004 3:38 am
Posts: 187
can you detail your data input method, i think i have a problem on that.
Thanks
Morgan


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 23, 2006 3:09 pm 
Offline

Joined: Thu Oct 27, 2005 8:47 pm
Posts: 24
Location: Sydney, Australia
Here is a step by step to creating the data input for CBWFQ.

check the cbwfq.pl script in the zip as I have changed the path to snmpwalk for my installation. It is in line with the basic windows install but your snmp install directory may be different.

my $snmppath = "/net-snmp/bin/snmpwalk";

what results do you get when you manually walk the OID of your router. Do a walk of the OID using the following format (replacing anything in inverted commas with your required stuff and lose the commas)

snmpwalk -v 1 -c "community string" "ip address" .1.3.6.1.4.1.9.9.166.1.7.1.1.1

this should return a list of classes configured on your router.

Also check that the other OID's used are returning results with:

snmpwalk -v 1 -c "community string" "ip address" .1.3.6.1.4.1.9.9.166.1.5.1.1.2

snmpwalk -v 1 -c "community string" "ip address" .1.3.6.1.4.1.9.9.166.1.15.1.1.9

This will at least confirm that you have actual results to be displayed.


Attachments:
Create Data Input Method for CBWFQ.doc [58 KiB]
Downloaded 3437 times
Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 9:26 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 25, 2004 3:38 am
Posts: 187
here's the script output:


Code:
[[email protected] scripts]# ./cbwfq.pl IP COMMUNITY index
1163.1165
1163.1171
1163.1177
1163.1183
1163.1189
1163.1195
1163.1201
1221.1223
1221.1229
1221.1235
1221.1241
1221.1247
1221.1253
1221.1259
11913.11917
11913.11925
11913.11929
11913.11939
11913.11947
11913.11951
11913.11961
11913.11969
11913.11973
11913.11981


[[email protected] scripts]# ./cbwfq.pl IP COMMUNITY query
1163.1165:DSCP-IN-D1INP-COS-IN-FastEthernet0/0
1163.1171:DSCP-IN-D2INP-COS-IN-FastEthernet0/0
1163.1177:DSCP-IN-D3INP-COS-IN-FastEthernet0/0
1163.1183:DSCP-IN-D1OOP-COS-IN-FastEthernet0/0
1163.1189:DSCP-IN-D2OOP-COS-IN-FastEthernet0/0
1163.1195:DSCP-IN-D3OOP-COS-IN-FastEthernet0/0
1163.1201:class-default-COS-IN-FastEthernet0/0
1221.1223:DSCP-IN-D1INP-COS-IN-Virtual-Template1
1221.1229:DSCP-IN-D2INP-COS-IN-Virtual-Template1
1221.1235:DSCP-IN-D3INP-COS-IN-Virtual-Template1
1221.1241:DSCP-IN-D1OOP-COS-IN-Virtual-Template1
1221.1247:DSCP-IN-D2OOP-COS-IN-Virtual-Template1
1221.1253:DSCP-IN-D3OOP-COS-IN-Virtual-Template1
1221.1259:class-default-COS-IN-Virtual-Template1
11913.11917:DSCP-OUT-D1INP-COS-OUT-D1-H2/0.1-Hssi2/0.1
11913.11925:class-default-COS-OUT-D1-H2/0.1-Hssi2/0.1
11913.11929:DSCP-OUT-D1-COS-OUT-D1-H2/0.1-Hssi2/0.1
11913.11939:DSCP-OUT-D2INP-COS-OUT-D2-H2/0.1-Hssi2/0.1
11913.11947:class-default-COS-OUT-D2-H2/0.1-Hssi2/0.1
11913.11951:DSCP-OUT-D2-COS-OUT-D2-H2/0.1-Hssi2/0.1
11913.11961:DSCP-OUT-D3INP-COS-OUT-D3-H2/0.1-Hssi2/0.1
11913.11969:class-default-COS-OUT-D3-H2/0.1-Hssi2/0.1
11913.11973:DSCP-OUT-D3-COS-OUT-D3-H2/0.1-Hssi2/0.1
11913.11981:class-default-COS-OUT-D3-H2/0.1-Hssi2/0.1
[[email protected] scripts]#

./cbwfq.pl IP COMMUNITY get bytes 11913.11917
719254025047

[[email protected] scripts]#


so i'm sure the script and the router are both working.
i'm gona folow ur doc to recreate my data input method and let u know how it goes.
Morgan
[/code]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 24, 2006 9:34 am 
Offline
Cacti User
User avatar

Joined: Wed Feb 25, 2004 3:38 am
Posts: 187
ok so in my poller cache i still see this


Code:
Data Source: Bytes output from QoS class 
RRD: /usr/local/cacti-0.8.6h/rra/ppar2137_ipvpn_gw_bytes_2094.rrd 
Action: 1, Script: /usr/local/cacti-0.8.6h/scripts/cbwfq.pl IP COMMUNITY get bytes 



as you can see, the <class> isn't being given to the script command.
i dont get it...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 02, 2008 12:15 pm 
Offline
Cacti User
User avatar

Joined: Tue Jan 06, 2004 7:47 pm
Posts: 204
Location: US-Dallas, TX
Morgan wrote:
ok so in my poller cache i still see this


Code:
Data Source: Bytes output from QoS class 
RRD: /usr/local/cacti-0.8.6h/rra/ppar2137_ipvpn_gw_bytes_2094.rrd 
Action: 1, Script: /usr/local/cacti-0.8.6h/scripts/cbwfq.pl IP COMMUNITY get bytes 



as you can see, the <class> isn't being given to the script command.
i dont get it...


I have the same issue with class not being populated.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 02, 2008 5:36 pm 
Offline

Joined: Sat Aug 12, 2006 6:47 pm
Posts: 41
This is an old thread :)

I'm not sure if you're using the same Data Input Method, but mine reads:

Cisco - Get CBWFQ Bytes

<path_cacti>/scripts/cbwfq.pl <ip> <community> get <class>

Sometimes, it just plain does not work on certain routers. Sometimes it is newer builds of IOS that give me issues, sometimes it's not.

Have you tried the script on multiple routers where you are able to snmpwalk the following OID 1.3.6.1.4.1.9.9.166.1.7.1.1.1.

On routers that it works, I get the following information:

SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1025 = STRING: "class-default"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1035 = STRING: "L3-to-L2_VoIP-Cntrl"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1045 = STRING: "L3-to-L2_VoIP-RTP"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1051 = STRING: "voice-signaling"
SNMPv2-SMI::enterprises.9.9.166.1.7.1.1.1.1067 = STRING: "voice"

Routers after 12.4(17) main train seem to give me issues.

-ryan


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 22, 2008 6:40 am 
Offline

Joined: Thu Nov 15, 2007 12:15 pm
Posts: 37
Location: Manchester, United Kingdom
The stuff outlined in this thread is dependent on your device and IOS supporting the CISCO-CLASS-BASED-QOS-MIB. In other words, try an snmpwalk on the OID outlined in the thread and if it works, the script should work. if the snmpwalk returns "no such object available on this agent at this OID" then you can't use this script.

You can also find out if your device supports this MIB by checking the following

http://tools.cisco.com/ITDIT/MIBS/Advan ... ibSel=4613


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 25, 2009 8:23 am 
Offline
User avatar

Joined: Thu Apr 30, 2009 6:33 am
Posts: 4
Location: http://www.asceta.pl/
Hi,

your scripts assume that hosts are running snmp on default 161 port.. but I've situation when some hosts have been configured to use sone nonstandard UDP port for snmp.

Could you help me with changing your scripts for this situation?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group