Monitor megaraid status in ESXi

1) Download LSI vmware monitoring utility (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/
/bin/busybox crond

5) make the changes persistent after reboot
vi /etc/rc.local
add lines:
/bin/kill $(cat /var/run/
/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
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:

Last update:
2011-02-11 13:30
Average rating:0 (0 Votes)

You can comment this FAQ

Chuck Norris has counted to infinity. Twice.