CrudVision - Lisa Seelye

April 12, 2008

Graphing hard disk temperatures with rrdtool and Ruby

Filed under: graphs, linux, monitoring, rrdtool, ruby — Lisa Seelye @ 2:27 pm

Since I got to North America I have wanted to put my system under better monitoring. It’s got four active hard disks (and a fifth powered, not active) hard disk in an IcyDock MB-455SPF 5-Bay Internal SATA Drive Enclosure (Manufacturer site, icydock.com, seems offline so link to where I bought it!) with the four active disks plugged into a HighPoint RocketRaid 1640 SATA controller.

I can easily use S.M.A.R.T. to monitor the temperature and the hddtemp Linux utility to get the temperatures of the disks.

It’s easy to use a crontask to poll the disks and to stuff the temperatures into an rrdtool database. I drew much inspiration from Martin Pot’s Perl script to do the same thing but implemented my own in a Ruby Rake task using the woefully undocumented RubyRRDtool gem and a custom hddtemp wrapper class to get the temperatures.

The similarities between my Rake task and Martin’s RRDtool-fu is obvious, however I wanted an hour graph too and so I added it in on line 17.

My next task is to combine the temperatures (lines) of all four disks into a single graph to get a feel for the overall temperature of the disks on one image.

The graphs can be seen at my personal website.

April 11, 2008

Back in North America

Filed under: Uncategorized — Lisa Seelye @ 7:02 pm

I’ve been back in North America for about a week and a half so far. Spent a week with my parents and am visiting a friend for a while.

I’m settling into life on this side of the pond again and it’s nice to be round people who sound like me (makes it easier for speechreading). I haven’t been working on Reve or my other Rails project (evedb) for a while. Been working on a smaller private app here and there when not doing my real work.

Powered by WordPress