LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices

Reply
 
Search this Thread
Old 10-30-2006, 02:45 PM   #1
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Rep: Reputation: 15
Why syslog doesn't log?


I have a problem with a syslog on RHEL4.

It doesn't log since day one although it does run.

# service syslog status
syslogd (pid 2656) is running...
klogd (pid 2660) is running...

Here is my syslog.conf
---
# Log all kernel messages to the console.
# Logging much else clutters up the screen.
#kern.* /dev/console

# Log anything (except mail) of level info or higher.
# Don't log private authentication messages!
*.info;mail.none;authpriv.none;cron.none /var/log/messages

# The authpriv file has restricted access.
authpriv.* /var/log/secure

# Log all the mail messages in one place.
mail.* -/var/log/maillog


# Log cron stuff
cron.* /var/log/cron

# Everybody gets emergency messages
*.emerg *

# Save news errors of level crit and higher in a special file.
uucp,news.crit /var/log/spooler

# Save boot messages also to boot.log
local7.* /var/log/boot.log
 
Old 11-01-2006, 06:31 AM   #2
twantrd
Senior Member
 
Registered: Nov 2002
Location: CA
Distribution: redhat 7.3
Posts: 1,438

Rep: Reputation: 52
Does it log anything at all? Have you tried restarting it? If it still doesn't work, hmmm...do an strace on the pid and see if it hangs up on something.

-twantrd
 
Old 11-01-2006, 08:48 AM   #3
gparker
LQ Newbie
 
Registered: Jun 2006
Posts: 11
Blog Entries: 2

Rep: Reputation: 0
I'd use the "logger" command to test, or I'd kill the running syslogd and kick it off in debug mode (-d) and watch it in the foreground.
 
Old 11-01-2006, 10:56 AM   #4
zivota
Member
 
Registered: May 2005
Distribution: CENTOS
Posts: 91

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by twantrd
Does it log anything at all? Have you tried restarting it? If it still doesn't work, hmmm...do an strace on the pid and see if it hangs up on something.

-twantrd
This is what I got from strace. This segment repeats on and on ... Honestly doesn't mean anything to me. If somebody can help?


Process 6427 attached - interrupt to quit
select(1, [], NULL, NULL, NULL) = ? ERESTARTNOHAND (To be restarted)
--- SIGALRM (Alarm clock) @ 0 (0) ---
rt_sigaction(SIGALRM, {0xc5dd46, [ALRM], SA_RESTORER, 0xdff8e8}, {0xc5dd46, [ALRM], SA_RESTORER, 0xdff8e8}, 8) = 0
alarm(30) = 0
rt_sigaction(SIGALRM, NULL, {0xc5dd46, [ALRM], SA_RESTORER, 0xdff8e8}, 8) = 0
rt_sigaction(SIGALRM, {0xc5dd46, [ALRM], SA_RESTORER, 0xdff8e8}, NULL, 8) = 0
sigreturn()
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change Debian log rotation of syslog and daemon.log onmountain Linux - Newbie 2 07-31-2008 02:27 AM
How to use syslog to monitor qmail log cksoo Linux - Enterprise 1 10-17-2006 10:14 AM
Annoying log message in syslog TL_CLD Slackware 2 09-29-2006 02:52 PM
/var/log/syslog George666 Slackware 4 03-19-2004 07:34 AM
re: where is /var/log/syslog ergo_sum Red Hat 10 11-04-2003 06:27 PM


All times are GMT -5. The time now is 09:10 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration