Hello
 
Redhat comes with logrotate software. do man for logrotate or search the internet its pretty simple.
all the default logs like syslog are rotated by it.
 
Hope it helped
 
Moshe Sharon

 
On 12/28/05, Aleksey Tsalolikhin <[EMAIL PROTECTED]> wrote:
Hi,

(Nagios 1.3 on RedHat ES 3)

I have host and service performance logging enabled in nagios.cfg :

xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log
xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log

I also have log file rotation enabled:

log_rotation_method=d

However log_rotation_method  only applies to nagios.log.   Should I set up logrotate to move the files out and then HUP nagios at midnight?   or is there a better way to do it?

Thanks,
-at

Reply via email to