Xymon Mailing List Archive search

Hobbit logs

list Ryan Jay B. Lapuz
Tue, 9 Oct 2007 08:23:01 +0800
Message-Id: <016d01c80a0a$8d90d8d0$user-9d17b3cf1d05@xymon.invalid>

This is the script...

# more /etc/logrotate.d/hobbit
#
#       Logrotate fragment for Hobbit.
#
/var/log/hobbit/*.log {
        weekly
        compress
        delaycompress
        rotate 5
        missingok
        nocreate
        sharedscripts
        postrotate
                /etc/init.d/hobbit rotate
        endscript
}


----- Original Message ----- From: "Ryan Jay B. Lapuz" <user-945139049f37@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, October 09, 2007 8:13 AM
Subject: Re: [hobbit] Hobbit logs

So, All i need is to put the script in the /etc/logrotate.d/, is this right?
I really don't understand. I checked my old hobbit server and the /etc/logrotate.d/hobbit is already existing. And, I'm sure I didn't configure that before, because I don't know how.

Thanks

----- Original Message ----- From: "Hobbit User" <user-24d6f8323faa@xymon.invalid>
To: <user-ae9b8668bcde@xymon.invalid>
Sent: Tuesday, October 09, 2007 7:59 AM
Subject: Re: [hobbit] Hobbit logs

On Mon, October 8, 2007 19:47, Ryan Jay B. Lapuz wrote:
I'm running Hobbit 4.2.0 w/ all-in-one patch to Fedora Core 6. Thanks for
your help Gary and Steve.
So, to sum up, you need
/etc/cron.daily/logrotate
/etc/logrotate.conf
/etc/logrotate.d/hobbit
all set up to have your hobbit logs rotated.  Anything you're not sure of,
look at those on the server where the logs are getting rotated now.