cisco CBWFQ QoS monitoring

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

Moderators: Developers, Moderators

User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

cisco CBWFQ QoS monitoring

Post by Morgan »

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
raddy
Posts: 24
Joined: Thu Oct 27, 2005 8:47 pm
Location: Sydney, Australia

Post by raddy »

I have this running on 8.6h / Win2k3 and all OK. What is it you need as I don't use Aim.
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

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
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

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.
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

shameless bump

i really wana get this working...
raddy
Posts: 24
Joined: Thu Oct 27, 2005 8:47 pm
Location: Sydney, Australia

Post by raddy »

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

Post by raddy »

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 4409 times
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

can you detail your data input method, i think i have a problem on that.
Thanks
Morgan
raddy
Posts: 24
Joined: Thu Oct 27, 2005 8:47 pm
Location: Sydney, Australia

Post by raddy »

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 3656 times
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

here's the script output:

Code: Select all

[root@cacti 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


[root@cacti 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
[root@cacti scripts]#

 ./cbwfq.pl IP COMMUNITY get bytes 11913.11917
719254025047

[root@cacti 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]
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

ok so in my poller cache i still see this

Code: Select all

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...
User avatar
rcaston
Cacti User
Posts: 204
Joined: Tue Jan 06, 2004 7:47 pm
Location: US-Dallas, TX
Contact:

Post by rcaston »

Morgan wrote:ok so in my poller cache i still see this

Code: Select all

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.
skinty
Posts: 41
Joined: Sat Aug 12, 2006 6:47 pm

Post by skinty »

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
steagu
Posts: 37
Joined: Thu Nov 15, 2007 12:15 pm
Location: Manchester, United Kingdom

Post by steagu »

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
User avatar
asceta
Posts: 4
Joined: Thu Apr 30, 2009 6:33 am
Location: http://www.asceta.pl/
Contact:

Post by asceta »

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests