免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1567 | 回复: 4
打印 上一主题 下一主题

我的系统日志程序不工作,请各位大哥帮帮忙!!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-11-01 11:03 |只看该作者 |倒序浏览
小弟是一新手,
最近新安装的solaris 10 for X86, 系统启动后运行/usr/sbin/syslogd
之后运行ps -ef | grep syslogd 显示如下:
root  2045  1592   0 16:31:30 pts/5       0:00 grep syslogd
root  2042     1      0 16:31:28  ?             0:00 /usr/sbin/syslogd
这是不是表明syslogd已经启动了?
如果syslogd已经启动了,系统就应该向/var/adm/messages文件中记日志了吧,可是
/var/adm/messages中始终是空的,没有一条记录。
我的/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                                      *
)
问题不知道出在哪里,请各位高手帮忙,小弟不盛感激!!!

论坛徽章:
0
2 [报告]
发表于 2006-11-01 13:01 |只看该作者
cat /etc/hosts 贴出来

论坛徽章:
0
3 [报告]
发表于 2006-11-01 14:02 |只看该作者
#
# Internet host table
#
127.0.0.1       localhost

[ 本帖最后由 e2agle 于 2006-11-1 14:03 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-11-01 15:44 |只看该作者
127.0.0.1   localhost loghost

论坛徽章:
0
5 [报告]
发表于 2006-11-08 13:33 |只看该作者
说明你的系统没错误 哈哈
*.err;kern.debug;daemon.notice;mail.crit        /var/adm/messages
这条说明记录*.err;kern.debug;daemon.notice;mail.crit
你可以自己验证:
# logger -p daemon.notice xxxxxx
然后看/var/adm/messages是否有xxxxxx这条记录出现,应该没问题,因为会记录daemon.notice消息
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP