#/bin/sh


HOSTS="pinge.lan.defora.org rst.defora.org raq3.dmz.defora.org raq4.dmz.defora.org"

for i in $HOSTS; do
	mkdir -p "$i"
	rrdtool create "$i/uptime.rrd" --start "`date +%s`" \
		--step 5 \
		DS:uptime:GAUGE:10:0:U \
		RRA:AVERAGE:0.5:1:300 \
		RRA:AVERAGE:0.5:12:300 \
		RRA:AVERAGE:0.5:288:300 \
		RRA:AVERAGE:0.5:2016:300

	rrdtool create "$i/load.rrd" --start "`date +%s`" \
		--step 5 \
		DS:load1:GAUGE:10:0:U \
		DS:load5:GAUGE:10:0:U \
		DS:load15:GAUGE:10:0:U \
		RRA:AVERAGE:0.5:1:300 \
		RRA:AVERAGE:0.5:12:300 \
		RRA:AVERAGE:0.5:288:300 \
		RRA:AVERAGE:0.5:2016:300

	rrdtool create "$i/procs.rrd" --start "`date +%s`" \
		--step 5 \
		DS:procs:GAUGE:10:0:65536 \
		RRA:AVERAGE:0.5:1:300 \
		RRA:AVERAGE:0.5:12:300 \
		RRA:AVERAGE:0.5:288:300 \
		RRA:AVERAGE:0.5:2016:300
done

