log rotation
Posted: Tue Jun 29, 2010 11:20 pm
I am using 3.2.1 with:
perms on /var/log/nagios.log are 664 (nagios/nagios)
Each day, nagios archives the file /var/log/nagios.log to the specified archive path, but doesn't remove the original. What ends up happening is that the existing /var/log/nagios.log is appended to forever. I have turned on debugging (level=-1 with verbosity=2) but don't see anything obvious. So, I'm assuming this is not the expected behavior... ideas?
Code: Select all
log_rotation_method=d
log_archive_path=/usr/nagios/var/archives
Each day, nagios archives the file /var/log/nagios.log to the specified archive path, but doesn't remove the original. What ends up happening is that the existing /var/log/nagios.log is appended to forever. I have turned on debugging (level=-1 with verbosity=2) but don't see anything obvious. So, I'm assuming this is not the expected behavior... ideas?