summaryrefslogtreecommitdiffstats
path: root/.graveyard/temper/collectd-temper.sh
blob: f66e9acc32a538ffe00432cea261f7542854c6ea (plain)
1
2
3
4
5
6
7
8
9
HOSTNAME="${COLLECTD_HOSTNAME:-localhost}"
INTERVAL="${COLLECTD_INTERVAL:-30}"
TEMPERNAME="${TEMPERNAME:-external}"
TEMPERBIN="${TEMPERBIN:-/krebs/temper/temper}"
#while sleep "$INTERVAL"; do
  VALUE=`$TEMPERBIN`
  echo "PUTVAL \"$HOSTNAME/sensors-temper/temperature-$TEMPERNAME\" N:$VALUE" #interval=$INTERVAL
  logger "PUTVAL \"$HOSTNAME/sensors-temper/temperature-$TEMPERNAME\" N:$VALUE" #interval=$INTERVAL
#done