Quote:
Originally Posted by Spirit Connect
Does anyone know how Cacti generates the graphs?
I'm trying to work out how it generates the "Total Out" and "Total In" values so I can than get a daily break down of traffic stats, etc for display in a table with a break down in traffic for the month? I'm getting confused with the Perl documentation... Wonder if somebody has done this before?
|
How close is multiplying the kbps average by the number of seconds in a day/time period?
(ie. if the average is 100kbps then the data transfered in one day using that average speed is 1080MB (100kbps = 12.5Kbytes/sec * 3600 * 24)).
Then use rrdtool fetch <rrd db> AVERAGE -r 900 -s -1d (example from
http://oss.oetiker.ch/rrdtool/doc/rrdfetch.en.html) to figure out the averages over different time frames etc.
(I don't mess around with this much - we use our snmp billing application, but I do the occasional evil thing with rrdtool).