Archive logs

Marc Powell marc at ena.com
Wed Sep 6 16:29:23 CEST 2006



> -----Original Message-----
> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
> bounces at lists.sourceforge.net] On Behalf Of Hari Sekhon
> Sent: Wednesday, September 06, 2006 5:16 AM
> To: Wheeler, JF (Jonathan)
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Archive logs
> 
> Wheeler, JF (Jonathan) wrote:
> > What do people do about their archive logs ?  I am running a
> > configuration on Scientific Linux with nearly 600 hosts and 13000+
> > services which generates quite large log files.  As far as I can
tell
> > the logs are moved to the archive and retained there indefinitely;
my
> > /var partition is now getting quite full.  I have tried using
logrotate,
> > but the log file names do not seem to allow logrotate to work
correctly.
> > A browse through the mailing list archives does not show anyone else
> > asking about this problem.  Any suggestions ?
> >


> 
> I would do a simple script cronned nightly to remove files? Best to


I concur and use the same here --

# remove archive log files over 2 years old.
find /usr/local/nagios/var/archives -mtime +730 | xargs rm

--
Marc

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list