ModifyCactiInRrdThe file size method is very simple. Let's take a look!
During server monitoring by Cacti, by default, only two days of data records are retained for high-precision data within five minutes. That is to say, we cannot see data within five minutes for traffic beyond two days. This is in conflict with our existing business requirements. Therefore, we have found some methods to modify the RRD storage cycle, so that we can modify the storage cycle of the existing RRD file. For the newly created rrd, you can modify the corresponding row through Data Source-> RRAs, so that the newly created Data uses the new value by default.
Note: It is very dangerous to modify the rrd size. before the operation, back up your rrd data. This article is the best opportunity to corrupt your rrd data.
The simplest way to modify rrd without using The command line is to use The Toolsmith. This tool is available in commercial and free versions. If you are interested, click the link below to try it out.
In reference 1, you can download a resize. pl file. Is a tool used to modify the rrd size in the command line. When the tool is started, it may prompt some perl module missing. In this case, you only need to follow the prompts to install it. I am using the perl-MCAPN-e shell method. However, there is a prompt that RRDp. pm cannot be found in CPAN. You need to download and install the rrdtool-perl package to provide this module.
After completing these steps, you can use resize. pl normally.
Before you start, you can view the information of the rrd file. Run the following command:
Perl resize. pl-f "original_data/cacti/rra/tianjin_dpool_web_21_traffic_in_22.rrd"-r 0-o output_data/-g 8000-I
The detailed information of this file is displayed.