rrd.log file too big...

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

Moderators: Developers, Moderators

Post Reply
carock
Posts: 5
Joined: Wed Jan 14, 2004 11:47 am
Location: St. Charles, MO
Contact:

rrd.log file too big...

Post by carock »

I'm running Cacti on RH Linux, and I ran out of disk space. After looking around, I noticed I had a 300+ Meg rrd.log file.

I could not find any posts about this, so I want to know if I can rotate that file so I don't run out of disk space? Is it important to keep all that data?

Thanks,
Chuck
User avatar
egarnel
Cacti Pro User
Posts: 708
Joined: Thu Nov 21, 2002 8:55 am
Location: Austin, TX

use logrotate

Post by egarnel »

I added it to the syslog under /etc/logrotate.d/

/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler /var/log/boot.log /var/log/cron /usr/local/cacti/log/rrd.log {
sharedscripts
postrotate
/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true
endscript


Also, what options are you logging?
carock
Posts: 5
Joined: Wed Jan 14, 2004 11:47 am
Location: St. Charles, MO
Contact:

Re Use logrotate

Post by carock »

That's what I was thinking of using, I just didn't want to lose graph data or something because I don't know how RRD works completely.

I'm also not sure what I'm logging. Someone else set this up, and I'm just coming in to try and finish it.. ;-)

Thanks for the info.

Chuck
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests