MegaRAIDコントローラを使っているのを確認
# lspci -nn | grep RAID 02:00.0 RAID bus controller [0104]: LSI Logic / Symbios Logic MegaRAID SAS 1078 [1000:0060] (rev 04)
(参考) http://ironiccog.blogspot.jp/2015/08/checking-raid-level-with-megacli-on.html
インストール
http://hwraid.le-vert.net/wiki/DebianPackages
を導入する。
例 debian 8 jessie
# vi /etc/apt/sources.list.d/hwraid.list deb http://hwraid.le-vert.net/debian jessie main # wget -O - https://hwraid.le-vert.net/debian/hwraid.le-vert.net.gpg.key | sudo apt-key add - # apt-get update # apt-get install megacli
例 Ubuntu 14.04 LTS(Trusty Tahr)
# vi /etc/apt/sources.list.d/hwraid.list deb http://hwraid.le-vert.net/ubuntu trusty main ...
nagios nrpe
# apt-get install nagios-nrpe-server # wget https://github.com/glensc/nagios-plugin-check_raid/releases/download/4.0.8/check_raid.pl # chmod +x check_raid.pl # mv check_raid.pl /usr/lib/nagios/plugins/ # /usr/lib/nagios/plugins/check_raid.pl -S # sudo -u nagios /usr/lib/nagios/plugins/check_raid.pl --plugin megacli # vi /etc/nagios/nrpe_local.cfg command[check_raid]=/usr/lib/nagios/plugins/check_raid.pl --plugin megacli # /etc/init.d/nagios-nrpe-server restart