0 wrote:
>>Do You "rotate" Your logs in any way? - I do so every 1st of a
>
> yes, every month like you.
>
> well I don't do this by hand: crond does that for me.
Oh, what a good idea... - I'm tired of getting up in the middle of
the night to monitor my servers... -- Just kidding.
> Actually, I tried to sync it manually, but it didn't change anything.
> I put the permissions to rw for anyone, nothing. Eventually, I
> rebooted and there: it worked again. i still don't understand why this
> is needed. I mean: I'm not using windows, damn. This is of course
> annoying since I can't know WHEN it stops logging. Or would you advise
> me to start using snmp or something similar.
Well, I'm guessing here, but I think there are two things that I think
may cause this: Firstly, as said, if You moved the log file without
restarting syslogd, it will keep writing to the moved file rather than
to the new one (note that, IIRC, the new file has to be in place; like
in "mv /var/log/firewall.log /var/log/fw.$YEAR$MONTH.log ; touch \
/var/log/firewall.log ; kill -HUP $(pidof syslogd)").
The second thing would be that there's not enough space left on Your
hd to sync it. "df" reports about 19M free space, and normally the
disk is considered full no matter whether all IO has physically been
done already. So I'm not sure whether this causes Your problem.
Rebooting the linux box does nothing but bring down all processes and
restart them in a predefined manner. So if You messed up some of Your
daemons, You could either restart them by hand one by one, or have
"init" do that for You. There's no need to reboot a linux box unless
You want to run a different kernel.
So, something _does_ cause this. Try removing the leading "-" in
/etc/syslog.conf and see when exactly the logging stops. Check Your
system logs for anything suspicious. This will give You a step by step
approach to the problem.
Cheers, Jack.
--
----------------------------------------------------------------------
My personal reading of the string "MicroSoft" expands to "NanoWeak"...
|