Need Help On Cacti;

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
hasan_sust
Posts: 6
Joined: Mon Jul 20, 2009 4:39 am
Contact:

Need Help On Cacti;

Post by hasan_sust »

Hi there

I need some help regarding Cacti.

1. I want to back up cacti data on daily basis with 5 minutes interval. For that case, I need to know the table name, which stores the values updated with 5 minutes interval. Also mention the procedure plz.

If it is not possible,

I have to convert .rrd files to .csv files in daily basis with 5 minutes interval. Instruct me how to do this. As I am new to cacti, So please give me instructions in details.

If any other method exists, please include.

Regards
Hasan
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Statistical data is stored in the RRDtool files and configuration data is stored in the mysql database.

You best bet is to backup the RRDtool files.

I you insist on getting the data out of the RRDtool files, then I would point you at the RRDTool documentation on for the RRDtool dump feature.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
hasan_sust
Posts: 6
Joined: Mon Jul 20, 2009 4:39 am
Contact:

Post by hasan_sust »

Thanks for ur reply.

I have some more queries.

As I mentioned in previous post that, I have to backup cacti database daily basis. with 5 minutes interval. I need to automate the process.

In this context, what should be solution steps do you mention please.

More clearly, Should I have to made backup on rra/ directory under cacti within 5 minutes interval or after end of the day?

Secondly Which tools are required to convert these .rrd files to .csv files.

Finally I want to automate the process. Please reply.

Regards
Hasan
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You want to backup every 5 minutes? ummm why? Anyways, use standard procedures to backup a MySQL database which is currently in use (google it). You'll also want to back up the files in your Cacti folder, especially the rrd files.

As rony already suggested, you use 'rrdtool dump' to convert rrd data xml, then you can do whatever you want with it.

As for automating the process, a simple script to execute the various things above using whatever language you want.
hasan_sust
Posts: 6
Joined: Mon Jul 20, 2009 4:39 am
Contact:

Post by hasan_sust »

I have to prepare reports daily basis, weekly basis on 5 minutes interval. If I am looking for last months data, using csv export from front end, csv files contains data for 24 hour interval.

I don't know the table in cacti mysql database, which contain the data updates within 5 minutes interval. please mention the table name.

If it is not possible, then there may be way to convert .rrd files to .csv?

Please mention in details. I google it for last 10 ~ 12 days. But Didn't get any specific solution.

Thanks in advance.

Br
Hasan
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

For reports, please see the REPORTIT plugin.
Reinhard
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Last post splitted off to Plugin Forum
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests