Is it possible to specify a data retention period in Cacti?

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
akhran
Posts: 3
Joined: Sat May 26, 2007 6:13 pm

Is it possible to specify a data retention period in Cacti?

Post by akhran »

/var/log/mysql directory (containing mysql-bin.*) has grown too large, at the rate of 1.3GB per day. As the harddisk capacity is only about 40GB (30GB usable), is there a way to retain these data for only 30 days?

Or can those files in /var/log/mysql be safely deleted without affecting the data needed for the graphs?

Thanks.

PS. This machine is used solely for Cacti.
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Post by Frodoger »

What did you save in the mysql directory ?????
The rrd Files? The mysql Database?


Frodoger
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

these files are used by MySQL for binary logging, which you can disable : http://dev.mysql.com/doc/refman/5.0/en/binary-log.html
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
User avatar
Frodoger
Cacti User
Posts: 94
Joined: Wed Jun 30, 2004 9:28 am
Location: Germany, Frankfurt am Main
Contact:

Post by Frodoger »

oh. nice. i dont know about that feature. btw.
"Wer lesen kann, ist klar im Vorteil"

Thanx fmangeant.


greetings
Frodoger
akhran
Posts: 3
Joined: Sat May 26, 2007 6:13 pm

Post by akhran »

Thanks for the advice. However, I only manage to locate the relevant help in the command "RESET MASTER". It deletes all the binary logs. However, the change is not permanent.

This is not a Cacti question, but I would appreciate anyone could share the command to make the change permanent.

Thanks!
fmangeant wrote:Hi

these files are used by MySQL for binary logging, which you can disable : http://dev.mysql.com/doc/refman/5.0/en/binary-log.html
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests