Need Help w/ Reducing Cacti Space

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

Moderators: Moderators, Developers

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

Need Help w/ Reducing Cacti Space

#1 Post by ltitusl » Wed Mar 05, 2014 4:52 pm

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
Cacti Guru User
Posts: 2711
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Re: Need Help w/ Reducing Cacti Space

#2 Post by phalek » Thu Mar 06, 2014 1:03 am

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: Select all

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
[/size]

Javik
Posts: 15
Joined: Mon Mar 04, 2013 11:28 am

Re: Need Help w/ Reducing Cacti Space

#3 Post by Javik » Sat Mar 08, 2014 12:13 pm

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

[email protected]:/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