From: Florian Forster Date: Mon, 5 Jul 2010 07:51:15 +0000 (+0200) Subject: contrib/exec-smartctl: Print the "PUTVAL" command. X-Git-Tag: collectd-5.0.0-beta0~92 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=065e7a1b6deb20e0bee8e7a5984d08ed2f4ef829;p=collectd.git contrib/exec-smartctl: Print the "PUTVAL" command. --- diff --git a/contrib/exec-smartctl b/contrib/exec-smartctl index d4698160..195dc3f2 100755 --- a/contrib/exec-smartctl +++ b/contrib/exec-smartctl @@ -28,21 +28,21 @@ do 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