bz home

Светодиоды, температура и вентиляторы

скрипт для показа температуры и скорости вентиляторов /opt/bin/temp.sh

#!/bin/sh
echo "System temperature local "`cat /proc/wixsensor/tempLocal`
echo "System temperature sensor1 "`cat /proc/wixsensor/tempRemote1`
echo "System temperature sensor2 "`cat /proc/wixsensor/tempRemote2`
smartctl -A /dev/sda | grep Temperature_Celsius | awk '{print "HDD1 temperature: "$10}'
smartctl -A /dev/sdb | grep Temperature_Celsius | awk '{print "HDD2 temperature: "$10}'
smartctl -A /dev/sdc | grep Temperature_Celsius | awk '{print "HDD3 temperature: "$10}'
smartctl -A /dev/sdd | grep Temperature_Celsius | awk '{print "HDD4 temperature: "$10}'
echo "System fan: "`cat /proc/wixsensor/fan1`" rpm"

chmod a+x /opt/bin/temp.sh