Help! Cacti Data Loss After Two Days

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

Moderators: Developers, Moderators

Post Reply
HeshanD
Posts: 25
Joined: Thu Sep 05, 2019 7:18 am

Help! Cacti Data Loss After Two Days

Post by HeshanD »

Guys, I'm new to cacti. The Issue is in my cacti, the graph only shows past 48-hour data and automatically removes the data which are older than 48-hours. Please help me solve this. This graph is so critical for all the reporting and troubleshooting.

Please tell me which data you need to troubleshoot. I 'll attach the graph debug data here.

RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='MOB03 Te1/1/13 Connected to GRE primary' \
--rigid \
--base='1000' \
--height='180' \
--width='900' \
--alt-autoscale \
--vertical-label='bits per second' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a='/usr/share/cacti/rra/sw-mali-mob03_traffic_in_770.rrd':'traffic_in':AVERAGE \
DEF:b='/usr/share/cacti/rra/sw-mali-mob03_traffic_in_770.rrd':'traffic_out':AVERAGE \
CDEF:cdefa='a,8,*' \
CDEF:cdefg='b,8,*' \
AREA:cdefa#00CF00FF:'Inbound' \
GPRINT:cdefa:LAST:' Current\:%8.2lf %s' \
GPRINT:cdefa:MIN:'Minimum \:%8.2lf %s' \
GPRINT:cdefa:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefa:MAX:'Maximum\:%8.2lf %s' \
COMMENT:'Total In\: 24.94 GB\n' \
LINE1:cdefg#002A97FF:'Outbound' \
GPRINT:cdefg:LAST:'Current\:%8.2lf %s' \
GPRINT:cdefg:MIN:'Minimum \:%8.2lf %s' \
GPRINT:cdefg:AVERAGE:'Average\:%8.2lf %s' \
GPRINT:cdefg:MAX:'Maximum\:%8.2lf %s' \
COMMENT:'Total Out\: 105.23 GB\n' \
HRULE:17418278.87#862F2FFF:'95th Percentile' \
COMMENT:'(17.42 mbit in+out)\n'
RRDTool Says:
OK
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Help! Cacti Data Loss After Two Days

Post by netniV »

This is not down to the graph definition but the data profile and timespans that you have defined. 'if you are using 1.2.x, check the data source info out which should give a nice table of what is defined within the RRD file.
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
HeshanD
Posts: 25
Joined: Thu Sep 05, 2019 7:18 am

Re: Help! Cacti Data Loss After Two Days

Post by HeshanD »

The version is "Version 0.8.8h"
HeshanD
Posts: 25
Joined: Thu Sep 05, 2019 7:18 am

Re: Help! Cacti Data Loss After Two Days

Post by HeshanD »

netniV wrote: Thu Sep 05, 2019 8:17 am This is not down to the graph definition but the data profile and timespans that you have defined. 'if you are using 1.2.x, check the data source info out which should give a nice table of what is defined within the RRD file.
Image

Data source debugging
/usr/bin/rrdtool create \
/usr/share/cacti/rra/sw-mali-mob03_traffic_in_771.rrd \
--step 300 \
DS:traffic_in:COUNTER:600:0:10000000000 \
DS:traffic_out:COUNTER:600:0:10000000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
HeshanD
Posts: 25
Joined: Thu Sep 05, 2019 7:18 am

Re: Help! Cacti Data Loss After Two Days

Post by HeshanD »

netniV wrote: Thu Sep 05, 2019 8:17 am This is not down to the graph definition but the data profile and timespans that you have defined. 'if you are using 1.2.x, check the data source info out which should give a nice table of what is defined within the RRD file.


https://imge.to/i/vgq212
Image
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: Help! Cacti Data Loss After Two Days

Post by cigamit »

You say you are new to Cacti, Is this a new install? 0.8.8h is pretty old.
HeshanD
Posts: 25
Joined: Thu Sep 05, 2019 7:18 am

Re: Help! Cacti Data Loss After Two Days

Post by HeshanD »

cigamit wrote: Thu Sep 05, 2019 1:49 pm You say you are new to Cacti, Is this a new install? 0.8.8h is pretty old.
I am new to the cacti and the system, old admin has left the company.
HeshanD
Posts: 25
Joined: Thu Sep 05, 2019 7:18 am

Re: Help! Cacti Data Loss After Two Days

Post by HeshanD »

BUMP
netniV
Cacti Guru User
Posts: 3441
Joined: Sun Aug 27, 2017 12:05 am

Re: Help! Cacti Data Loss After Two Days

Post by netniV »

The problem is for 0.8.x, most diagnosis you are going to have to do by hand. Use the RRDTool's info option to see what the retention is on your data file for the problematic graph. Also, make sure that the file permissions are correct so that new data is being written to it.

You are running a system that is a quite few years old now, it may be worth considering an upgrade (take a backup first though of course!)
Cacti Developer & Release Manager
The Cacti Group

Director
BV IT Solutions Ltd

+--------------------------------------------------------------------------+

Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests