- 论坛徽章:
- 0
|
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 |
|