log rotation broken?

Fredrik Wänglund Fredrik.Wanglund at datavis.se
Thu Sep 26 08:16:03 CEST 2002


I couldn't get it to work in 1.0b5, but then I did not spent much time on it because I was still in the core config phase.
Since then I've upgraded and now I am looking at the details, but the log-rotation works! I don't know why it did not work earlier, I tuned the permissions and log_rotation_method. The only thing I surely know I've done is the upgrade...


/FredrikW

-----Original Message-----
From:	Rusch, Daniel [mailto:Daniel.Rusch at GlobalCrossing.com]
Sent:	Wed 25-Sep-02 20:09
To:	'Josh Larsen, Monitored Security'; nagios-users at lists.sourceforge.net
Cc:	
Subject:	RE: [Nagios-users] log rotation broken?

Mine seems to be working fine, I upgraded to 1.0b6 last week (9/19).  I
don't think it matters, but I do stop and restart mine a few times a day
(it's used for development and prototyping).

-----Original Message-----
From: Josh Larsen, Monitored Security
[mailto:josh.larsen at monitoredsecurity.com]
Sent: Wednesday, September 25, 2002 12:06 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] log rotation broken?


Is log rotation broken for anyone else?  I'm usig 1.0b6, log rotation is set
to daily.  The log archive (ie, nagios-09-25-2002-00.log) gets written, but
the original log file doesn't get zeroed out.  So my archive log files get
progressively larger and viewing log data through the web interface shows
multiple days worth of data for one day.  I have resorted to a cron job to
clear out the working log file after nagios does the rotation.
 
I don't know if it should matter, but I have nagios logging to
/var/log/nagios.log and the archives going to /home/nagios/logs/.
 
Any ideas?  I've seen some discussion about log rotation in the past, but I
can't remember if there was any resolution.
 
 
Thanks,
Josh






-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf




More information about the Users mailing list