1
0
mirror of https://github.com/cmur2/munin-pcsensor.git synced 2025-06-29 00:30:28 +02:00

Compensate periodic USB disconnects of TEMPer

This commit is contained in:
cn
2014-12-30 18:01:19 +01:00
parent 71fd2c6c64
commit abc7c11732
2 changed files with 11 additions and 2 deletions

View File

@ -18,6 +18,10 @@ if [ "${1}" = "config" ]; then
echo "temp.label temperatue"
echo "temp.type GAUGE"
else
echo -n "temp.value "
${PCSENSOR} -cm | head -n1
TEMP=`${PCSENSOR} -cm`
if [[ $? != 0 ]]; then
sleep 1
TEMP=`${PCSENSOR} -cm`
fi
echo "temp.value $TEMP"
fi