cisco CBWFQ QoS monitoring
Moderators: Developers, Moderators
cisco CBWFQ QoS monitoring
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
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
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
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
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.
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
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.
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
here's the script output:
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]
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]#
i'm gona folow ur doc to recreate my data input method and let u know how it goes.
Morgan
[/code]
ok so in my poller cache i still see this
as you can see, the <class> isn't being given to the script command.
i dont get it...
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.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...
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
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
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
You can also find out if your device supports this MIB by checking the following
http://tools.cisco.com/ITDIT/MIBS/Advan ... ibSel=4613
- asceta
- Posts: 4
- Joined: Thu Apr 30, 2009 6:33 am
- Location: http://www.asceta.pl/
- Contact:
Who is online
Users browsing this forum: No registered users and 1 guest