centos 系统出错邮件提醒---原创

当我们的主机服务器系统出现错误的时候,就自动给管理员发邮件提醒,这样不是很爽,其实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 -------------------------


本站原创,转载请注明出处

[本日志由 苦咖啡 于 2010-01-29 10:54 AM 编辑]
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: centos 系统 邮件 提醒
相关日志:
评论: 0 | 引用: 0 | 查看次数: 313
发表评论
昵 称:
密 码: 游客发言不需要密码.
邮 箱: 支持Gravatar头像.
网 址: 输入网址便于回访.
内 容:
验证码:
选 项:
虽然发表评论不用注册,但是为了保护您的发言权,建议您注册帐号.
字数限制 1000 字 | UBB代码 开启 | [img]标签 关闭