Help! Cacti Data Loss After Two Days
Moderators: Developers, Moderators
Help! Cacti Data Loss After Two Days
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
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
Re: Help! Cacti Data Loss After Two Days
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Help! Cacti Data Loss After Two Days
The version is "Version 0.8.8h"
Re: Help! Cacti Data Loss After Two Days
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 \
Re: Help! Cacti Data Loss After Two Days
You say you are new to Cacti, Is this a new install? 0.8.8h is pretty old.
Re: Help! Cacti Data Loss After Two Days
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!)
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
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Who is online
Users browsing this forum: No registered users and 1 guest