Linux/logwatchの設定

logwatchの設定

dokuwiki.fl8.jp転載済み

環境

  • CentOS 5.4

設定ファイル

インストール時は、/usr/share/logwatch/default.conf/logwatch.confが参照されるようになっている。

# locate logwatch.conf
/etc/logwatch/conf/logwatch.conf
/usr/share/logwatch/default.conf/logwatch.conf

設定変更

設定変更する事によって、root意外のアドレスにLogwatchメールを送信する事ができる。

# vi /usr/share/logwatch/default.conf/logwatch.conf
MailTo = root
   ↓
MailTo = hogehoge@hoge.net