############################################################
・ログウォッチのバージョンアップ
yum update logwatch
………
Package(s) logwatch available, but not installed.
No Packages marked for Update
更新が終了したら、インストール(インストール済みの人は読み飛ばしてください。)
yum install logwatch
The program yum-complete-transaction is found in the yum-utils package.
--> Running transaction check
---> Package logwatch.noarch 0:7.3-9.el5_6 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
Total download size: 244 k
Is this ok [y/N]:
途中で聞かられた「y」を入力。処理が再開します。
Installed:
logwatch.noarch 0:7.3-9.el5_6
Complete!
・正しくインストールできたか動作確認用に手動でメールを送ってみる
logwatch –mailto hogehoge@example.com
############################################################
・ログウォッチの設定
「yum」でインストールした場合、
設定ファイルは、「/usr/share/logwatch/default.conf/logwatch.conf」にあると思います。
書式は「Name=Value」形式になってます。
・設定ファイルを編集します
vim /usr/share/logwatch/default.conf/logwatch.conf
#MailTo = root
MailTo = example@example.com←自分のメールアドレス
MailFrom = logwatch@example.com←Fromに設定するメールアドレス
ファイルを保存し、正しく設定できたか動作確認用に手動でメールを送ってみる
/usr/sbin/logwatch
無事送付できればOK
・CRONでの送付が出来るか確認
/etc/cron.daily/0logwatch
無事送付できれば終了
The shape of the system that overflows in the world is equal to the "knowhows" that parties concerned of each industry have.
People who create the system need high-ranking "knowhows" further.
I want to become ..high-ranking "knowhows".. handlers' help.
登録:
コメントの投稿 (Atom)
-
using Excel = Microsoft.Office.Interop.Excel; /// Excelオブジェクト Excel.Application oXls; /// ワークブックコレクション Excel.Workbook oWBook = this.oXl...
-
リンクでgoogleカレンダーへ予定を追加すした、忘れそうなのでメモ ○Javascriptでの記述例 var text = "買い物"; var details = "新春バーゲンセール"; var location= ...
-
Androidのアプリ開発を行うために行った開発環境の構築手順についてメモします。 作業時点(2012.04.24)での最新と思われるもので構築しました。 ・環境 OS: Windows7 64bit ・入れたもの JDK Standard Edition ...
0 件のコメント:
コメントを投稿