Antwort: Re: Problem with log rotation

holger.justen at aktion-mensch.de holger.justen at aktion-mensch.de
Mon Mar 24 12:49:01 CET 2003


Subhendu Ghosh <sghosh at sghosh.org>
24.03.2003 12:46

 
        An:     holger.justen at aktion-mensch.de
        Kopie:  nagios-users at lists.sourceforge.net
        Thema:  Re: [Nagios-users] Problem with log rotation


On Mon, 24 Mar 2003 holger.justen at aktion-mensch.de wrote:

> 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

What version of Nagios ??


-- 

I'm using Nagios Version 1.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030324/fe5d2ec4/attachment.html>


More information about the Users mailing list