how to rotate performance log files?

moshe sharon moshesharon at gmail.com
Wed Dec 28 23:04:45 CET 2005


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 <aleksey.tsalolikhin at gmail.com> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20051229/1e1331c8/attachment.html>


More information about the Users mailing list