Hello,
Hi, I've written a quick addon to collect the temperature of each HDD in my system, and report the data back to Xymon like this:
Fri Aug 24 02:33:11 EST 2012 Temp GOOD (27 degrees)sda : 27 sdb : 27
Also, hobbit is putting this data in to an RRD file called temp.rrd:
........
I think the problem is that not every machine will have the same number of disks, nor will they have the same type of disk. Can anyone suggest how to re-write this so that it will work?
An approach is not to monitor the temperatures of the individual disks, but to monitor the temperature of the group of disks on a single host. The rationale of this approach is that normally one is interested in the range of temperature values, combined with an alert if at least one temperature is out of range.
I've used this approach to monitor 'the temperature' of a switch. The number of temperature sensors per switch varies from 1 to 29 (!). The returned value is the minimum, average and maximum temperature, thus always three values per switch.
HTH, Wim Nelis.
The NLR disclaimer is valid for NLR e-mail messages.
This message is only meant for providing information. Nothing in this e-mail message amounts to a contractual or legal commitment on the part of the sender. This message may contain information that is not intended for you. If you are not the addressee or if this message was sent to you by mistake, you are requested to inform the sender and delete the message. Sender accepts no liability for damage of any kind resulting from the risks inherent in the electronic transmission of messages.