Cacti shows inconsonance Graph - SOLVED

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
gas85
Posts: 2
Joined: Tue Oct 10, 2017 5:46 am

Cacti shows inconsonance Graph - SOLVED

Post by gas85 »

Hi All,
I have 2 Problems:
1. Graph is always "ends" by 2,5 Day:
Image
From the Debug mode:

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start='-86400' \
--end='-300' \
--title='CPU, HDD Temp' \
--rigid \
--base='1000' \
--height='400' \
--width='1000' \
--upper-limit='45' \
--lower-limit='20' \
--vertical-label='Grad C' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a='/var/lib/cacti/rra/hdd_22.rrd':'hdd':LAST \
DEF:b='/var/lib/cacti/rra/hdd_22.rrd':'batt':LAST \
DEF:c='/var/lib/cacti/rra/hdd_22.rrd':'cpu':LAST \
CDEF:cdefb='b,10,/' \
LINE2:a#00FF00FF:'HDD'  \
LINE1:cdefb#DA4725FF:'Batt'  \
LINE2:c#002A97FF:'CPU\n'  \
GPRINT:a:LAST:' Current HDD%8.0lf'  \
GPRINT:cdefb:LAST:'Current Batt%8.2lf %s'  \
GPRINT:c:LAST:'Current CPU%8.0lf\n'  \
GPRINT:a:MAX:'Maximum HDD%8.0lf'  \
GPRINT:cdefb:MAX:'Maximum Batt%8.2lf %s'  \
GPRINT:c:MAX:'Maximum CPU%8.0lf\n'  \
GPRINT:a:AVERAGE:'Average HDD%8.0lf'  \
GPRINT:cdefb:AVERAGE:'Average Batt%8.2lf %s'  \
GPRINT:c:AVERAGE:'Average CPU%8.0lf\n'  \
GPRINT:a:MIN:'Minimum HDD%8.0lf'  \
GPRINT:cdefb:MIN:'Minimum Batt%8.2lf %s'  \
GPRINT:c:MIN:'Minimum CPU%8.0lf\n'  \
VRULE:1507586400#FF00004C:'' 

RRDTool Says:

OK

Code: Select all

Data Source Debug

/usr/bin/rrdtool create \
/var/lib/cacti/rra/hdd_22.rrd \
--step 300  \
DS:cpu:GAUGE:600:0:100 \
DS:hdd:GAUGE:600:0:100 \
DS:batt:GAUGE:600:0:1000 \
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 \
I recreate all RRAs with a new Data sources, but it seems not working...
My RRAs setup I did not touch at all, it is as per default:

Code: Select all

Hourly (1 Minute Average) 	1 	500 	14400
Daily (5 Minute Average) 	1 	600 	86400
Weekly (30 Minute Average) 	6 	700 	604800
Monthly (2 Hour Average) 	24 	775 	2678400
Yearly (1 Day Average) 	288 	797 	33053184 
2. Second Problem is that another Graph is also broken after 2,5 Day, but it has more data and some of it is ok (check blue line):

Image

In CSV export everything is "NaN" except one "blue line" after 600 rows. Have no idea what to do.
Last edited by gas85 on Thu Oct 19, 2017 4:20 am, edited 1 time in total.
gas85
Posts: 2
Joined: Tue Oct 10, 2017 5:46 am

Re: Cacti shows inconsonance Graph

Post by gas85 »

Ok, I found a problem... :oops:
The issue is that what is on graph should be "Average" in "Consolidation Function" in Graph Template. After this it will be ok and no data was lost...
Basically it should be consistent with your RRAs Consolidation Function (it a Average and Max per default).
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests