summaryrefslogtreecommitdiffstats
path: root/.graveyard/temper/collectd-temper.sh
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-11-19 08:41:07 +0100
committermakefu <github@syntax-fehler.de>2013-11-19 08:41:22 +0100
commit022d115bdae70e588b4639da5b3037845fab9fe6 (patch)
tree7addfc032eee3ddb6253a0a5eac8284baef69c5d /.graveyard/temper/collectd-temper.sh
parentb2bdf4e508bd6c58445de4ad302c656a8cf2e983 (diff)
temper -> graveyard
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