<br><font size=2 face="sans-serif">Hi,</font>
<br>
<br><font size=2 face="sans-serif">I have some problems with the log rotation option of Nagios. At the moment, I'm using weekly log rotation (but the same problem also occured with daily rotation). When log rotation takes place two files are created in the archive directory:</font>
<br>
<br><font size=2 face="sans-serif">-rw-rw-r-- 1 nagios nagios 32159 2003-03-22 23:37 nagios-03-22-2003-23.log</font>
<br><font size=2 face="sans-serif">-rw-rw-r-- 1 nagios nagios 34 2003-03-22 23:59 nagios-03-23-2003-00.log</font>
<br>
<br><font size=2 face="sans-serif">Most events are included in the nagios-03-22-2003-23.log (e.g. nagios-03-23-2003-00.log just contains "[1048373973] LOG ROTATION: WEEKLY"). The cgi-scripts (like history.cgi) are looking for archived log files ending with -00.log, therefore not all messages are displayed in the web interface. What has to be done in order to get Nagios to display all messages related to a log period?</font>
<br>
<br><font size=2 face="sans-serif">Related configuration:</font>
<br><font size=2 face="sans-serif">log_file=/usr/local/nagios/var/nagios.log</font>
<br><font size=2 face="sans-serif">log_archive_path=/usr/local/nagios/var/archives</font>
<br><font size=2 face="sans-serif">log_rotation_method=w</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">Holger Justen</font>