#!/usr/bin/perl -w

use strict;
use lib qw( /usr/local/rrdtool-1.2.26/lib/perl );
use RRDs;

RRDs::graph "./example2.png",
    "--title=user_expavg_credit",
    "--start=-90d",
    "--lower-limit=0",
    "DEF:user_expavg_credit=www.primegrid.com.rrd:expavg:LAST",
    "LINE1:user_expavg_credit#0000FF:Current",
    "GPRINT:user_expavg_credit:LAST:%lf%s\\n";
if ( my $err = RRDs::error ) { print $err }
exit;
