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