Problems accurately graphing gigabit interfaces
Moderators: Developers, Moderators
-
- Cacti User
- Posts: 55
- Joined: Sun Dec 04, 2005 10:59 pm
Problems accurately graphing gigabit interfaces
As per subject.
I thought it was odd how most of our network was operating just above 100Mbit/sec (about 120Mbit/sec is the max I am seeing). Looking at our other network management tool, I see 160-170Mbit/sec regulary.
I ran a test that pushed 67GB of data across the network which resulted in about 800Mbit/sec of data transfer as verified by our other network management tool (statseeker). Unfortunately the cacti graphs for that interface list a 109Mbit/sec maximum - and that's for a transfer that lasted over ten minutes. So it seems there is some kind of limit somewhere in the system.
I've increased the default upper limit and re-added one of my devices and that didn't solve the problem.
I've heard something about 64-bit counters -how do I use them? Will they work properly with my Cisco 6500 and 3750G switches? Is this a likely culprit of the problem?
Thanks
I thought it was odd how most of our network was operating just above 100Mbit/sec (about 120Mbit/sec is the max I am seeing). Looking at our other network management tool, I see 160-170Mbit/sec regulary.
I ran a test that pushed 67GB of data across the network which resulted in about 800Mbit/sec of data transfer as verified by our other network management tool (statseeker). Unfortunately the cacti graphs for that interface list a 109Mbit/sec maximum - and that's for a transfer that lasted over ten minutes. So it seems there is some kind of limit somewhere in the system.
I've increased the default upper limit and re-added one of my devices and that didn't solve the problem.
I've heard something about 64-bit counters -how do I use them? Will they work properly with my Cisco 6500 and 3750G switches? Is this a likely culprit of the problem?
Thanks
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
1) You will need to adjust your Max Value in the Data Templates for Interfaces.
2) You will need to utilize SNMP v2/v3
3) You need to select one of the 64bit counter graphs in Cacti. When creating graphs, you will see them on the drop down.
TheWitness
2) You will need to utilize SNMP v2/v3
3) You need to select one of the 64bit counter graphs in Cacti. When creating graphs, you will see them on the drop down.
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?
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?
-
- Cacti User
- Posts: 55
- Joined: Sun Dec 04, 2005 10:59 pm
1) Done.TheWitness wrote:1) You will need to adjust your Max Value in the Data Templates for Interfaces.
2) You will need to utilize SNMP v2/v3
3) You need to select one of the 64bit counter graphs in Cacti. When creating graphs, you will see them on the drop down.
TheWitness
2) Already using v2.
3) Is there a way to change existing graphs in a batch and have it apply to all graphs or do I need to recreate all my graphs?
I have recreated and changed some graphs and this appears to have fixed the problem - I just don't feel like editing several hundred interfaces one-by-one ;p
Thanks.
- TheWitness
- Developer
- Posts: 17047
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
No. It's the labor of love. Take good notes.
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?
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?
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Here are some hints. BUT THIS IS A RSIKY TASK. Well, it worked for me, but if your numbers differ from mine, this may have unwanted effects on your database.evilzardoz wrote: 3) Is there a way to change existing graphs in a batch and have it apply to all graphs or do I need to recreate all my graphs?
All SQLs assume, that you perform your changes for all hosts related to a specific Host Template. You must know the Number of that Host Template for the queries to work. DO NOT USE MY HOST TEMPLATE NUMBER.
Task 1: Change Host SNMP Version for all Hosts of a given Host Template
Code: Select all
# do not forget to rebuild poller cache afterwards
#
UPDATE `host`
set host.snmp_version=2 # set new version
where
host.host_template_id=25 and # give the Host Template, here: my Enterasys Switches
host.snmp_version = 1
Task 2: change rrd max for Host Template
Code: Select all
# do not forget to rrdtune all files!
#
UPDATE `host`, `data_local`, `data_template_rrd`
set data_template_rrd.rrd_maximum=100000000000 # set new maximum
where
host.host_template_id=25 and # give the Host Template, here: my Enterasys Switches
data_local.host_id=host.id and
data_local.data_template_id=41 # Interface Traffic Data Query
and data_template_rrd.local_data_id=data_local.id
Task 3: change 32bit to 64bit OIDs for Host Template
Code: Select all
UPDATE `host`, `data_local`, `data_template_data`, `data_input_data`
set data_input_data.value=14 # set 64bit Counters
where
host.host_template_id=25 and # give the Host Template, here: my Enterasys Switches
data_local.host_id=host.id and
data_local.data_template_id=41 # Interface Traffic Data Query
and data_template_data.local_data_id=data_local.id and
data_input_data.data_template_data_id=data_template_data.id and
data_input_data.data_input_field_id=14 and # Output Type Id
data_input_data.value=20 # was 32bit Counter
Reinhard
Thank you, gandalf. I reviewed your link. How would I tune the RRD ds for GB? Could you give me the command? I'm rather new to RRDTool commands.
Thank you once again.
Example:
Thank you once again.
Example:
Code: Select all
[root@ ~ rra]# rrdtool info dal6509-02_traffic_in_33.rrd | grep ds
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 = "577512029042494"
ds[traffic_in].value = 6.9750312943e+07
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 = 1.0000000000e+09
ds[traffic_out].last_ds = "701145791666472"
ds[traffic_out].value = 3.2896981124e+07
ds[traffic_out].unknown_sec = 0
Thank you. They still show up with M on the graphs. Is that supposed to be? I changed all our RRD files. Here is an example of the changes:
[/code]
Code: Select all
[root@ ~ rra]# rrdtool info dal6509-02_traffic_in_33.rrd | grep ds
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+12
ds[traffic_in].last_ds = "577751369011765"
ds[traffic_in].value = 1.2993563860e+07
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 = 1.0000000000e+12
ds[traffic_out].last_ds = "701276277315554"
ds[traffic_out].value = 7.7568973953e+06
ds[traffic_out].unknown_sec = 0
Hi gandalf, how would I override the unit? There are several graphs still displaying M instead of G. Thank you.gandalf wrote:rrtool tune won't change the unit shown on the graphs. It only allows for storing higher values in the DB. If you want to override the unit default, there's a different way to go
R.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
man rrdgraph tells you
R.
This parameter is support by cacti graph template[-X|--units-exponent value]
This sets the 10**exponent scaling of the y-axis values. Normally, values will be scaled to the appropriate units (k, M, etc.). However,
you may wish to display units always in k (Kilo, 10e3) even if the data is in the M (Mega, 10e6) range, for instance. Value should be an
integer which is a multiple of 3 between -18 and 18 inclusively. It is the exponent on the units you wish to use. For example, use 3 to
display the y-axis values in k (Kilo, 10e3, thousands), use -6 to display the y-axis values in u (Micro, 10e-6, millionths). Use a value of
0 to prevent any scaling of the y-axis values.
This option is very effective at confusing the heck out of the default rrdtool autoscaler and grid painter. If rrdtool detects that it is
not successful in labeling the graph under the given circumstances, it will switch to the more robust --alt-y-grid mode.
R.
Is there an updated version of this SQL for Cacti 0.8.7e? If I'm looking @ the DB correctly, it looks like the schema may have changed a bit and this SQL won't work anymore.
Thanks in advance.
-Rock
Thanks in advance.
-Rock
gandalf wrote:Here are some hints. BUT THIS IS A RSIKY TASK. Well, it worked for me, but if your numbers differ from mine, this may have unwanted effects on your database.evilzardoz wrote: 3) Is there a way to change existing graphs in a batch and have it apply to all graphs or do I need to recreate all my graphs?
All SQLs assume, that you perform your changes for all hosts related to a specific Host Template. You must know the Number of that Host Template for the queries to work. DO NOT USE MY HOST TEMPLATE NUMBER.
Task 1: Change Host SNMP Version for all Hosts of a given Host TemplateReplace number 25 by your correct Host Template ID number. Do not forget to rebuild poller cache afterwards.Code: Select all
# do not forget to rebuild poller cache afterwards # UPDATE `host` set host.snmp_version=2 # set new version where host.host_template_id=25 and # give the Host Template, here: my Enterasys Switches host.snmp_version = 1
Task 2: change rrd max for Host TemplateDo not forget to rrdtune all files!Code: Select all
# do not forget to rrdtune all files! # UPDATE `host`, `data_local`, `data_template_rrd` set data_template_rrd.rrd_maximum=100000000000 # set new maximum where host.host_template_id=25 and # give the Host Template, here: my Enterasys Switches data_local.host_id=host.id and data_local.data_template_id=41 # Interface Traffic Data Query and data_template_rrd.local_data_id=data_local.id
Task 3: change 32bit to 64bit OIDs for Host TemplateIt would be a good idea to check all that by querying the tables before changing them. I run MySqlAdmin for that.Code: Select all
UPDATE `host`, `data_local`, `data_template_data`, `data_input_data` set data_input_data.value=14 # set 64bit Counters where host.host_template_id=25 and # give the Host Template, here: my Enterasys Switches data_local.host_id=host.id and data_local.data_template_id=41 # Interface Traffic Data Query and data_template_data.local_data_id=data_local.id and data_input_data.data_template_data_id=data_template_data.id and data_input_data.data_input_field_id=14 and # Output Type Id data_input_data.value=20 # was 32bit Counter
Reinhard
Who is online
Users browsing this forum: No registered users and 5 guests