Monitor megaraid status in ESXi



1) Download LSI vmware monitoring utility
http://www.lsi.com/DistributionSystem/AssetDocument/8.00.23_Vmware_CLI.zip (no more available, see attachment below...)

2) Copy MegaCli utility via scp to ESXi (you need to enable root access before)

3) Set up Cron job every hour
vi /var/spool/cron/crontabs/root
add line:
04 * * * * /home/raidmon/MegaCli -LdPdInfo -aALL -NoLog > /home/raidmon/raid.status

4) restart cron job
/bin/kill $(cat /var/run/crond.pid)
/bin/busybox crond

5) make the changes persistent after reboot
vi /etc/rc.local
add lines:
/bin/kill $(cat /var/run/crond.pid)
/bin/echo '04 * * * * /home/raidmon/MegaCli -LdPdInfo -aALL -NoLog > /home/raidmon/raid.status' >> /var/spool/cron/crontabs/root
/bin/busybox crond
save and run script
auto-backup.sh
to make changes to /etc/rc.local persistent...

6) As a last step you can setup public key authentication and download raid.status to remote system regularly
- see Enabling public key authentication on VMWare ESXi 4 - non root user

Attached files: 8.00.23_Vmware_CLI.zip

Last update:
2011-02-11 13:30
Author:
Daniel
Revision:
1.9
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.