#!/bin/sh # # Create the empty RRD databases. # # step == 60 # RRA:AVERAGE:0.5:1:60 == 1 minute granularity & 60 rows = 1 hour of 1 minute granularity # RRA:AVERAGE:0.5:60:26280 == 60 minute graularity & 26280 rows = 3 years of 1 hour granularity rrdtool create users.rrd --no-overwrite -s 60 \ DS:user_count:GAUGE:600:0:32767 \ DS:user_unique:GAUGE:600:0:32767 \ DS:user_mesg_y:GAUGE:600:0:32767 \ DS:user_accounts:GAUGE:600:0:32767 \ RRA:AVERAGE:0.5:1:60 \ RRA:AVERAGE:0.5:60:26280 rrdtool create pages.rrd --no-overwrite -s 60 \ DS:pages_updated_24h:GAUGE:600:0:32767 \ RRA:AVERAGE:0.5:1:60 \ RRA:AVERAGE:0.5:60:26280