For Daily Graph, every 5 minute average for 24 hours:
RRA:AVERAGE:0.5:1:288
ok theres 24 hours in a day
1440 minutes in a day
your are logging every 5 minutes
therefore you want to use 288 logs per day
same goes with the rest of them
For Weekly Graph, every 30 minute average for 7 days:
RRA:AVERAGE:0.5:6:336
7 days * 24 hours * 60 mins = 10080 mins
you log every 5 mins so 10080/5 = 2016 samples per week
you want to average every 6 samples so 2016/6 = 336
im still learning how to use rrdtool but reading through the online help on the website
http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
and going through the samples and tutorials at
http://martybugs.net/linux/rrdtool/traffic.cgi
i am getting better
:-)
good luck