| View previous topic :: View next topic |
| Author |
Message |
brra Voice
Joined: 08 Oct 2005 Posts: 4
|
Posted: Sat Nov 24, 2007 8:41 am Post subject: Temperatur check on hard drives |
|
|
Hi
I have searched after a script for some days now but cant find it.
I am looking for a eggdrop script that checks temperaturs on hardrives (linux systems).
Multiple harddrives not only one drive.
I think hddtemp would be the best application to use.
output from hddtemp:
hddtemp /dev/hda
/dev/hda: WDC WD800JB-00CRA1: drive supported, but it doesn't have a temperature sensor.
ddtemp /dev/hde
/dev/hde: Maxtor 6Y120L0: 30 C
hddtemp /dev/sdc
/dev/sdc: Maxtor 6L300S0: 42 C
hddtemp /dev/hdb
/dev/hdb: WDC WD2000BB-00GUA0: 44 C
The best would be if ther was a setting for alert temp for each harddrive (as use see diffrent hds have diffrent max temp). |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Sat Nov 24, 2007 12:15 pm Post subject: |
|
|
| Code: | set drives {"hda" "hde" "hdb" "sdc"}
bind time * * * * * hd:check
proc hd:check {m h dd mm yy} {
foreach drive $::drives {
set tmp [exec "hddtemp /dev$drive"]
}
} |
Then, you can do what you want after the set tmp line...
P.S.: I'm not really sure of my exec command, neither the set, but this is juste the idea  _________________ https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community. |
|
| Back to top |
|
 |
brra Voice
Joined: 08 Oct 2005 Posts: 4
|
Posted: Sat Nov 24, 2007 12:56 pm Post subject: |
|
|
Tanx crazycat
The only thing that is missing is a alert if temp is over 60 on one of the disk.
then is should msg out the disk name. something like this.
Alert hd temp on hdc is now 65 C. Cool it down.
or what ever  |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
|