fail2ban 警告: apache2 が無効な Web サイトで無効なコマンドです

fail2ban 警告: apache2 が無効な Web サイトで無効なコマンドです

fail2ban を実行している Debian Squeezy Web サーバーで問題が発生しています。時々、fail2ban が動作を停止し、access.log が見つからないというエラーが発生します。

fail2ban.comm   : WARNING Invalid command: ['set', 'http-get-dos', 'addlogpath', '/var/www/foo.bar/log/access.log']

再度禁止を開始するには、問題のあるファイルを修正し、fail2ban を再起動する必要があります。

なにか提案を?

[編集] logrotate.conf を追加しました

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp, or btmp -- we'll rotate them here
/var/log/wtmp {
    missingok
    monthly
    create 0664 root utmp
    rotate 1
}

/var/log/btmp {
    missingok
    monthly
    create 0660 root utmp
    rotate 1
}

# system-specific logs may be configured here

関連情報