Nagios and log rotating
Andreas Ericsson
ae at op5.se
Mon May 4 12:34:35 CEST 2009
Ales Rikovsky wrote:
> Question from Nagios newbie:
>
> I need an access to the whole Nagios history to the complete log archive.
> As Nagios (due to logrorating??) compresses the logs, I can't see for
> example stats for the whole year or so. So I'm getting a message:
>
> Error: Cannot open log file
> '/var/log/nagios/archives/nagios-04-28-2009-00.log' for reading!
>
>
> Is there a possibility or way to let the log files not to be compressed
> and therefore the whole history available at ANY time, please?
>
Nagios does not compress rotated logfiles. If logfiles are compressed,
something else is doing the compressing. In that case, you need to
disable that (whatever it is) and undo the damage it has done.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Tel: +46 8-230225 Fax: +46 8-230231
Register now for Nordic Meet on Nagios, June 3-4 in Stockholm
http://nordicmeetonnagios.op5.org/
Considering the successes of the wars on alcohol, poverty, drugs and
terror, I think we should give some serious thought to declaring war
on peace.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
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