delete old logfiles
Marc Powell
marc at ena.com
Sun Mar 27 01:25:07 CET 2005
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of richard lucassen
> Sent: Saturday, March 26, 2005 3:35 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] delete old logfiles
>
> Debian Sarge nagios-txt 1.3
>
> The log are rotated daily, but older logs are still kept in the
> "archives" directory. Is there a Nagios-way to get rid of old logfiles
> other than a daily cronjob starting
>
> find /var/log/nagios/archives/ -mtime +${LOG_MAX_DAYS} -exec rm -f {}
\;
>
> to delete these older logfiles?
No, there isn't. Be aware that all of Nagios' historical data is
maintained in those log files so you would be removing the information
used to generate many of the reports. Reports will still run but will
only include information in existing log files.
--
Marc
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
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