免费注册 查看新帖 |

Chinaunix

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

messages中不停地出告警记录,如何将它屏蔽掉? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2003-05-29 15:38 |只看该作者 |倒序浏览
/var/adm/messages文件中不停出下列信息,导致/tmp目录满
syslogd: Bad terminal owner; root owns '/dev/console' but utmp says LOGIN


哪位大侠帮我解决呀~!!! 谢谢

论坛徽章:
0
2 [报告]
发表于 2003-05-29 15:42 |只看该作者

messages中不停地出告警记录,如何将它屏蔽掉?

查一下sa-288,那里有详细的说明。没有这本书的话,到蜘蛛的网站上down一本。 :)

论坛徽章:
0
3 [报告]
发表于 2003-05-29 16:09 |只看该作者

messages中不停地出告警记录,如何将它屏蔽掉?

查过了的,后来发现有人修改了syslog.conf文件,如下给各位大虾点评:
ifdef(`LOGHOST', ,
user.err                                        /dev/console
user.err                                        /var/adm/messages
user.alert                                        `root, operator'
user.emerg                                        *
)
ISDN.debug                                        /dev/console
ISDN.err                                        /dev/console
PPP.debug                                        /dev/console
PPP.err                                                /dev/console

#
local7.debug        /var/adm/log/logrouter

#
local3.debug        /var/adm/messages

论坛徽章:
0
4 [报告]
发表于 2003-05-29 16:50 |只看该作者

messages中不停地出告警记录,如何将它屏蔽掉?

不行啊,修改了syslog.conf没用,有没有其他方法??
sa288里找不到阿~~

论坛徽章:
0
5 [报告]
发表于 2003-05-29 17:21 |只看该作者

messages中不停地出告警记录,如何将它屏蔽掉?

急,顶,在线等

论坛徽章:
0
6 [报告]
发表于 2003-05-29 17:52 |只看该作者

messages中不停地出告警记录,如何将它屏蔽掉?

原帖由 "JuGar" 发表:
不行啊,修改了syslog.conf没用,有没有其他方法??
sa288里找不到阿~~
   
重启了syslogd没有啊!

论坛徽章:
0
7 [报告]
发表于 2003-05-29 18:06 |只看该作者

messages中不停地出告警记录,如何将它屏蔽掉?

重启了呀~!

论坛徽章:
0
8 [报告]
发表于 2003-05-29 21:59 |只看该作者

messages中不停地出告警记录,如何将它屏蔽掉?

first backup ur /var/adm/messages file to other disk slice.

then     modify the /etc/syslog.conf  ,the file contents like the following:

*.err;kern.notice;auth.notice                   /dev/console
*.err;kern.debug;daemon.notice;                 /var/adm/messages
*.warning                                       /var/adm/warning
*.crit                                          /var/adm/crit

*.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/console
user.err                                        /var/adm/messages
user.alert                                      `root, operator'
user.emerg                                      *
)





then  type   the following command in "#" prompt
/etc/init.d/syslog stop
/etc/init.d/syslog start


try it . good luck
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP