Dear All Experts,
I have just found one thing on RRD and think that it is calculate not correct for previous data showing on the graph.
The problem is when I select the data for yesterday to display on graph by select start time from 16:00 to 17:00, the data is calculate not correct and I have observed that it will display correct only within 9 last hour only.
The picture attached is an example:
Current bandwidth that consume is 3.0Mbps within that time but the total Data Usage is only 257.01MB. I think it should be bigger than this.
So can anyone help to tell me how to make Cacti calculate correct for old data also?
All your help are very much appreciated.
Thanks in advanced.
Best Regards,
Borin
Old Data of RRD seem to be calculate not correct.
Moderators: Developers, Moderators
Old Data of RRD seem to be calculate not correct.
- Attachments
-
- graph_image.png (24.13 KiB) Viewed 926 times
How long does the "Total In" represent? At 3mb/sec, it would only take ~85 seconds to accumulate 257mb.
So either Total In is not correct, or someone is making an incorrect assumption that the figure is 3mb/5min, in which case it would take about 7 hours to hit the 257mb mark at a constant rate of input (which I don't think is the case).
So either Total In is not correct, or someone is making an incorrect assumption that the figure is 3mb/5min, in which case it would take about 7 hours to hit the 257mb mark at a constant rate of input (which I don't think is the case).
Dear Sir,
Here it is.
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1270112153 \
--end=1270115975 \
--title="PNM-MO-2821-GPRS - Gi0/0 - to Core1 gi3/7 (202.93.153.134)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2010/04/01 15\:55\:53 To 2010/04/01 16\:59\:35\c" \
COMMENT:" \n" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8.4: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/pnm-mo-2821-gprs_traffic_in_65.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/pnm-mo-2821-gprs_traffic_in_65.rrd":traffic_in:MAX \
DEF:c="/var/www/html/cacti/rra/pnm-mo-2821-gprs_traffic_in_65.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/html/cacti/rra/pnm-mo-2821-gprs_traffic_in_65.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefd=b,8,* \
CDEF:cdeff=c,8,* \
CDEF:cdefi=d,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%1.1lf%s" \
GPRINT:cdefa:AVERAGE:"Average\:%1.1lf%s" \
GPRINT:cdefd:MAX:"Maximum\:%1.1lf%s" \
COMMENT:"Total In\: 1.39 GB\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%1.1lf%s" \
GPRINT:cdeff:AVERAGE:"Average\:%1.1lf%s" \
GPRINT:cdefi:MAX:"Maximum\:%1.1lf%s" \
COMMENT:"Total Out\: 274.66 MB"
Note: after I tried to change something, it display "Total In" not the same as before even I selected in the same period.
Thanks,
Here it is.
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1270112153 \
--end=1270115975 \
--title="PNM-MO-2821-GPRS - Gi0/0 - to Core1 gi3/7 (202.93.153.134)" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2010/04/01 15\:55\:53 To 2010/04/01 16\:59\:35\c" \
COMMENT:" \n" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:10: \
--font AXIS:8: \
--font LEGEND:8.4: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/pnm-mo-2821-gprs_traffic_in_65.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/pnm-mo-2821-gprs_traffic_in_65.rrd":traffic_in:MAX \
DEF:c="/var/www/html/cacti/rra/pnm-mo-2821-gprs_traffic_in_65.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/html/cacti/rra/pnm-mo-2821-gprs_traffic_in_65.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefd=b,8,* \
CDEF:cdeff=c,8,* \
CDEF:cdefi=d,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%1.1lf%s" \
GPRINT:cdefa:AVERAGE:"Average\:%1.1lf%s" \
GPRINT:cdefd:MAX:"Maximum\:%1.1lf%s" \
COMMENT:"Total In\: 1.39 GB\n" \
LINE1:cdeff#002A97FF:"Outbound" \
GPRINT:cdeff:LAST:"Current\:%1.1lf%s" \
GPRINT:cdeff:AVERAGE:"Average\:%1.1lf%s" \
GPRINT:cdefi:MAX:"Maximum\:%1.1lf%s" \
COMMENT:"Total Out\: 274.66 MB"
Note: after I tried to change something, it display "Total In" not the same as before even I selected in the same period.
Thanks,
Who is online
Users browsing this forum: No registered users and 3 guests