Need Help w/ Reducing Cacti Space

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

Moderators: Developers, Moderators

Post Reply
User avatar
ltitusl
Posts: 18
Joined: Wed Sep 19, 2012 9:00 am

Need Help w/ Reducing Cacti Space

Post by ltitusl »

So I've noticed Cacti over the years is eating up more and more space. My only thought is that this is due to log files. Is there a way to limit the size of log files or how long they're kept? If I'm wrong, what else could be eating up all that space as Cacti is the only thing on this server?
information wants to be free
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Need Help w/ Reducing Cacti Space

Post by phalek »

Under Unix you can use logrotate to keep the log files small and have them maintained automatically. See this post here for some examples:

http://forums.cacti.net/post-99911.html
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Javik
Posts: 16
Joined: Mon Mar 04, 2013 11:28 am

Re: Need Help w/ Reducing Cacti Space

Post by Javik »

Looking into this to learn more about my own new cacti install, I see this is already taken care of, on newer Ubuntu installs.

Code: Select all

userland@ubuntu:/etc/logrotate.d$ cat cacti
/var/log/cacti/*.log {
        weekly
        missingok
        rotate 52
        compress
        notifempty
        create 640 www-data www-data
        sharedscripts
}
[/size]
Linux ubuntu 3.11.0-14-generic #21-Ubuntu SMP Tue Nov 12 17:04:55 UTC 2013
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests