Modify the rrd file size in Cacti (1)

Source: Internet
Author: User
Tags rrd

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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.