centos 系统出错邮件提醒---原创
作者:苦咖啡 日期:2010-01-29
当我们的主机服务器系统出现错误的时候,就自动给管理员发邮件提醒,这样不是很爽,其实linux早想到了这一点,只需修改以下配置文件就可生效
本文编译环境
centos 5.3
[root@localhost voilet]# vi /etc/aliases
92 # trap decode to catch security attacks
93 decode: root
94
95 # Person who should get root's mail
96 #root: marc
97 root:voilet119@163.com 按住shift+g跳到文件末尾,加上你的邮箱即可
以下为本人测试所发邮件

################### Logwatch 7.3 (03/24/06) ####################
Processing Initiated: Fri Jan 29 18:08:16 2010
Date Range Processed: yesterday
( 2010-Jan-28 )
Period is day.
Detail Level of Output: 0
Type of Output: unformatted
Logfiles for Host: localhost.localdomain
##################################################################
--------------------- Selinux Audit Begin ------------------------
Number of audit daemon stops: 2
---------------------- Selinux Audit End -------------------------
--------------------- Automount Begin ------------------------
**Unmatched Entries**
lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master: 1 Time(s)
---------------------- Automount End -------------------------
本站原创,转载请注明出处
本文编译环境
centos 5.3
[root@localhost voilet]# vi /etc/aliases
复制内容到剪贴板
程序代码
程序代码92 # trap decode to catch security attacks
93 decode: root
94
95 # Person who should get root's mail
96 #root: marc
97 root:voilet119@163.com 按住shift+g跳到文件末尾,加上你的邮箱即可
以下为本人测试所发邮件
复制内容到剪贴板
程序代码
程序代码################### Logwatch 7.3 (03/24/06) ####################
Processing Initiated: Fri Jan 29 18:08:16 2010
Date Range Processed: yesterday
( 2010-Jan-28 )
Period is day.
Detail Level of Output: 0
Type of Output: unformatted
Logfiles for Host: localhost.localdomain
##################################################################
--------------------- Selinux Audit Begin ------------------------
Number of audit daemon stops: 2
---------------------- Selinux Audit End -------------------------
--------------------- Automount Begin ------------------------
**Unmatched Entries**
lookup_read_master: lookup(nisplus): couldn't locate nis+ table auto.master: 1 Time(s)
---------------------- Automount End -------------------------
本站原创,转载请注明出处
评论: 0 | 引用: 0 | 查看次数: 313
发表评论
上一篇:
下一篇: 


文章来自:
Tags:
相关日志:






