How do nagios logs rotate
scott_yem at agilent.com
scott_yem at agilent.com
Thu Apr 14 07:20:05 CEST 2005
Thanks for that Frank. I have tried this with hourly rotation and
things are working. I actually had to use the syntax "tail
--follow=name --retry" This can also be done by "tail -F name". Things
are working fine this way. Thank you to everyone that has replied.
I don't think that I will try to modify the logging.c code, although
that is a good suggestion to look at. I would have to update my c
coding skills to check the code. I knew that someone had a solution
that would work without having to modify the code.
Scott Yem
-----Original Message-----
From: frank [mailto:ratty at they.org]
Sent: Wednesday, April 13, 2005 5:56 PM
To: YEM,SCOTT (A-Labs,ex1)
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] How do nagios logs rotate
Assuming you're using GNU tail, try "tail --follow=name". After Nagios
rotates the log, your tail process will find the new file and continue
on
its merry way.
-frank
On Wed, 13 Apr 2005 scott_yem at agilent.com wrote:
> 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
[snip]
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list