Problem with log rotation

holger.justen at aktion-mensch.de holger.justen at aktion-mensch.de
Mon Mar 24 08:31:04 CET 2003


Hi,

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:

-rw-rw-r--    1 nagios   nagios      32159 2003-03-22 23:37 
nagios-03-22-2003-23.log
-rw-rw-r--    1 nagios   nagios         34 2003-03-22 23:59 
nagios-03-23-2003-00.log

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?

Related configuration:
log_file=/usr/local/nagios/var/nagios.log
log_archive_path=/usr/local/nagios/var/archives
log_rotation_method=w

Thanks,
Holger Justen
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030324/cab41aa6/attachment.html>


More information about the Users mailing list