Log Rotation

Russell Scibetti rscibetti at opensight.net
Mon Mar 29 01:54:41 CEST 2004


We noticed the problem because there was a really bad day (lots of state
changes) that we wanted to review the next day, and the log was empty.  So
there should definitely be contents in the log.

As for NTP, I don't think its the problem because NTP has been running the
entire time that Nagios has, and we never had this problem til 10 days ago
(Nagios has been running for over a year).  Any suggestions on how to tell
if NTP is having an effect?

Russell

----- Original Message -----
From: "Andreas Ericsson" <ae at op5.se>
To: "Nagios Users" <nagios-users at lists.sourceforge.net>
Sent: Sunday, March 28, 2004 6:00 PM
Subject: Re: [Nagios-users] Log Rotation


> Russell Scibetti wrote:
> > For some reason, starting 10 days ago, the logs that are written to the
> > archives directory are practically empty.  The just contain the normal
first
> > "LOG ROTATION: DAILY" line, and then nothing else.
> >
>
> Nagios only logs state __changes__, so if the network state has been
> stable during the day, the log will be empty.
>
> > Some additional information:
> > - For every log this has happened to (the last 10), the file system time
> > stamp and the timestamp in the log are at midnight, 00:00
> > - For the logs before this problem started, the timestamp in the log is
> > 00:00, but the filesystem timestamps are either 23:49, 23:46, or
> > 23:56-23:58.
> >
> If you have several NTP servers and the nagios server frequently changes
> server (and updates the time), this sort of thing could theoretically
> happen. In that case you've got some time sync problem on the network if
> it differs more than a second or two.
>
> > NTP is running on the machine, but the only problem I know that NTP
caused
> > was multiple archive logs.
> >
> > Anyone have any ideas why this is happening?  Thanks in advance.
> >
> > Russell
> >
> >
> --
> Mvh
> Andreas Ericsson
> OP5 AB
> +46 (0)733 709032
> andreas.ericsson at op5.se
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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
>



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&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