#!/bin/sh # # Rebuild the graphs, after new data has been logged. Some of these won't # change every run. # cd /home/annika/public_html rrdtool graph graphs/users_1h.png --end now --start end-1h --width 400 \ --lower-limit 0 \ DEF:count=users.rrd:user_count:AVERAGE \ DEF:unique=users.rrd:user_unique:AVERAGE \ DEF:mesg=users.rrd:user_mesg_y:AVERAGE \ LINE1:count#0000ff \ LINE1:unique#00ff00 \ LINE1:mesg#ff0000 rrdtool graph graphs/users_24h.png --end now --start end-24h --width 400 \ --lower-limit 0 \ DEF:count=users.rrd:user_count:AVERAGE \ DEF:unique=users.rrd:user_unique:AVERAGE \ DEF:mesg=users.rrd:user_mesg_y:AVERAGE \ LINE1:count#0000ff \ LINE1:unique#00ff00 \ LINE1:mesg#ff0000 rrdtool graph graphs/users_31d.png --end now --start end-31d --width 400 -E \ --lower-limit 0 \ DEF:count=users.rrd:user_count:AVERAGE \ DEF:unique=users.rrd:user_unique:AVERAGE \ DEF:mesg=users.rrd:user_mesg_y:AVERAGE \ LINE1:count#0000ff \ LINE1:unique#00ff00 \ LINE1:mesg#ff0000 rrdtool graph graphs/accounts_24h.png --end now --start end-24h --width 400 \ --lower-limit 0 \ DEF:accounts=users.rrd:user_accounts:AVERAGE \ LINE1:accounts#0000ff rrdtool graph graphs/accounts_7d.png --end now --start end-7d --width 400 \ --lower-limit 0 \ DEF:accounts=users.rrd:user_accounts:AVERAGE \ LINE1:accounts#0000ff rrdtool graph graphs/accounts_31d.png --end now --start end-31d --width 400 \ --lower-limit 0 \ DEF:accounts=users.rrd:user_accounts:AVERAGE \ LINE1:accounts#0000ff rrdtool graph graphs/updated_1h.png --end now --start end-1h --width 400 \ --lower-limit 0 \ DEF:updated=pages.rrd:pages_updated_24h:AVERAGE \ LINE1:updated#0000ff rrdtool graph graphs/updated_7d.png --end now --start end-7d --width 400 \ --lower-limit 0 \ DEF:updated=pages.rrd:pages_updated_24h:AVERAGE \ LINE1:updated#0000ff rrdtool graph graphs/updated_31d.png --end now --start end-31d --width 400 \ --lower-limit 0 \ DEF:updated=pages.rrd:pages_updated_24h:AVERAGE \ LINE1:updated#0000ff