Create a gist now

Instantly share code, notes, and snippets.

for host in 10.0.0.100 10.0.0.101 10.0.0.102 10.0.0.103; do
for sensor in DS18B20 DHT11; do
filename="$host-$sensor.rrd"
if [ ! -f $filename ]; then
rrdtool create $filename --step 15 \
--start 1415577600 \
DS:humidity:GAUGE:600:10:80 \
DS:temperature:GAUGE:600:5:40 \
RRA:AVERAGE:0.5:1:40320 \
RRA:AVERAGE:0.5:141:24 \
RRA:AVERAGE:0.5:3400:31 \
RRA:AVERAGE:0.5:23800:4 \
RRA:AVERAGE:0.5:95200:4
fi
done
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment