Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sat Jul 20, 2019 2:28 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Need Help w/ Reducing Cacti Space
PostPosted: Wed Mar 05, 2014 4:52 pm 
Offline
User avatar

Joined: Wed Sep 19, 2012 9:00 am
Posts: 18
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


Top
 Profile  
 
 Post subject: Re: Need Help w/ Reducing Cacti Space
PostPosted: Thu Mar 06, 2014 1:03 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2710
Location: Kressbronn, Germany
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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code:
CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061


Top
 Profile  
 
 Post subject: Re: Need Help w/ Reducing Cacti Space
PostPosted: Sat Mar 08, 2014 12:13 pm 
Offline

Joined: Mon Mar 04, 2013 11:28 am
Posts: 7
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:
[email protected]:/etc/logrotate.d$ cat cacti
/var/log/cacti/*.log {
        weekly
        missingok
        rotate 52
        compress
        notifempty
        create 640 www-data www-data
        sharedscripts
}

Linux ubuntu 3.11.0-14-generic #21-Ubuntu SMP Tue Nov 12 17:04:55 UTC 2013


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group