Rrd files not updating cacti
Thanks everyone for giving this thread a reply and taking time to read it.
Another thing that is worthy of mentioning is that BEFORE installing Cacti you need to ensure that the timezone info is set to be the same as the Server.
How do you know the PNG file isn't being updated?
/usr/bin/rrdtool graph - --imgformat=PNG --start=1424095759 --end=14241101500 --title='License feature ECHOS (36)' --base=1000 --height=120 --width=500 --alt-autoscale-max --lower-limit='0' COMMENT:"From 2015/02/16 08\:09\:19 To 2015/02/16 12\:09\:19\c" COMMENT:" \n" --vertical-label='' --slope-mode --font TITLE:12: --font AXIS:8: --font LEGEND:10: --font UNIT:8: DEF:a="/opt/cacti-0.8.8a/rra/paradigm_licenses_echosused_1418.rrd":'Echos Total': AVERAGE DEF:b="/opt/cacti-0.8.8a/rra/paradigm_licenses_echosused_1418.rrd":'Echos Used': AVERAGE LINE1:a#0D006AFF:"" AREA:b#FF0000FF:"" GPRINT:b: LAST:"Current licenses in use\:%8.2lf %s" GPRINT:a: LAST:"Total Licenses\:%8.2lf %s" HRULE:36#00FF00FF:"" -rwxrwxrwx 1 cacti users 881176 Feb 16 paradigm_licenses_echosused_1418-rwxrwxrwx 1 cacti users 111400 Sep 26 paradox_hdd_used_1430-rwxrwxrwx 1 cacti users 111400 Sep 26 paradox_traffic_in_1431-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_memavailreal_1425-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_membuffer_1426-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_memcached_1427-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_memshared_1428-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_memtotalreal_1429-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_sscpurawidle_1421-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_sscpurawnice_1422-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_sscpurawsystem_1423-rwxrwxrwx 1 cacti users 56416 Sep 26 paradox_ucd_sscpurawuser_1424UPDATE I have manged to solve it by deleting the extra parameters and rrd files related to it. /usr/bin/perl $Out Str = ""; open(PROCESS, "ssh denison /apps/paradigm_all_vers/flexlm/Linux_x64_2.5.0_i12/bin/lmutil lmstat -a -c /apps/paradigm_all_vers/flexlm/license/|") || die; while ( Command looks OK.
It seems to me if i add extra output fields it breaks it. Have you tried running it by hand (you'll need to redirect output to a file since the output filename is '-')?
The update script needs to be run at exactly the same interval as defined in your database.
I see it has a step value of 300 so the database should be updated every 5 minutes.
Until you have enough data to write a CDP, you have nothing to graph, and your graph will always have unknown data.
Alternatively, add a smaller resolution RRA (maybe Count 1) so that you do not need to collect data for so long before you have a full CDP.
rrdtool create --step 300 DS:input: GAUGE:600:0 DS:output: GAUGE:600:0 DS:temp: GAUGE:600:0 DS:load: GAUGE:600:0 DS:bcharge: GAUGE:600:0 DS:battv: GAUGE:600:0 RRA: AVERAGE:0. RRA: AVERAGE:0. rrdtool graph -t "ups " -s -1day -h 120 -w 616 -a PNG -c BACK#F9F9F9 -c SHADEA#DDDDDD -c SHADEB#DDDDDD -c GRID#D0D0D0 -c MGRID#D0D0D0 -c ARROW#0033CC DEF:input=ups.rrd:input: AVERAGE DEF:output=ups.rrd:output: AVERAGE DEF:temp=ups.rrd:temp: AVERAGE DEF:load=ups.rrd:load: AVERAGE DEF:bcharge=ups.rrd:bcharge: AVERAGE DEF:battv=ups.rrd:battv: AVERAGE LINE:input#336600 AREA:input#32CD3260:"Input Voltage" GPRINT:input: MAX:" Max %lgv" GPRINT:input: AVERAGE:" Avg %lgv" GPRINT:input: LAST:"Current %lgv\n" LINE:output#4169E1:"Output Voltage" GPRINT:output: MAX:"Max %lgv" GPRINT:output: AVERAGE:" Avg %lgv" GPRINT:output: LAST:"Current %lgv\n" LINE:load#FD570E:"Load" GPRINT:load: MAX:" Max %lg%%" GPRINT:load: AVERAGE:" Avg %lg%%" GPRINT:load: LAST:" Current %lg%%\n" LINE:temp#000ACE:"Temperature" GPRINT:temp: MAX:" Max %lgc" GPRINT:temp: AVERAGE:" Avg %lgc" GPRINT:temp: LAST:" Current %lgc" You will need at least 13 updates, each 5min apart (IE, 12 PDP (primary data points)) before you can get a single CDP (consolidated data point) written to your RRAs, enabling you to get a data point on the graph.
This is because your smallest resolution RRA is a Count 12, meaning you need 12 PDP to make one CDP.
cacti is trivially easy to install and get working now - a couple of years ago it was a bit of a pain with all the pathing that was required to get everything working. When it comes to getting your data and graph templates in place, well that is another matter - as it is so easy to trash working graph or data templates and then loose all your graphs.