empty /var/adm/messages

  • Follow


Hi:

I am writting because my /var/adm/messages it is allways empty. 
Apparently everything it is correct configured.

This is my /et/syslog.conf

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                                      *
)
*.notice                @server_IP


I have checked the syslogd and it is up


Thanks
0
Reply none 6/14/2006 8:17:10 AM

none wrote:
> Hi:
> 
> I am writting because my /var/adm/messages it is allways empty. 
> Apparently everything it is correct configured.
> 
> This is my /et/syslog.conf
> 
> 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                                      *
> )
> *.notice                @server_IP
> 
> 
> I have checked the syslogd and it is up
> 
> 

Do you have loghost defined for your localhost? I.e. does
getent hosts loghost
resolve to your host?

Do a test:

logger -p user.err test

Does "test" appear in /var/adm/messages?
If not, does it appear in /var/adm/messages.0?
If not, have you stopped/started syslogd?
If yes, do you have HP Openview installed? Some of them have the bug to 
repeatedly move /var/adm/messages to /var/adm/messages.0.

-- 
Michael Tosch @ hp : com
0
Reply Michael 6/14/2006 2:12:02 PM


1 Replies
513 Views

(page loaded in 0.079 seconds)

Similiar Articles:













7/24/2012 5:33:16 AM


Reply: