免费注册 查看新帖 |

Chinaunix

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

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

论坛徽章:
0
1 [报告]
发表于 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP