[solved] Cisco Catalyst 6500/7600 VLAN Problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

User avatar
circulum
Posts: 3
Joined: Tue Jul 22, 2008 2:50 am
Location: Flensburg, Germany
Contact:

[solved] Cisco Catalyst 6500/7600 VLAN Problem

Post by circulum »

Hi there,

i have a problem with monitoring the traffic of a VLAN on a Cisco Catalyst 6500/7600.
Cacti gatheres data, but the information makes no sense.
There should be traffic above 500 KBits/s, but the graph only shows 600 Bit/s.

I also tried the templates here from the forum for the CatOS and the Catalyst 6500 with the same result.

Has anyone an idea?

Greetings Christian
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

SVI (vlan interface) traffic counters don't show much traffic because it only counts traffic that hits the CPU, not traffic that is hardware-switched (i.e. most traffic on 6500/7600).

There isn't a fix as far as I know - it's just the way the ASICs work. The same issue affects netflow on those platforms, too.

That said, I can't find a reference to this right now, so maybe someone else can confirm.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Wrong forum, moving.
Frizz
Cacti User
Posts: 80
Joined: Sat Mar 05, 2005 5:07 pm
Location: Herne Germany

Re: Cisco Catalyst 6500/7600 VLAN Problem

Post by Frizz »

circulum wrote:Hi there,

i have a problem with monitoring the traffic of a VLAN on a Cisco Catalyst 6500/7600.
Cacti gatheres data, but the information makes no sense.
There should be traffic above 500 KBits/s, but the graph only shows 600 Bit/s.

I also tried the templates here from the forum for the CatOS and the Catalyst 6500 with the same result.

Has anyone an idea?

Greetings Christian
Christian, It's absolute correct what Howie mentioned.
On 65xx with MSFC cards the byte_in and _out counter is only the traffic that passes the first time through the supervisor engine. If the destination port is determined only the counter of the physical interface is relevant.
You must collect only the physical interfaces, of course not seperated in VLAN's. When we started with Cacti we also monitored several 1000 VLANS, but nobody had any purpose of them and we deleted them all.

And I did NOT agree to BSOD2600 . This is the forum for these questions, because they are very typical and advisable for all Cacti user, because at the first step you include every interface you see in the interface list.
Best regards
Frizz
Cacti 0.8.6j | Cactid 0.8.6j | RRDtool 1.2.23 |
SuSe 9.x | PHP 4.4.4 | MySQL 5.0.27 | IHS 2.0.42.1
Come and join the 3.CCC.eu
http://forums.cacti.net/viewtopic.php?t=27908
User avatar
circulum
Posts: 3
Joined: Tue Jul 22, 2008 2:50 am
Location: Flensburg, Germany
Contact:

Post by circulum »

Thanks for posting :)
giggudy
Posts: 3
Joined: Mon Sep 01, 2008 9:56 pm

Post by giggudy »

Howie wrote:SVI (vlan interface) traffic counters don't show much traffic because it only counts traffic that hits the CPU, not traffic that is hardware-switched (i.e. most traffic on 6500/7600).

There isn't a fix as far as I know - it's just the way the ASICs work. The same issue affects netflow on those platforms, too.

That said, I can't find a reference to this right now, so maybe someone else can confirm.
This is partially right.

If the VLAN has an SVI (routed interface) it will graph the traffic minus the Ethernet headers, which depending on the size of your packets can be a little or a lot of traffic. An FTP site might have a < 1% discrepancy (typically large packets), whereas a VoIP provider may have > 10% discrepancy (typically small packets).

If you just have a VLAN without an SVI, you won't graph anything of consequence.
igrey
Posts: 5
Joined: Thu Sep 09, 2010 1:29 pm

Post by igrey »

I have more interesting
Cacti won't graph more then 8Gbit/s on SVI.
But rrdtool info traffic_in_59.rrd show:

Code: Select all

rra[6].cf = "MAX"
rra[6].rows = 775
rra[6].cur_row = 435
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 8.9368306088e+08
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 9.8504397424e+08
rra[6].cdp_prep[1].unknown_datapoints = 3
rra[7].cf = "MAX"
rra[7].rows = 797
rra[7].cur_row = 513
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 8.9368306088e+08
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[7].cdp_prep[1].value = 9.9777012098e+08
rra[7].cdp_prep[1].unknown_datapoints = 4
7606/SUP720-3BXL
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

1) rrdtool graph command + picture
2) using snmpv2 and 64bit graph templates?
3) rrdtool info <filename> to check if the DS MAX is too small.
igrey
Posts: 5
Joined: Thu Sep 09, 2010 1:29 pm

Post by igrey »

BSOD2600 wrote:1) rrdtool graph command + picture

Code: Select all

RRDTool Command:
/opt/rrdtool-1.4.4/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='ACCESS' \
--rigid \
--base=1000 \
--height=120 \
--width=600 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:8: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/usr/local/share/cacti/rra/traffic_in_59.rrd":traffic_in:AVERAGE \
DEF:b="/usr/local/share/cacti/rra/traffic_in_59.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
LINE1:cdefa#00CF00FF:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
LINE1:cdefe#002A97FF:"Outbound"  \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" 
RRDTool Says:
OK
2) using snmpv2 and 64bit graph templates?
Both - yes.
3) rrdtool info <filename> to check if the DS MAX is too small.

Code: Select all

rrdtool info traffic_in_59.rrd 
filename = "traffic_in_59.rrd"
rrd_version = "0003"
step = 300
last_update = 1284065701
header_size = 2764
ds[traffic_in].index = 0
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+09
ds[traffic_in].last_ds = "402905928935730"
ds[traffic_in].value = 6.3446900365e+08
ds[traffic_in].unknown_sec = 0
ds[traffic_out].index = 1
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+09
ds[traffic_out].last_ds = "454698010532716"
ds[traffic_out].value = 6.3471904741e+08
ds[traffic_out].unknown_sec = 0
Or I need to show full output?
Attachments
graph_image.php.png
graph_image.php.png (36.38 KiB) Viewed 6352 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Check the max value in the RRDFile.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
igrey
Posts: 5
Joined: Thu Sep 09, 2010 1:29 pm

Post by igrey »

TheWitness wrote:Check the max value in the RRDFile.

TheWitness
Thanks a lot for comment.

I know about rrd_maximum.

In Data_Querie set:
rrd_maximum 100000000000.

Btw, on physical interface I saw 8.84G graph.
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

The problem:

Code: Select all

ds[traffic_in].max = 1.0000000000e+09
ds[traffic_in].last_ds = "402905928935730" 
402905928935730 = 4.029 x 10^14.

As I suspected, the MAX DS is too small.
igrey
Posts: 5
Joined: Thu Sep 09, 2010 1:29 pm

Post by igrey »

BSOD2600 wrote:The problem:

Code: Select all

ds[traffic_in].max = 1.0000000000e+09
ds[traffic_in].last_ds = "402905928935730" 
402905928935730 = 4.029 x 10^14.

As I suspected, the MAX DS is too small.
Ok, understood.
Could you please, what I need to do for increase MAX DS?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Use the rrdtool tune command. More details in the rrdtool man pages.
igrey
Posts: 5
Joined: Thu Sep 09, 2010 1:29 pm

Post by igrey »

BSOD2600 wrote:Use the rrdtool tune command. More details in the rrdtool man pages.
Thanks a lot, everything work just great.
Post Reply

Who is online

Users browsing this forum: albanepl63 and 2 guests