[SunHELP] Syslog doesn't work...

Andreas Obermaier andreas at port22.net
Mon Sep 2 12:11:54 CDT 2002


On Mon, Sep 02, 2002 at 05:08:02PM +0200, Takacs Istvan wrote:
> Hi,
> 
> Solaris 8
> 
> I'm afraid our syslog doesn't want to write its log
> files.
> As I see the daemon runs perfectly:
> 
> [log at gep]# ps -ef|grep `cat /etc/syslog.pid`
> 	    root 20464     1  0 15:46:15 ?        0:01 /usr/sbin/syslogd
> 
> But the size of the messages file just 0, so I don't know how 
> could this happen?
> 
> I have a default syslog.conf.
> 
> Could you help me please what should I check?
>

Hi,

You can try the following:

As root, run

test28# logger -p daemon.notice test
test28# tail /var/adm/messages
Sep  2 19:03:53 test28 root: [ID 702911 daemon.notice] test
test28# 

'logger -p daemon.notice test' will write to /var/adm/messages on a
system with a default /etc/syslog.conf.  If that works, then syslogd
just didn't have any messages to write to the log file, since the last
log rotate.

If it doesn't work, then you might want to 'kill -HUP <syslog PID>' and
try again.  This would fix a common problem caused by somebody removing
and then recreating /var/adm/messages without HUP'ing syslogd.

Also, check /var/log/syslog for content.  If sendmail messages are being
logged to it, then syslogd is working.

HTH,

Andreas

-- 

email:	Andreas.Obermaier at port22.net
mobile:	+49 179 8725141
postal:	Ginnheimer Landstr. 148, D-60431 Frankfurt
html:	http://www.port22.net/andreas/AndreasObermaier.html
txt:	http://www.port22.net/andreas/AndreasObermaier.txt


GPG Keyid 0x0FCD0EE2
GPG Fingerprint C2FF 6147 0ADB 1674 4096  2339 370F CBDF 0FCD 0EE2

fortune - print a random, hopefully interesting, adage:

I have hardly ever known a mathematician who was capable of reasoning.
		-- Plato



More information about the SunHELP mailing list