Cacti Graphs displaying two days of historical data

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
aanyoti
Posts: 9
Joined: Thu Aug 11, 2016 9:57 am

Cacti Graphs displaying two days of historical data

Post by aanyoti »

Hi All, I am new here and in need of urgent help. I am currently running Cacti 0.8.8h which is working well but cannot seem to collect more than 2days of historical graph data, which is very frustrating. I have upgraded/downgraded Cacti and the RRD tool but to no avail. It is extremely important that I have historical graph data for all my 1000 plus graphs for billing purposes and would greatly appreciate any assistance. I would like to exhaust all avenues before thinking of a complete reinstall so any guidance would be extremely appreciated.
cacti-2.png
cacti-2.png (40.89 KiB) Viewed 1232 times
cacti-1jpg.jpg
cacti-1jpg.jpg (79.08 KiB) Viewed 1232 times

Code: Select all

RRDTool Command:
/usr/local/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='XXXXXXXXXXXXXXXX' \
--rigid \
--base='1000' \
--height='120' \
--width='500' \
--alt-autoscale-max \
--lower-limit='0' \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/var/db/cacti/rra/XXXXXXXX_traffic_in_725.rrd':'traffic_in':AVERAGE \
DEF:b='/var/db/cacti/rra/XXXXXXXX_traffic_in_725.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefe='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound'  \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s'  \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s\n'  \
LINE1:cdefe#002A97FF:'Outbound'  \
GPRINT:cdefe:LAST:'Current\:%8.2lf %s'  \
GPRINT:cdefe:AVERAGE:'Average\:%8.2lf %s'  \
GPRINT:cdefe:MAX:'Maximum\:%8.2lf %s' 
RRDTool Says:
OK

Code: Select all

Data Source Debug
/usr/local/bin/rrdtool create \
/var/db/cacti/rra/XXXXXXXX_traffic_in_1127.rrd \
--step 300  \
DS:traffic_in:COUNTER:600:0:1000000000 \
DS:traffic_out:COUNTER:600:0:1000000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:MAX:0.5:1:600 \
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Cacti Graphs displaying two days of historical data

Post by cigamit »

RRA:AVERAGE:0.5:1:600 \
RRA:MAX:0.5:1:600 \
Show us your RRAs, as you have this, which is definitely shows us that your RRAs you have selected for that data template are only set to hold a tiny amount of data.
aanyoti
Posts: 9
Joined: Thu Aug 11, 2016 9:57 am

Re: Cacti Graphs displaying two days of historical data

Post by aanyoti »

cigamit wrote:
RRA:AVERAGE:0.5:1:600 \
RRA:MAX:0.5:1:600 \
Show us your RRAs, as you have this, which is definitely shows us that your RRAs you have selected for that data template are only set to hold a tiny amount of data.
Hi cigamit,

Thank you for your reply. Below are the RRA's. What paramters need to be changed to increase the amount of data to be held to more than a year? Will appreciate your guidance:
RRA.jpg
RRA.jpg (60.41 KiB) Viewed 1133 times
RRA-5mintes.jpg
RRA-5mintes.jpg (90.73 KiB) Viewed 1133 times
aanyoti
Posts: 9
Joined: Thu Aug 11, 2016 9:57 am

Re: Cacti Graphs displaying two days of historical data

Post by aanyoti »

Hello-any help here would really be appreciated.

I have changed the RRA's but still no improvement. Graphs are consistently showing only 2 days of data.

Please help:
Attachments
rras.jpg
rras.jpg (55.32 KiB) Viewed 1061 times
rras.jpg
rras.jpg (55.32 KiB) Viewed 1061 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Cacti Graphs displaying two days of historical data

Post by cigamit »

Did you goto the Data Template in question and ensure that those RRAs are now selected on it. Also note, it will only change new graphs. You will have to delete the RRDs of the old graphs to get them to change to the new RRAs (or modify the old rrds by command line)
aanyoti
Posts: 9
Joined: Thu Aug 11, 2016 9:57 am

Re: Cacti Graphs displaying two days of historical data

Post by aanyoti »

Thanks again for the response. Yes i have applied the new RRA's to the Data Templates, are they correct?

Deleting the RRD's would be a lot of work, is editing them via command line any easier? What exactly do I need to edit?

Again thanks for your assistance.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest