Page 1 of 1

Status..

Posted: 2009.07.30. 15:43
by TheEvilDot
Just getting into linux scripting etc and I was wondering if you already recieved some scripts?
(running into a heap of problems figuring out the values in a script)

If not a nice feature would be to give a threshhold value on Health while running HDSentinel
eg.

./HDSentinel -th 50

This would mean that if healh would be below 50% Status would be set to Failed

Eg..

./HDSentinel -th 50

HDD Device 7: /dev/sdh
HDD Model ID : Hitachi HDT721010SLA360
HDD Serial No: STFXX4MH0XXHB
HDD Revision : ST6OXXX
HDD Size : 953870 MB
Interface : S-ATA II
Temperature : 38 °C
Health : 49 %
Performance : 100 %
Power on time: 1 days, 1 hours
Est. lifetime: more than 1000 days
Threshold Status : Failed

so if we grep for failed we could do something with it..... send mail etc

if possible <75% would give a Warning and >75 would give an OK?? not sure at what % failure becomes imminent

Hope this made a little sense.

Re: Status..

Posted: 2009.07.31. 12:20
by hdsentinel
Thanks so much for the idea!
No, until now I received no scripts for Linux version, maybe because of the holiday season :D

Yes I agree: this can be used to quickly check the status of the drives.
Maybe there can be two different modes:

1) by using this switch, the software would display all disks with the appropriate status (failed, OK)
2) by using an other switch (for example -hth ) only failed drives (under the threshold) would be displayed

Maybe it would be nice to have other threshold filter for temperature also ;)
I'll think about it and will add such options to the next version.
TheEvilDot wrote: If not a nice feature would be to give a threshhold value on Health while running HDSentinel
eg.

./HDSentinel -th 50

Re: Status..

Posted: 2009.07.31. 12:44
by TheEvilDot
Sweet couldn't ask for more.. (well.... <g>)
Haven't thought about the temperature ... but this makes a lot of sense.

Some more idea's

If we detemine a failure condition run a script. :)
This would even make it more easy for users to run it in a cron job.

if I figured out how to send mail / email via a console script I'll post it here.

ty.

Re: Status..

Posted: 2012.10.09. 05:34
by firionicable
It is best that you are always in a cool area so you won't get a lot of temperature problems.