10 Gigabit Ethernet shows as speed 4294967295

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

Moderators: Developers, Moderators

ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

So has anyone actually got ten gig interfaces graphing correctly? :-?

I've got 64bit counters setup with it's max value = 1000000000, and I even have cron running the poller every 60 seconds.

The cisco show interface looks like :

exip-swtcor-1401#sh int te2/4
TenGigabitEthernet2/4 is up, line protocol is up (connected)
5 minute input rate 597189000 bits/sec, 22655 packets/sec
5 minute output rate 1476596000 bits/sec, 34702 packets/sec

But the graph only looks like below. Getting quite disheartened that I can ever get it working :(
Attachments
graph_image.php.png
graph_image.php.png (28.01 KiB) Viewed 18636 times
cavver
Posts: 11
Joined: Tue Apr 24, 2007 3:17 am

Post by cavver »

Hello.
Are you shure that the SNMP agent on the router reports correctly the actual speed ? Did you do a snmpwalk/fet for the oid of the router , e.g : snmpwalk ..... ; sleep 300 ; snmpwalk ?
SNMP agents (even from Cisco ) can be quirky sometimes .


P>S On my Cacti deplyment I get the correct graphs from 10 gig eth , however we do not have enough traffic to fill it to the max .
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

I can get about 3.85Gbit so far before the filers flake out haha.

I seem to have got it working to some point, through the 64bit counters are going to wrap if I can get more than 4.3Gbit out of it I assume, but we'll work that out when we come to it!

Thanks for everyones help.
Attachments
graph_image.php.png
graph_image.php.png (28.98 KiB) Viewed 18618 times
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

64bit counters wont wrap in 5 minutes even at full 10Gbps raw throughput. Trust me. What more than likely to happen is that your RRA's have a max value that will cut them off.

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?
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

Hi all

I have just tried to follow instructions from this post and another post http://forums.cacti.net/about20034.html&highlight=10Gig

I updated my data templates maximum value from 0, which I was using, to 1250000000

I did an RRDtune on one of my 10GIG rrd files

rrdtool tune <filename>.rrd -a traffic_in:U -a traffic_out:U

You can see the MAX value now shows as NAN which stops a limit being imposed

PS C:\Apache2\htdocs\cacti\rra> rrdtool info <filename>.rrd
filename = "<filename>.rrd"
rrd_version = "0003"
step = 60
last_update = 1185808518
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = NaN
ds[traffic_in].last_ds = "104271994586"
ds[traffic_in].value = 2.4974440134e+05
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = NaN
ds[traffic_out].last_ds = "10489689646"
ds[traffic_out].value = 2.3619130435e+04
ds[traffic_out].unknown_sec = 0


I didn't notice any changes in the graphs but that may be due to there not being a massive amount of data going through that port at the moment.


After looking at this particular post I decided to change the interface tempate replacing ifspeed with ifhighspeed and updating the OID as shown

<ifHighSpeed>
<name>HighSpeed</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.15</oid>
</ifHighSpeed>


When I went to create a graph I noticed the field for speed had gone so I rescanned the device and I now see highspeed. The data is now displayed in Mb and I can see my 10GIG port shows up as 10000 Mb rather than the 42... number.

The only problem with this is that I know need to go and rescan every device as it has removed the speed from the snmp interface stats snmp query. This hasn't affected my existing graphs in anyway. Does anyone know a quick way of rescanning all my devices??? BTW I'm not a script expert!!

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
jay
Cacti User
Posts: 390
Joined: Wed Aug 31, 2005 8:55 am
Location: Bristol, England

Post by jay »

I have also noticed something strange. Within the interface traffic graph template I have added a comment item

CIRCUIT SPEED: |query_ifSpeed| bits per second

This shows the circuit speed on the graphs. This query doesn't work with 10GIG interfaces yet it does with 1GIG and below. I then change the comment to use highspeed instead

CIRCUIT SPEED: |query_ifHighSpeed| Mbits per second

I can now see the 10GIG speed on the graph as 10000 but the other 1GIG and under graphs just show |query_ifHighSpeed| rather than the value. I would have thought that by using highspeed it would have still picked up the slower port speeds.

Any ideas??

Jay
Cacti Version 0.8.7e, Spine 0.8.7e, Apache 2.2.15, Mysql 5.0.88, PHP 5.2.13, RRDTool 1.2.30, NET-SNMP 5.5
Quad Core AMD Opteron Processor 2384, 2.70Ghz, 2GB RAM , 1 CPU used
Windows Server 2003 (X64), VMWARE ESX
Plugins: Aggregate 0.75

SYSTEM STATS: Time:12.5140 Method:spine Processes:2 Threads:15 Hosts:400 HostsPerProcess:200 DataSources:2909 RRDsProcessed:1384
thomasw
Posts: 33
Joined: Thu Nov 10, 2005 6:11 am

TenGigabit not working properly in 0.8.7a

Post by thomasw »

Hello,

we just received some Catalyst 4500 with some TenGigabit Ethernet Ports.

Cacti shows them by default with ifSpeed of 4294967295 bits - as it is based on the standard Interface-mib.

In the extended ifTable - Mib the values are given in Mbit and showing up correctly, but cacti does not use them. If I manipulate the data-query.xml to include the OID of the xTable-Mib, I`m able to discover devices correctly, but upon graph-creation the max-value is not inserted from the ifHighSpeed entry, it still inserts the one from standard-mib ifSpeed, which is wrong and cannot be used.

Has anyone an idea, how to change that?
Anyone out with a full tengigabit-cacti solution without manual intervention?

thanks in advance,

best regads,

tom
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please visit the Data Query named "Interface - Traffic". Please select the appropriate Graph Template, then (one of the 64Bit items). Please find the "Suggested Value" section. See the entry
rrd_maximum |query_ifSpeed|
and replace it by
rrd_maximum |query_ifHighSpeed|
and retry. In order not to destroy a standard template that may be used for 1 GB devices, the correct solution would be to add a new entry (a copy of the 64Bit Template issue with only the rrd_maximum entry changed). This is required, because not all 1 GB devices will support the HighSpeed MIBs
Reinhard
thomasw
Posts: 33
Joined: Thu Nov 10, 2005 6:11 am

Post by thomasw »

Hello,

the query_ifHighSpeed return a value given in MBit. for 10-gigabit it returns 10000. if I use this value as the rrd_maximum, the maximum value which rrd stores is 10000. I mean the maximum value should be 10000000000 (10000*1000000) because of the MBit value.

How can I do this within cacti? I tried to ||query_ifHighSpeed|*100000| but that does not work. Any ideas? Or am I totally wrong on that?

thanks in advance,

best regards,

tom
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Uuh, bad luck. I do not have such a device, so this all was made out of pure theory.
And yes, it is not possible to do maths with |query_*| type variables.
For now, you may check the checkbox next to the "MAXIMUM" value for the datasource. Then you'll be able to select the correct rrd_maximum at graph creation time. Nasty workaround, for sure
Reinhard
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Post by scruboy01 »

I created another Graph/Data Template just for 10G interfaces. I tried |query_ifHighSpeed|*1000000 for the rrd_maximum and got 10000*1000000. I then tried ||query_ifHighSpeed|*1000000| and am getting 1000000000 as the max value which is only 1G. Doing the math, 10000*1000000 = 10000000000 = 10G. Whats going on??
scruboy01
Cacti User
Posts: 74
Joined: Tue Apr 05, 2005 11:33 am
Location: Grand Rapids, MI, US

Post by scruboy01 »

Manually entering 10000000000 as the rrd_maximum works.
glista
Posts: 10
Joined: Mon Mar 19, 2007 12:43 am

Post by glista »

or

Add lines in file »cacti/resource/interfaces.xml« these lines after </ifSpeed>:

</ifSpeed>
<ifHighSpeed>
<name>HighSpeed</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.31.1.1.1.15</oid>
</ifHighSpeed>
…..
In menu Data Queries:
Go to: SNMP Interface Statistics -> »In/Out Bits (64-bit Counters)«
And add in Suggested Values for »Data Template - Interface – Traffic«
|query_ifHighSpeed|000000 Field Name: rrd_maximum

Go to: SNMP Interface Statistics -> »In/Out Bytes (64-bit Counters)
And add in Suggested Values for »Data Template - Interface – Traffic«
|query_ifHighSpeed|000000 Field Name: rrd_maximum

For old data sources u have manually edit max value in rrd files
Attachments
cacti64bitSpeed.PNG
cacti64bitSpeed.PNG (34.82 KiB) Viewed 17279 times
j0s3
Posts: 12
Joined: Fri Oct 01, 2010 7:17 pm

Re: 10 Gigabit Ethernet shows as speed 4294967295

Post by j0s3 »

hello...

i have the same problem:

i have a router 7606 Version 12.2(18)SXF9, WS-X6704-10GE,
IF-MIB::ifDescr.26 = STRING: TenGigabitEthernet4/2
IF-MIB::ifSpeed.26 = Gauge32: 4294967295

connected to a force10 e1200i, FTOS 8.3.1.5, 10-port 10GE LAN/WAN PHY line card with SFP+ options 40M CAM (EJ)
IF-MIB::ifDescr.168099917 = STRING: TenGigabitEthernet 4/0
IF-MIB::ifSpeed.168099917 = Gauge32: 4294967295

Cacti Version 0.8.7h
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.4.x
SPINE 0.8.7h Copyright 2002-2011 by The Cacti Group

any idea?

tnks...
j0s3
Posts: 12
Joined: Fri Oct 01, 2010 7:17 pm

Re: 10 Gigabit Ethernet shows as speed 4294967295

Post by j0s3 »

j0s3 wrote:hello...

i have the same problem:

i have a router 7606 Version 12.2(18)SXF9, WS-X6704-10GE,
IF-MIB::ifDescr.26 = STRING: TenGigabitEthernet4/2
IF-MIB::ifSpeed.26 = Gauge32: 4294967295

connected to a force10 e1200i, FTOS 8.3.1.5, 10-port 10GE LAN/WAN PHY line card with SFP+ options 40M CAM (EJ)
IF-MIB::ifDescr.168099917 = STRING: TenGigabitEthernet 4/0
IF-MIB::ifSpeed.168099917 = Gauge32: 4294967295

Cacti Version 0.8.7h
SNMP Version NET-SNMP version: 5.4.2.1
RRDTool Version RRDTool 1.4.x
SPINE 0.8.7h Copyright 2002-2011 by The Cacti Group

any idea?

tnks...
OK Solved...

Go to: SNMP Interface Statistics -> »In/Out Bytes (64-bit Counters)
And add in Suggested Values for »Data Template - Interface – Traffic«
rrd_maximum |query_ifSpeed|

tnks!!!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests