Chinaunix

标题: messages中不停地出告警记录,如何将它屏蔽掉? [打印本页]

作者: JuGar    时间: 2003-05-29 15:38
标题: messages中不停地出告警记录,如何将它屏蔽掉?
/var/adm/messages文件中不停出下列信息,导致/tmp目录满\r\nsyslogd: Bad terminal owner; root owns \'/dev/console\' but utmp says LOGIN\r\n\r\n\r\n哪位大侠帮我解决呀~!!! 谢谢
作者: llc107    时间: 2003-05-29 15:42
标题: messages中不停地出告警记录,如何将它屏蔽掉?
查一下sa-288,那里有详细的说明。没有这本书的话,到蜘蛛的网站上down一本。 :)
作者: JuGar    时间: 2003-05-29 16:09
标题: messages中不停地出告警记录,如何将它屏蔽掉?
查过了的,后来发现有人修改了syslog.conf文件,如下给各位大虾点评: \r\nifdef(`LOGHOST\', ,\r\nuser.err                                        /dev/console\r\nuser.err                                        /var/adm/messages\r\nuser.alert                                        `root, operator\'\r\nuser.emerg                                        *\r\n)\r\nISDN.debug                                        /dev/console\r\nISDN.err                                        /dev/console\r\nPPP.debug                                        /dev/console\r\nPPP.err                                                /dev/console\r\n\r\n#\r\nlocal7.debug        /var/adm/log/logrouter\r\n\r\n#\r\nlocal3.debug        /var/adm/messages
作者: JuGar    时间: 2003-05-29 16:50
标题: messages中不停地出告警记录,如何将它屏蔽掉?
不行啊,修改了syslog.conf没用,有没有其他方法??\r\nsa288里找不到阿~~
作者: zhangr    时间: 2003-05-29 17:52
标题: messages中不停地出告警记录,如何将它屏蔽掉?
原帖由 \"JuGar\" 发表:\n不行啊,修改了syslog.conf没用,有没有其他方法??\r\nsa288里找不到阿~~
    \r\n重启了syslogd没有啊!
作者: gztommyt    时间: 2003-05-29 21:59
标题: messages中不停地出告警记录,如何将它屏蔽掉?
first backup ur /var/adm/messages file to other disk slice.\r\n\r\nthen     modify the /etc/syslog.conf  ,the file contents like the following:\r\n\r\n*.err;kern.notice;auth.notice                   /dev/console\r\n*.err;kern.debug;daemon.notice;                 /var/adm/messages\r\n*.warning                                       /var/adm/warning\r\n*.crit                                          /var/adm/crit\r\n\r\n*.alert;kern.err;daemon.err                     operator\r\n*.alert                                         root\r\n\r\n*.emerg                                         *\r\n\r\n# if a non-loghost machine chooses to have authentication messages\r\n# sent to the loghost machine, un-comment out the following line:\r\n#auth.notice                    ifdef(`LOGHOST\', /var/log/authlog, @loghost)\r\n\r\nmail.debug                      ifdef(`LOGHOST\', /var/log/syslog, @loghost)\r\n\r\n#\r\n# non-loghost machines will use the following lines to cause \"user\"\r\n# log messages to be logged locally.\r\n#\r\nifdef(`LOGHOST\', ,\r\nuser.err                                        /dev/console\r\nuser.err                                        /var/adm/messages\r\nuser.alert                                      `root, operator\'\r\nuser.emerg                                      *\r\n)\r\n\r\n\r\n\r\n\r\n\r\nthen  type   the following command in \"#\" prompt\r\n/etc/init.d/syslog stop \r\n/etc/init.d/syslog start\r\n\r\n\r\ntry it . good luck




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2