summaryrefslogtreecommitdiffstats
path: root/abs/core/xymon/xymon-hddtemp.sh
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/xymon/xymon-hddtemp.sh')
-rwxr-xr-xabs/core/xymon/xymon-hddtemp.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/abs/core/xymon/xymon-hddtemp.sh b/abs/core/xymon/xymon-hddtemp.sh
index 6961919..6c0f109 100755
--- a/abs/core/xymon/xymon-hddtemp.sh
+++ b/abs/core/xymon/xymon-hddtemp.sh
@@ -6,7 +6,7 @@ ls /dev/disk/by-id/* | grep -ve '-part' -ve '/wwn-' |
while read DISK
do
DISKDEV=`ls -l $DISK | awk -F/ '{print $NF}'`
- DISKNAME=`echo $DISK | awk -F/ '{print $5}'`
+ DISKNAME=`echo $DISK | awk -F/ '{print $5}' | tr ":" "_"`
#check if disk is removable
RM=0
@@ -23,10 +23,10 @@ do
then
TEMP="- No Temp Sensor Found"
COLOR="4&clear"
- elif test $hddtemp -gt 50
+ elif test $hddtemp -gt 55
then
COLOR="1&red"
- elif test $hddtemp -ge 45
+ elif test $hddtemp -ge 50
then
COLOR="2&yellow"
else