Hi!
I want to make multiple changes on my cacti server.
convert all my 1846 Interface-traffic data sources from In/Out Bits to In/Out Bits (64bit counters).
i think that this info is stored in mysql table "data_input_data".
is that all if i only change "value" from 13 to 14?
multiple changes in database
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Here is a pretty rough procedure. Hope it helps.
1) Change the max value in the rrd file first using the rrdtool tune function.
2) Create new 64bit data sources in Cacti by creating the 64bit graphs.
3) Copy the 32bit data source rrd files over the 64bit ones via file copying.
For example, if your 32bit data source was:
myhost_traffic_in_1234.rrd
And your 64bit data source was:
myhost_traffic_in_2345.rrd
The last step would be to:
copy myhost_traffic_in_1234.rrd myhost_traffic_in_2345.rrd
4) Let the poller run a few passes and view your 64bit graphs to make sure everyting copied over well.
5) Delete your 32bit data sources in Cacti, take the graphs with them.
6) Delete your 32bit rrd files. I do this by looking at file save times and deleting all those that have not updated in X days.
I have used this process on several occasions. Now, before I create graphs for a host type, I perform a pre-assessment to insure the "polability" to prevent the rework articulated above.
TheWitness
1) Change the max value in the rrd file first using the rrdtool tune function.
2) Create new 64bit data sources in Cacti by creating the 64bit graphs.
3) Copy the 32bit data source rrd files over the 64bit ones via file copying.
For example, if your 32bit data source was:
myhost_traffic_in_1234.rrd
And your 64bit data source was:
myhost_traffic_in_2345.rrd
The last step would be to:
copy myhost_traffic_in_1234.rrd myhost_traffic_in_2345.rrd
4) Let the poller run a few passes and view your 64bit graphs to make sure everyting copied over well.
5) Delete your 32bit data sources in Cacti, take the graphs with them.
6) Delete your 32bit rrd files. I do this by looking at file save times and deleting all those that have not updated in X days.
I have used this process on several occasions. Now, before I create graphs for a host type, I perform a pre-assessment to insure the "polability" to prevent the rework articulated above.
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?
Sorry to resurrect an old thread, but I've got a "what-if" that corresponds with this. The OP wanted to change all interface stats to 64bit counters. If he were to re-define the data query for in/out bits and set the data sources to the 64-bit counters, what effect would that have? Would that still create new rrd's and need the procedure you outlined?
- TheWitness
- Developer
- Posts: 17062
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
None, the data is stored as octets in the RRD file and converted to bit's via a CDEF.
TheWitness
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?
Who is online
Users browsing this forum: No registered users and 11 guests