summaryrefslogtreecommitdiffstats
path: root/.graveyard/temper/collectd-temper.sh
diff options
context:
space:
mode:
Diffstat (limited to '.graveyard/temper/collectd-temper.sh')
-rwxr-xr-x.graveyard/temper/collectd-temper.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.graveyard/temper/collectd-temper.sh b/.graveyard/temper/collectd-temper.sh
new file mode 100755
index 00000000..f66e9acc
--- /dev/null
+++ b/.graveyard/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