Nagios Log Archive Maintenance
Posted: Thu Nov 12, 2015 12:53 pm
I currently use the nagios.cfg defaults:
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives/
I get nagios-<MM>-<DD>-<YYYY>-00.log as expected once per day. Is there a setting to say only archive the last 30 or 60 days (i.e. 30 day rotating archive)? My other option would be to set up a cron job to remove any Nagios archive file older than 30 or 60 days. Is the log archive designed to keep going until there is no room left on the partition?
Thanks.
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives/
I get nagios-<MM>-<DD>-<YYYY>-00.log as expected once per day. Is there a setting to say only archive the last 30 or 60 days (i.e. 30 day rotating archive)? My other option would be to set up a cron job to remove any Nagios archive file older than 30 or 60 days. Is the log archive designed to keep going until there is no room left on the partition?
Thanks.