From 431afde0bfcbbccb4c7dad0cece3552384ba2862 Mon Sep 17 00:00:00 2001 From: makefu Date: Thu, 22 Nov 2012 18:26:33 +0100 Subject: retiolum: add find_super script finds potential supernodes based on the open tinc port. if a dedicated port is added, the script will fail to produce correct output but it gives a good overview of the current supernode constellation --- temper/collectd-temper.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 temper/collectd-temper.sh (limited to 'temper/collectd-temper.sh') 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 -- cgit v1.2.3