2015年2月10日 星期二

centos7 logwatch安裝

centos7 安裝 logwatch 

yum install logwatch

cat /usr/share/logwatch/default.conf/logwatch.conf >> /etc/logwatch/conf/logwatch.conf

vi /etc/logwatch/conf/logwatch.conf

  TmpDir = /tmp
  Output = mail
  Format = text
  MailTo = my@mail
  MailFrom = Logwatch
  Range = Yesterday
  Detail = High
  Service = All
  mailer = "/usr/sbin/sendmail -t"

參考資料來源

http://qiita.com/tukiyo3/items/117b8c7bfcc034ecd3cc

https://www.jdbc.tokyo/2014/10/centos7-logwatch-install/

沒有留言:

張貼留言