#!/bin/bash

cd /var/www/htdocs/domains/rc6.org/subdomains/intranet.rc6.org/rrd/traffic

rrdtool create interfaces.rrd  --start `date +"%s"` \
  DS:eth0_in:COUNTER:600:0:289000 \
  DS:eth0_out:COUNTER:600:0:289000 \
  --step 300 \
  RRA:AVERAGE:0.5:1:2000 \
  RRA:AVERAGE:0.5:6:2000 \
  RRA:AVERAGE:0.5:24:2000 \
  RRA:AVERAGE:0.5:288:2000 \
  RRA:MAX:0.5:1:2000 \
  RRA:MAX:0.5:6:2000 \
  RRA:MAX:0.5:24:2000 \
  RRA:MAX:0.5:288:2000
