Problem with log rotation
Subhendu Ghosh
sghosh at sghosh.org
Mon Mar 24 12:46:06 CET 2003
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 ??
--
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list