diff options
author | euer <root@euer.krebsco.de> | 2012-12-23 23:05:23 +0100 |
---|---|---|
committer | euer <root@euer.krebsco.de> | 2012-12-23 23:05:23 +0100 |
commit | 84b10fc1b458e8e9cc6f7a5146a8ebd665e8ec78 (patch) | |
tree | 28678a81978e68293698ff216530e7eef7755ce8 /god/temper/collectd-temper.sh | |
parent | 6bf071ed7ae2020e061bb125bc24433286e240bc (diff) |
//tts -> //util/tts
Diffstat (limited to 'god/temper/collectd-temper.sh')
-rwxr-xr-x | god/temper/collectd-temper.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/god/temper/collectd-temper.sh b/god/temper/collectd-temper.sh new file mode 100755 index 00000000..f66e9acc --- /dev/null +++ b/god/temper/collectd-temper.sh @@ -0,0 +1,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 |