[INFO] My traffic graphs won't exceed 114 mbit/s

If you figure out how to do something interesting/cool in Cacti and want to share it with the community, please post your experience here.

Moderators: Developers, Moderators

User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

[INFO] My traffic graphs won't exceed 114 mbit/s

Post by fmangeant »

Hi

you may encouter this problem, when you traffic graphs won't exceed ~ 114 mbits/s :

Image

The solution is to use SNMP v2 and 64-bit counters.

First step is done when creating a host :

Image

Second step is done when adding graphs to a host :

Image

Voila ! You graphs now display the correct values :

Image
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Super-Mike
Posts: 23
Joined: Thu Jan 26, 2006 12:39 pm
Contact:

Post by Super-Mike »

Hi.

I’m create graph.

Port 52 switch edge-core (ES3552XA) port 52 <----> port 3 cisco 3560G

I’m using SNMP version 2 and 64 bit counter.

debug:

01/26/2008 12:39:20 PM - CMDPHP: Poller[0] Host[143] DS[4783] SNMP: v2: 192.168.70.97, dsname: traffic_in, oid: .1.3.6.1.2.1.31.1.1.1.6.52, output: 998464678
01/26/2008 12:39:20 PM - CMDPHP: Poller[0] Host[143] DS[4783] SNMP: v2: 192.168.70.97, dsname: traffic_out, oid: .1.3.6.1.2.1.31.1.1.1.10.52, output: 2822791283

My graphics with a switch edge-core (host [143]) are drawn incorrectly
Attachments
Cisco graph ok
Cisco graph ok
port3_cisco.JPG (31.87 KiB) Viewed 83873 times
Edge-core
Edge-core
port52.JPG (31.74 KiB) Viewed 83873 times
abdulcc
Cacti User
Posts: 52
Joined: Fri Jul 14, 2006 7:06 am

How do I check I am using 64 bits counters in cacti

Post by abdulcc »

I am definitely using snmpV2.



Here are the OID logs
03/07/2008 07:55:02 AM - CMDPHP: Poller[0] Host[2] DS[3445] SNMP: v2: 10.18.2.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, output: 1166060285


03/07/2008 07:55:02 AM - CMDPHP: Poller[0] Host[2] DS[3445] SNMP: v2: 10.18.2.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, output: 3305274964



I do not see any picture on how to set this up. Please advise.


Regards,
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Did you delete / recreate your graphs using the 64-bit graph template ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
abdulcc
Cacti User
Posts: 52
Joined: Fri Jul 14, 2006 7:06 am

I do not have the 64 bit graph template

Post by abdulcc »

Where I can I get it?


Thanks
abdulcc
Cacti User
Posts: 52
Joined: Fri Jul 14, 2006 7:06 am

I am so stupid

Post by abdulcc »

I got it fixed. Hopefully It will display properly from now on.

Thanks

Regards
kasimong
Posts: 40
Joined: Tue Oct 02, 2007 7:54 am
Location: Bremerhaven,Bremen,Germany

Post by kasimong »

Hi,
on my router it works but not on the connected hosts
ideas ?
regards

wolfgang
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

What kind of hosts are you trying to graph ?
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
kasimong
Posts: 40
Joined: Tue Oct 02, 2007 7:54 am
Location: Bremerhaven,Bremen,Germany

Post by kasimong »

fmangeant wrote:What kind of hosts are you trying to graph ?
SUN SPARC and x86 with Solaris and Linux (SuSe)

03/13/2008 04:50:10 PM - CMDPHP: Poller[0] Host[158] DS[4416] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail

Backup Server (xxxxde) - Traffic - x.x.x./nge0 SNMP Version: 2, Community: public, OID: .1.3.6.1.2.1.31.1.1.1.10.2
RRD: /opt/cacti/web-root/share/htdocs/cacti/rra/xxxx_traffic_in_4416.rrd
Backup Server (xxxxxde) - Traffic - x.x.x.x/nge0 SNMP Version: 2, Community: public, OID: .1.3.6.1.2.1.31.1.1.1.6.2
kasimong
Posts: 40
Joined: Tue Oct 02, 2007 7:54 am
Location: Bremerhaven,Bremen,Germany

Post by kasimong »

kasimong wrote:
fmangeant wrote:What kind of hosts are you trying to graph ?
SUN SPARC and x86 with Solaris and Linux (SuSe)

03/13/2008 04:50:10 PM - CMDPHP: Poller[0] Host[158] DS[4416] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail

Backup Server (xxxxde) - Traffic - x.x.x./nge0 SNMP Version: 2, Community: public, OID: .1.3.6.1.2.1.31.1.1.1.10.2
RRD: /opt/cacti/web-root/share/htdocs/cacti/rra/xxxx_traffic_in_4416.rrd
Backup Server (xxxxxde) - Traffic - x.x.x.x/nge0 SNMP Version: 2, Community: public, OID: .1.3.6.1.2.1.31.1.1.1.6.2
snmpget -c public xxxxxx .1.3.6.1.2.1.31.1.1.1.10.2 .1.3.6.1.2.1.31.1.1.1.6.2
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: IF-MIB::ifHCInOctets.2

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: IF-MIB::ifHCOutOctets.2
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

your device doesn't support the 64bit counters.
Super-Mike
Posts: 23
Joined: Thu Jan 26, 2006 12:39 pm
Contact:

Post by Super-Mike »

My problem was solved.

The problem was that on my L2 switch (Edge-Core)
for storage passed through traffic used 32 bit type, even if on SNMP it is used 64 bit counters

As is known, in 32 bit type it is possible to write 2^32 = 4294967296

switch writes the traffic passed through in this field and if it reaches the maximal value, nulls it.

Speed is calculated: ([current quantity of traffic] - [quantity of traffic in the last poller interrogation]) / time of interrogation

but in fact counter can be nulled more than 1 time
and values will be incorrect

My calculations show, that at 5 minute poller interval maximal speed can be 110 MBit/s.

For this time only can be downloaded 4294967296 bytes.

To solve a problem it is necessary to reduce time of interrogation of devices.
After reduction of time from 5 minutes to 1 minute, trends have come to a normal form.
frdrk
Cacti User
Posts: 55
Joined: Fri Jul 06, 2007 2:27 pm

Post by frdrk »

Hi!

First of all; great guide. I have alot of graphs on an old cacti install that is using 32-bit counters that now has started to roll over. Is there any way to change them to 64-bit counters and still use the same rrd/graph so I can have history etc? Or do I need to make completely new graphs?
gigglesworth
Posts: 24
Joined: Wed Jan 25, 2006 12:51 pm

Post by gigglesworth »

Thanks for the tip!

Can anyone tell me how to change my existing graphs to use the 64-bit counters instead of the regular 32-bit counters?
crashergs
Cacti User
Posts: 53
Joined: Fri May 23, 2008 3:37 pm

Post by crashergs »

You need to delete your old graphs and recreate to 64bit

Question: Can 100MB ports use the 64bit graphs? It will be time consuming to choose each individual 1GB port from switches to use 64bit counters and the 100MB selected to 32bit.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests