syslog-ngはsyslog-ng経由で出力されるログを監視することが可能です。
フィルタリング文字列を設定すればメールを飛ばしたり、シェルスクリプトを走らせたりできます。
今もいくつかのログ監視をしていますが、見直して追加したいと思います。
【既存ログ監視文字列】
・Out of Memory
・Treason uncloaked
・scheduling while atomic
・Aborting journal
・Remounting filesystem read-only
【追加ログ監視文字列】
・DMA timeout error
・dma timeout error
・ide: failed opcode was: unknown
・hde: DMA disabled
・e100: eth0: e100_watchdog: link down
・e100: eth0: e100_watchdog: link up
・Power failure.
・Power is back.
コメント