インストール
Broadcom サポートサイトからMegaCli ユーティリティをダウンロードします。
http://docs.avagotech.com/docs/12351587
$ unzip 8-07-14_MegaCLI.zip $ sudo yum install Linux/MegaCli-8.07.14-1.noarch.rpm
使用方法
RAID状態を確認
/opt/MegaRAID/MegaCli/MegaCli64 -LDInfo -Lall -aALL /opt/MegaRAID/MegaCli/MegaCli64 -PDList -aALL
nrpe
epel (centos6)
sudo yum install nrpe sudo systemctl start nrpe sudo systemctl enable nrpe (centos6) sudo service nrpe start sudo chkconfig nrpe on curl -OL https://github.com/glensc/nagios-plugin-check_raid/releases/download/4.0.8/check_raid.pl chmod +x check_raid.pl sudo chown root:root check_raid.pl sudo mv check_raid.pl /usr/lib64/nagios/plugins/ sudo /usr/lib64/nagios/plugins/check_raid.pl -S sudo vi /etc/sudoers.d/check_raid (nrpeを追加) User_Alias CHECK_RAID=nagios, icinga, nrpe (動作確認) sudo -u nagios /usr/lib64/nagios/plugins/check_raid.pl --plugin megacli sudo vi /etc/nagios/nrpe.cfg (check_raidを追加) command[check_raid]=/usr/lib64/nagios/plugins/check_raid.pl --plugin megacli sudo systemctl restart nrpe (centos6) sudo service nrpe restart