#!/bin/bash START=$(head -n 1 netstat.dat.txt | cut -d: -f1) #START=$((START-1)) echo "Starting at $START" # DS:ds-name:GAUGE | COUNTER | DERIVE | ABSOLUTE:heartbeat:min:max # RRA:AVERAGE | MIN | MAX | LAST:xff:steps:rows # sample data line: # 1259647195:547730:32286001:2049153:136328:32171855:34944292:2957189:2169141:1725966:7210:47539:35029 /opt/local/bin/rrdtool create netstats.rrd \ --step 30 \ --start $START \ DS:conn_accepts:COUNTER:60:U:U \ DS:conn_reqs:COUNTER:60:U:U \ DS:conn_bad:COUNTER:60:U:U \ DS:q_overflows:COUNTER:60:U:U \ DS:conn_est:COUNTER:60:U:U \ DS:conn_closed:COUNTER:60:U:U \ DS:conn_dropped:COUNTER:60:U:U \ DS:conn_embry_dropped:COUNTER:60:U:U \ DS:rexmit_timeouts:COUNTER:60:U:U \ DS:conn_dropped_rexmit:COUNTER:60:U:U \ DS:persist_timeouts:COUNTER:60:U:U \ DS:keepalive_timeouts:COUNTER:60:U:U \ RRA:AVERAGE:0.5:1:1440