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