This concerns a server that runs ESXi (v. 4.x or 5.x) installed on drives that are configured into a raid10 using an LSI 3ware 97050 raid controller.
I would like to know if there is a way to monitor the LSI 3ware series of controllers, in particular the 9750, through ESXi. And to hopefully also run the monitoring daemon LSI provides.
I know you can set up a cronjob to execute tw_cli through ssh on the ESXi server. However that's not really ideal.
I am not using vcenter by the way. It would be nice to have more than just monitoring working, since the 3ware software has a very useful web client, besides tw_cli.
vCenter has some pre-built alerts that will catch hardware failure on (most) hardware. This will show up as an alert in the vSphere Client, and can also send out a trap to a listening host.
It looks like the only way to monitor this 3ware raid controller through ESXi is to enable ssh access on the ESXi server, install tw_cli on the datastore (not in places such as /opt because it won't survive a reboot) and set up a daily or weekly cron job to run something like:
And have the result emailed to you. Which cron should do automatically. You can enhance it with grep and whatever else works to only email you in case of an alarm. Make sure to copy your ssh key so you don't need to provide your password. You will have to repeat this after the ESXi server reboots.
This has the added benefit you can also manage the raid using the tw_cli tool through an ssh session.
ssh can be enabled on ESXi 5.0 rather easily through the vsphere client:
Or using the console:
To enable ssh on ESXi 4.1 try this:
And on ESXi 4.0 this will enable ssh:
Since for 4.0 it's a little bit more hassle I laid out the basic upshot: