On śro, 17 mar 2004 at 08:25:57 -0800, Nate Campi wrote:
On Wed, Mar 17, 2004 at 02:32:49PM +0100, Pawel Dziekonski wrote:
1st: please confirm how do I log kernel messages (assuming klogd is NOT running):
I use this pipe("/proc/kmsg");
more answeres? also, should it be: source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); }; or: source src { unix-dgram("/dev/log"); internal(); pipe("/proc/kmsg"); }; stream or dgram ??? I'm asking those questions, bacause different documentation sources say different things fir linux, or debian specyfically.
2nd: the machine "hangs" from time to time - cron is hanging, login is not spawning shell, sshd too. i have pinpointed it so i'm pretty sure that all those processes hang on socket connection to /dev/log. killing syslog-ng cures that.
I am also a debian user, I don't know if this problem is specific to debian or not, but I used to have lockups all the time when two things would happen at once: syslog log rotation and postfix reloads. The HUP of syslog-ng when rotating logs and postfix writing to /dev/log would hang up the whole machine, cron processes would pile up and eventually you couldn't even log into the machine, presumably because syscalls for logging would hang. If I already had a shell and killed postfix most of the processes would un-freeze, but cron would never recover. I always had to reboot or power cycle if init got screwed.
this is it!! please, see also (old bug, what the same problem): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=95480 regrads, P -- Pawel Dziekonski <pawel.dziekonski|@|pwr.wroc.pl>, KDM WCSS avatar:0:0: Wroclaw Networking & Supercomputing Center, HPC Department -> See message headers for privacy policy and S/MIME info.
On Thu, Mar 18, 2004 at 12:10:11AM +0100, Pawel Dziekonski wrote:
also, should it be:
source src { unix-stream("/dev/log"); internal(); pipe("/proc/kmsg"); };
or:
source src { unix-dgram("/dev/log"); internal(); pipe("/proc/kmsg"); };
stream or dgram ???
I use this: source src { # don't read from /proc/kmsg and run klogd also (Linux) pipe("/proc/kmsg"); tcp(port(51400)); udp(ip("192.168.1.1") port(514)); internal(); unix-stream("/dev/log" keep-alive(yes)); };
please, see also (old bug, what the same problem): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=95480
yeah looks the same -- Nate "The man who does not read good books has no advantage over the man who can't read them." - Samuel Clemens
participants (2)
-
Nate Campi
-
Pawel Dziekonski