Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


[SOLVED] Max Size Limit for cacti.log?

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: General
Author Message
siouxee
Cacti User


Joined: 07 Sep 2005
Posts: 66

PostPosted: Tue Nov 11, 2008 1:33 pm    Post subject: [SOLVED] Max Size Limit for cacti.log? Reply with quote

I noticed that my cacti.log file stopped growing suddenly about 10 days ago with a size of ~1.1GB. Is there a max size limit or suggested method to keep this log maintained?

As a workaround I renamed the file to cacti.old_log and a new cacti.log file was automatically generated and appears to be updating properly again.
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Tue Nov 11, 2008 3:59 pm    Post subject: Reply with quote

Suggest you use logrotate for your problem.

TheWitness
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12642
Location: Muenster, Germany

PostPosted: Tue Nov 11, 2008 4:03 pm    Post subject: Reply with quote

I recommend setting up a logrotate
Reinhard
Back to top
siouxee
Cacti User


Joined: 07 Sep 2005
Posts: 66

PostPosted: Tue Nov 11, 2008 5:00 pm    Post subject: Reply with quote

Any lograte options/suggestions for Win32?
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Tue Nov 11, 2008 7:22 pm    Post subject: Reply with quote

Well, you may have to search for something as Windows does not have such primitive and usefull features. It relies more on complex and hard to configure things.

What I would do is create a scheduled task to zip up the log file once a week and create a new one. You could have it keep a few backups.

There may be a utility available for Windows, or Cygwin might also do it. Not too sure.

TheWitness
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9736
Location: MI, USA

PostPosted: Tue Nov 11, 2008 7:22 pm    Post subject: Reply with quote

Here is one nice ( ) example:

http://www.datori.org/?p=7

TheWitess
Back to top
siouxee
Cacti User


Joined: 07 Sep 2005
Posts: 66

PostPosted: Wed Nov 12, 2008 1:10 pm    Post subject: Reply with quote

Cool, I'll give it a shot. Thanks!

So is there a theoretical limit on the cacti.log file?
Back to top
siouxee
Cacti User


Joined: 07 Sep 2005
Posts: 66

PostPosted: Wed Nov 12, 2008 1:54 pm    Post subject: Reply with quote

Seems to be working like a champ! Thanks for the help!
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: General All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group