I have 2 Problems:
1. Graph is always "ends" by 2,5 Day:
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 \
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
In CSV export everything is "NaN" except one "blue line" after 600 rows. Have no idea what to do.