linux – 关闭abrt的电子邮件通知(自动错误报告工具)
发布时间:2020-12-13 17:16:05 所属栏目:Linux 来源:网络整理
导读:我正在配置CentOS 6.2并且已经看到了一些“[abrt]完整崩溃报告”电子邮件.我知道abrt对于创建崩溃转储非常有用,所以我不想禁用该服务,我只是想停止获取崩溃报告电子邮件. 我可能不得不在/etc/abrt/abrt.conf中添加一些配置文件.我似乎无法在搜索中找到任何内
我正在配置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停止) (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |