Stealing from the (Steel)Vine
First some background: The Asus P5W-DH Deluxe includes a Silicon Image SiI4723 hardware RAID controller. Yes, that's hardware RAID - not fakeraid. And since the controller presents the OS with just one logical disk (as it should), Silicon Image provide a utility called SteelVine Configuration Manager (SVCM) that can be used to view the current state of the controller and attached disks / arrays.
Now, since we use an Asus P5W-DH Deluxe for a server at work, it would be good to be able to get email (or SMS) notifications if the array becomes degraded. The obvious place to start is with the SVCM.
The bad news: SVCM is a graphical application - and scraping status information from the SVCM GUI is not that easy :(
The good news: SVCM has been implemented with a server / client architecture, using TCP to communicate between the two. So, it should be possible to create our own clone of the SVCM client. It turns out that SVCM uses a simple XML protocol, and that the server is stateless (so far as I can tell), so that should make getting the info we want pretty easy. However, there was one little hurdle that needed to be overcome first.