PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : syslog-ng startet nicht



ucfnet
08.11.05, 19:06
Hallo,

ich habe ein debian woody bei Lycos als VDS installiert. Seit dem Upgrade der Pakete per "apt-get upgrade" kann ich den syslog-ng nicht mehr starten.


/etc/init.d/syslog-ng start
CONSOLE_LOG_LEVEL is of unaccepted value.
KERNEL_RINGBUF_SIZE is of unaccepted value.
Starting system logging: syslog-ngError opening file /proc/kmsg for reading (Operation not permitted)
Error initializing configuration, exiting.
start failed.


Die Datei hat folgende Attribute:

ls -la /proc/kmsg
-r-------- 1 root root 0 Nov 7 13:06 /proc/kmsg


Die Datei /etc/default/syslog sieht so aus:

cat /etc/default/syslog-ng
# If variables is not set here, then the corresponding
# parameters will not be changed.
# If the variables are set, then every invocation of
# syslog-ng's init script will set them using dmesg.

# log level of messages which should go to console
# see klogctl(8) or <linux/kernel.h> for details
#
#CONSOLE_LOG_LEVEL=0

# Size of the kernel ring buffer used to hold kernel
# messages.
#KERNEL_RINGBUF_SIZE=16392
#


Die Datei /etc/syslog-ng/syslog-ng.conf habe ich als Datei beigefügt.


Was ich nicht verstehe ist, wieso ich die Datei nicht als root ändern kann. Kann es daran liegen, dass ich mich über "su" als root einlogge oder ist das egal?

Vielen Dank für jede Hilfe

ucfnet

ucfnet
09.11.05, 10:19
Habe das Problem erstmal *geflickt*.

In der Datei /etc/syslog-ng/syslog-ng.conf habe ich den Eintrag

######
# sources

# all known message sources
source s_all {
# message generated by Syslog-NG
internal();
# standard Linux log source (this is the default place for the syslog()
# function to send logs to)
unix-stream("/dev/log");
# messages from the kernel
file("/proc/kmsg" log_prefix("kernel: "));
# use the above line if you want to receive remote UDP logging messages
# (this is equivalent to the "-r" syslogd flag)
# udp();
};

in

######
# sources

# all known message sources
source s_all {
# message generated by Syslog-NG
internal();
# standard Linux log source (this is the default place for the syslog()
# function to send logs to)
unix-stream("/dev/log");
# messages from the kernel
file("/test/kmsg" log_prefix("kernel: "));
# use the above line if you want to receive remote UDP logging messages
# (this is equivalent to the "-r" syslogd flag)
# udp();
};

geändert. Daraufhin habe ich die Datei angelegt und syslog-ng startete.

Reicht diese Änderung aus? Oder muss ich die Änderung noch einem anderen Programm mitteilen?

Danke...