我正在配置CentOS 6.2并且已经看到了一些“[abrt]完整崩溃报告”电子邮件.我知道abrt对于创建崩溃转储非常有用,所以我不想禁用该服务,我只是想停止获取崩溃报告电子邮件.
我可能不得不在/etc/abrt/abrt.conf中添加一些配置文件.我似乎无法在搜索中找到任何内容.任何的想法?谢谢.
编辑:
这是我的abrt.conf,这很简单.
[root@myhost~]# cat /etc/abrt/abrt.conf # Enable this if you want abrtd to auto-unpack crashdump tarballs which appear # in this directory (for example,uploaded via ftp,scp etc). # Note: you must ensure that whatever directory you specify here exists # and is writable for abrtd. abrtd will not create it automatically. # #WatchCrashdumpArchiveDir = /var/spool/abrt-upload # Max size for crash storage [MiB] or 0 for unlimited # MaxCrashReportsSize = 1000 # Specify where you want to store coredumps and all files which are needed for # reporting. (default:/var/spool/abrt) # #DumpLocation = /var/spool/abrt
和/ etc / abrt列表:
[root@myhost~]# ls -la /etc/abrt total 32 drwxr-xr-x. 3 root root 4096 Apr 13 06:14 . drwxr-xr-x. 97 root root 12288 Apr 13 03:50 .. -rw-r--r--. 1 root root 527 Dec 13 22:50 abrt-action-save-package-data.conf -rw-r--r--. 1 root root 572 Dec 13 22:50 abrt.conf -rw-r--r--. 1 root root 175 Dec 13 22:50 gpg_keys drwxr-xr-x. 2 root root 4096 Apr 13 06:13 plugins [root@myhost~]# ls -la /etc/abrt/plugins/ total 12 drwxr-xr-x. 2 root root 4096 Apr 13 06:13 . drwxr-xr-x. 3 root root 4096 Apr 13 06:14 .. -rw-r--r--. 1 root root 278 Dec 13 22:50 CCpp.conf
实际上上面所有这些conf文件只有几行,并没有提及有关邮件,电子邮件或通知的任何内容.
UPDATE
因为我已经禁用了abrtd,所以我在/ var / log / messages中看到了这些:
myhost abrt: abrt daemon is not running. If it crashed,/proc/sys/kernel/core_pattern contains a stale value,consider resetting it to 'core'
proper停止abrt服务的方法是:
service abrt-ccpp stop chkconfig abrt-ccpp off
解决方法
我在运行RHEL 6.2时遇到同样的问题.似乎Mailx不是所使用的abrt版本中的单独模块.我发现最好的方法是通过将程序添加到/etc/abrt/abrt-action-save-package-data.conf来黑名单程序:
BlackList = program1,program2,program3
(其次是服务abrtd重启)
或者通过一起禁用abrt:
#chkconfig abrtd off
(其次是服务abrtd停止)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。