summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0a5310d)
raw | patch | inline | side by side (parent: 0a5310d)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 5 Jul 2010 07:51:15 +0000 (09:51 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 5 Jul 2010 07:51:15 +0000 (09:51 +0200) |
contrib/exec-smartctl | patch | blob | history |
diff --git a/contrib/exec-smartctl b/contrib/exec-smartctl
index d469816037946d34ae2daf7df5f36b91da0bfb11..195dc3f2c84afd5fd412b4934049b5b6a8a23f14 100755 (executable)
--- a/contrib/exec-smartctl
+++ b/contrib/exec-smartctl
then
TEMP="U"
fi
- echo "$HOST/exec-smart/temperature-3ware_0 interval=$INTERVAL N:$TEMP"
+ echo "PUTVAL $HOST/exec-smart/temperature-3ware_0 interval=$INTERVAL N:$TEMP"
TEMP=$((sudo smartctl -d 3ware,1 -A /dev/twe0 | grep Temperature_Celsius | awk '{ print $10; }') 2>/dev/null);
if [ $? -ne 0 ]
then
TEMP="U"
fi
- echo "$HOST/exec-smart/temperature-3ware_1 interval=$INTERVAL N:$TEMP"
+ echo "PUTVAL $HOST/exec-smart/temperature-3ware_1 interval=$INTERVAL N:$TEMP"
TEMP=$((sudo smartctl -d ata -A /dev/sda | grep Temperature_Celsius | awk '{ print $10; }') 2>/dev/null);
if [ $? -ne 0 ]
then
TEMP="U"
fi
- echo "$HOST/exec-smart/temperature-sata_0 interval=$INTERVAL N:$TEMP"
+ echo "PUTVAL $HOST/exec-smart/temperature-sata_0 interval=$INTERVAL N:$TEMP"
sleep $INTERVAL
done