Syslog - solaris 9


 
Thread Tools Search this Thread
Operating Systems Solaris Syslog - solaris 9
# 1  
Old 08-17-2010
Syslog - solaris 9

HI admins,

I am facing an issue with syslog on solaris9.

It stopped the logging of messages..I tried all ways to start the syslog--/etc/init.d/syslog start, /usr/sbin/syslogd......etc....
But ps -eaf | grep sys not showing the syslog processes..........
When i start syslog using /etc/init.d/syslog start, /var/adm/messages reports messages as follows:
krtld: [ID 472681 kern.notice] WARNING: mod_load: cannot load module 'nfs'
krtld: [ID 819705 kern.notice] /kernel/sys/sparcv9/doorfs: undefined symbol

I didn't patched recently, but I just had installed syslog-ng
on the host. For syslog-ng, I also added some dependancies such as
eventlog-
libpcap
pcre-8.10
glib-2.20.
libol-

I started syslog-ng once using /etc/init.d/syslog-ng start and then syslog stopped.
Then I stopped syslog-ng, and tried to restart syslog,but no luck.

I think, bcoz of some dependancies, it won't work....Plz suggest ASAP.

Thanks guys
# 2  
Old 08-17-2010
Have you tried a "truss" to see if you can see what it is failing on ?
Might help
# 3  
Old 08-17-2010
well, actually i didn't have exp with truss commands....

I know that truss -p <pid> will give something but as ps -eaf not showing any sys process.....so no pid...

how to use it for this syslog??


Thanks
# 4  
Old 08-18-2010
you might be having a syntax problem in your syslog.conf file. Can you tail /var/adm/messages and try to start the syslogd again and send the logs here ?
# 5  
Old 08-18-2010
Can you see if any of the relevant files have changed with the syslog-ng install?
Please check:-

/etc/init.d/syslog:
This should have a Copyright "Sun Microsystems" and should start /usr/sbin/syslogd

/usr/sbin/syslogd
On my box it is dated Apr 1 2006, and "/bin/sum" output is
56116 155 /usr/sbin/syslogd
This may be different if you have patches installed.

/etc/syslog.conf
Again should be copyright "Sun Microsystems"

/dev/log
My "ls -l /dev/log" looks like:
lrwxrwxrwx 1 root other 27 May 19 2008 /dev/log -> ../devices/pseudo/log@0:log

/devices/pseudo/log@0:log:
My "ls -l /devices/pseudo/log\@0\:log" looks like:
crw-r----- 1 root sys 21, 5 May 19 2008 /devices/pseudo/log@0:log

Also could you post the contents of your /etc/syslog.conf ?

Thx.
# 6  
Old 08-18-2010
# file /usr/sbin/syslogd
-r-xr-xr-x 1 root sys 79396 Jun 10 2008 /usr/sbin/syslogddynamically linked, stripped

# ls -l /usr/sbin/syslogd
-r-xr-xr-x 1 root sys 79396 Jun 10 2008 /usr/sbin/syslogd

# ls -l /dev/log
lrwxrwxrwx 1 root other 27 Sep 29 2006 /dev/log -> ../devices/pseudo/log@0:log

# ls -l /devices/pseudo/log\@0\:log
crw-r----- 1 root sys 21, 5 Sep 29 2006 /devices/pseudo/log@0:log

# /etc/init.d/syslog start
syslog service starting.
# tail -5 /var/adm/messages
Aug 17 09:06:06 eric krtld: [ID 819705 kern.notice] /kernel/sys/sparcv9/nfs: undefined symbol
Aug 17 09:06:06 eric krtld: [ID 826211 kern.notice] 'crsetugid'
Aug 17 09:06:06 eric krtld: [ID 472681 kern.notice] WARNING: mod_load: cannot load module 'nfs'
Aug 18 08:20:36 eric krtld: [ID 819705 kern.notice] /kernel/sys/sparcv9/doorfs: undefined symbol
Aug 18 08:20:36 eric krtld: [ID 826211 kern.notice] 'copyout_nowatch'


Here eric is my host name

# cat /etc/syslog.conf
#ident "@(#)syslog.conf 1.5 98/12/14 SMI" /* SunOS 5.0 */
#
# Copyright (c) 1991-1998 by Sun Microsystems, Inc.
# All rights reserved.
#
# syslog configuration file.
#
# This file is processed by m4 so be careful to quote (`') names
# that match m4 reserved words. Also, within ifdef's, arguments
# containing commas must be quoted.
#
*.err;kern.notice;auth.notice /dev/sysmsg
*.err;kern.debug;daemon.notice;mail.crit /var/adm/messages

*.alert;kern.err;daemon.err operator
*.alert root

*.emerg *

# if a non-loghost machine chooses to have authentication messages
# sent to the loghost machine, un-comment out the following line:
#auth.notice ifdef(`LOGHOST', /var/log/authlog, @loghost)

mail.debug ifdef(`LOGHOST', /var/log/syslog, @loghost)

#
# non-loghost machines will use the following lines to cause "user"
# log messages to be logged locally.
#
ifdef(`LOGHOST', ,
user.err /dev/sysmsg
user.err /var/adm/messages
user.alert `root, operator'
user.emerg *
)

#Save oracle rdbms audit trail to oracle_audit.log
local0.warning /var/log/oracle/oracle_audit.log
#Send oracle rdbms audit trail to remote syslog server
#local0.info @


I think all files are correct as they should be...Is it because of the dependancies that I mentioned in previous posts...???

---------- Post updated at 04:38 PM ---------- Previous update was at 08:23 AM ----------

Hi Citaylor/Niyazi,

Could you please go through my last post.....
It might help to recognize the solution.....


thnx

Last edited by snchaudhari2; 08-18-2010 at 11:44 AM..
# 7  
Old 08-19-2010
I think you have a version mismatch between the kernel and kernel modules on your machine. The doorfs kernel module needs 'copyout_nowatch' to be present in the kernel, but it is not. The same is true for the nfs kernel module and 'crsetugid'. Maybe you have more error messages like these in your /var/adm/messages file.

Because syslogd needs to open a door file (var/run/syslog_door) and the kernel is not able to load the appropriate driver, syslogd can't run.

To resolve this issue, you need to identify all files that were overwritten by mistake and replace them with the correct ones (hopefully from a backup).

I guess you ran into trouble after rebooting the machine. The kernel modules might have been replaced a long time ago but it had no immediate effect, because the old ones were still in memory. But after rebooting ... Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

How can i send Solaris syslog loging server?

HI how can i send solaris syslog to centralized logging server? i have tried adding like below and got error: *.err;kern.debug;daemon.notice;mail.crit @172.16.200.50:5000 and the error i got in /var/adm/messages is: Jun 10 13:02:24 aresdb-new.alshaya.com syslogd: line 14:... (10 Replies)
Discussion started by: bentech4u
10 Replies

2. UNIX for Advanced & Expert Users

Syslog in Solaris 11.1

Hi, I have a solaris 11.1 server with many network interfaces (real and virtual), and one is connected to another server. i need that syslog send the info through one specific interface, i know that in the syslog.conf file can write: *.* @xxx.xxx.xxx.xxx (remote server IP) but... (1 Reply)
Discussion started by: iocx
1 Replies

3. UNIX for Dummies Questions & Answers

Syslog in Solaris 11.1

Hi, I have a solaris 11.1 server with many network interfaces (real and virtual), and one is connected to another server. i need that syslog send the info through one specific interface, i know that in the syslog.conf file can write: *.* @xxx.xxx.xxx.xxx (remote server IP) but... (0 Replies)
Discussion started by: iocx
0 Replies

4. Solaris

Solaris syslog messages cluttering screen

Well, this kind of silly but I think I am missing something. So we have this Solaris 10 server which acts as syslog server for network devices. Problem is the syslogs clutters whenever I use the screen utility for any work. I am posting the conetent of /etc/syslog.conf # more... (3 Replies)
Discussion started by: admin_xor
3 Replies

5. Solaris

Solaris SYSLOG Help

We have this Sun Solaris that we use for SYSLOG. Existing firewalls send warning level to this SYSLOG and it works great. We added a new firewall, I pointed the firewall to this SYSLOG server but nothing is being logged (windows KIWI works but not UNIX & I dont like KIWI). I am wondering what to do... (10 Replies)
Discussion started by: fjm1502
10 Replies

6. Solaris

Solaris syslog server and client

Hi folks, I am attempting to setup a Solaris 10 syslog server to receive logs from linux machines. Here's what I did: On the server (SunOS sun226 5.10), IP address: 192.168.212.226: 1. start syslogdby issuing $/usr/sbin/syslogd -T On a client (SunOS sun221 5.8): 1. Configured... (1 Reply)
Discussion started by: kimurayuki
1 Replies

7. UNIX for Dummies Questions & Answers

edit /etc/syslog.conf (Solaris 10)

Hi, Im editing the file /etc/syslog.conf for Solaris 10 server in production. I need to add "auth and authpriv.": someone set the same? Have been successful? I would appreciate any suggestions. Greetings. The unmodified arhive is: (0 Replies)
Discussion started by: musul
0 Replies

8. Solaris

Solaris Syslog Server

Hi all, I want to implement a Syslog Server but i'm new in this area. I donīt know how to configure it in Solaris. I should like send all the logs to a application(manipule the information, por example: do the alerts, configure it, etc...) How can I do that? or Which manual can help me? Exists... (2 Replies)
Discussion started by: yflores
2 Replies

9. UNIX for Dummies Questions & Answers

Solaris 10 question on syslog.conf file

Hi, I have a question on /etc/syslog.conf file in Solaris 10. Below is a line taken from /etc/syslog.conf file and I know that the last field (operator) is where the logs gets outputted but how do I find out what the output file name format is going to be and which directory it gets outputted... (1 Reply)
Discussion started by: stevefox
1 Replies

10. Solaris

Syslog-ng does not start Solaris 9

I have been installing syslog-ng on our Solaris 9 servers. All ov them are working except two which return the following error: # /etc/init.d/syslog start syslog-ng service starting. Error binding socket; addr='AF_INET(0.0.0.0:514)', error='Address already in use (125)' ... (6 Replies)
Discussion started by: takendal
6 Replies
Login or Register to Ask a Question