munin update

どうやらmuninがアップデータする際に勝手にプラグインにリンクを貼り付けたり仕様変更で

今までリソースを取得できなくなったりするみたいです。

下のログはデータがないよと出ています。

# vi munin-update.log

2015/04/10 04:10:10 [WARNING] 2 lines had errors while 1 lines were correct (66.67%) in data from ‘fetch mysql_innodb_log’ on localhost/127.0.0.1:4949
2015/04/10 04:10:10 [WARNING] Service mysql_innodb_log on localhost/127.0.0.1:4949 returned no data for label ib_log_written
2015/04/10 04:10:10 [WARNING] Service mysql_innodb_log on localhost/127.0.0.1:4949 returned no data for label ib_log_flush

muninがあるところがepelなんでここはちゃんとちゃんとアップデータするんですよね。

rpmforgeなんかはそのままなんですけどね。そんなわけで特にmysql関係を監視する場合は注意してください。

それとfail2banでセキュリティを監視をしてます。

今監視してるのはopenssh,vsftp,nginx,postfix,dovecotです。

正規表現にまっちしたものはアクセス禁止に設定。banされるのをにこにこしながらみています。

まぁ、fail2banがなくても突破できないセキュリティですけどね。

ルーチンワークはすべて自動化するのがいいでしょう。

そうすれば楽でいい。試しにsshのログイン5回失敗してみたら

Hi,

The IP 114.159.91.147 has just been banned by Fail2Ban after
5 attempts against ssh.

Here is more information about 114.159.91.147:

% [whois.apnic.net]
% Whois data copyright terms    http://www.apnic.net/db/dbcopyright.html

% Information related to ‘114.144.0.0 – 114.159.255.255’

inetnum:        114.144.0.0 – 114.159.255.255
netname:        OCN
descr:          NTT Communications Corporation
descr:          1-6 Uchisaiwai-cho 1-chome Chiyoda-ku, Tokyo 100-8019 Japan
country:        JP
admin-c:        JNIC1-AP
tech-c:         JNIC1-AP
status:         ALLOCATED PORTABLE
remarks:        Email address for spam or abuse complaints abuse@ocn.ad.jp
changed:        hm-changed@apnic.net 20080612
mnt-by:         MAINT-JPNIC
mnt-lower:      MAINT-JPNIC
source:         APNIC

role:           Japan Network Information Center
address:        Urbannet-Kanda Bldg 4F
address:        3-6-2 Uchi-Kanda
address:        Chiyoda-ku, Tokyo 101-0047,Japan
country:        JP
phone:          +81-3-5297-2311
fax-no:         +81-3-5297-2312
e-mail:         hostmaster@nic.ad.jp
admin-c:        JI13-AP
tech-c:         JE53-AP
nic-hdl:        JNIC1-AP
mnt-by:         MAINT-JPNIC
changed:        hm-changed@apnic.net 20041222
changed:        hm-changed@apnic.net 20050324
changed:        ip-apnic@nic.ad.jp 20051027
changed:        ip-apnic@nic.ad.jp 20120828
source:         APNIC

% Information related to ‘114.159.0.0 – 114.159.127.255’

inetnum:        114.159.0.0 – 114.159.127.255
netname:        OCN
descr:          Open Computer Network
country:        JP
admin-c:        AY1361JP
tech-c:         KK551JP
tech-c:         TT10660JP
tech-c:         TT15086JP
remarks:        This information has been partially mirrored by APNIC from
remarks:        JPNIC. To obtain more specific information, please use the
remarks:        JPNIC WHOIS Gateway at
remarks:        http://www.nic.ad.jp/en/db/whois/en-gateway.html or
remarks:        whois.nic.ad.jp for WHOIS client. (The WHOIS client
remarks:        defaults to Japanese output, use the /e switch for English
remarks:        output)
changed:        apnic-ftp@nic.ad.jp 20080715
source:         JPNIC

% This query was served by the APNIC Whois Service version 1.69.1-APNICv1r0 (UNDEFINED)

Regards,

Fail2Ban

これでメールが来てアクセス禁止になりましたとさw

おまけ、これはいいはなし

http://www.tanoshikoto.com/archives/43338904.html

Warning: touch(): Unable to create file /home/superweibucom/public_html/wp-content/plugins/ewww-image-optimizer/debug.log because Permission denied in /home/superweibucom/public_html/wp-content/plugins/ewww-image-optimizer/common.php on line 8730

Warning: filesize(): stat failed for /home/superweibucom/public_html/wp-content/plugins/ewww-image-optimizer/debug.log in /home/superweibucom/public_html/wp-content/plugins/ewww-image-optimizer/common.php on line 8737

Warning: file_put_contents(/home/superweibucom/public_html/wp-content/plugins/ewww-image-optimizer/debug.log): failed to open stream: Permission denied in /home/superweibucom/public_html/wp-content/plugins/ewww-image-optimizer/common.php on line 8739