<HTML>
<HEAD>
<TITLE>Re: [Nagios-users] How do nagios logs rotate</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>For the nagios log it is in the main config file:<BR>
<BR>
<BR>
# LOG ROTATION METHOD<BR>
# This is the log rotation method that Nagios should use to rotate<BR>
# the main log file. Values are as follows..<BR>
#       n       = None - don't rotate the log<BR>
#       h       = Hourly rotation (top of the hour)<BR>
#       d       = Daily rotation (midnight every day)<BR>
#       w       = Weekly rotation (midnight on Saturday evening)<BR>
#       m       = Monthly rotation (midnight last day of month)<BR>
<BR>
log_rotation_method=d<BR>
<BR>
calvin<BR>
<BR>
<BR>
On 4/13/05 3:55 PM, "scott_yem@agilent.com" <scott_yem@agilent.com> wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="4"><FONT FACE="Arial"><SPAN STYLE='font-size:13.0px'>I have a process looking at the log files and noticed that when the logs rotate, my process looking at the log file breaks.  I am using a tail –f command with a perl script to interpret data coming back via a passive check.  I am then plugging the information into a rrd and making graphs.  I know this is probably easier with nagiosgraph or something, but this is a migration from a server running Netsaint 007.  I wanted to get things running the way they were and then work to get the other files made up the way we want.<BR>
 <BR>
I will try nagiosgraph, but in my last attempts, I was not able to get it working properly.  The functionality seems to be better than what I am currently using, but the code for the current solution is more than 3 years old.<BR>
 <BR>
I was looking in /etc/logrotate.conf and did not find any log rotation in there.  If the script was in here I know I could HUP the process for my script, but I cannot find the process that rotates the logs.<BR>
 <BR>
Any help is appreciated.<BR>
 <BR>
Scott Yem<BR>
Research Computing Services<BR>
Agilent Laboratories<BR>
</SPAN></FONT></FONT><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'><BR>
</SPAN></FONT>
</BODY>
</HTML>