I'm in the process of migrating our current cacti server to a new, more powerful machine so I've exported our Templates and have been importing them into the new installation and they have all worked so far except for this one that graphs some Apache stats.
When turning on Graph debugging on the OLD server I see:
Code: Select all
/usr/local/rrdtool-1.2.19/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-60 \
--title="server1 - Apache Statistics - Bytes / Request" \
--base=1024 \
--height=120 \
--width=640 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bytes / hit" \
--slope-mode \
--font TITLE:8: \
--font AXIS:8: \
--font LEGEND:8: \
--font UNIT:8: \
DEF:a="/var/www/html/rra/server1_threadr_176.rrd":apache_total_kbytes:AVERAGE \
DEF:b="/var/www/html/rra/server1_threadr_176.rrd":apache_total_kbytes:LAST \
DEF:c="/var/www/html/rra/server1_threadr_176.rrd":apache_total_kbytes:MAX \
DEF:d="/var/www/html/rra/server1_threadr_176.rrd":apache_total_hits:AVERAGE \
DEF:e="/var/www/html/rra/server1_threadr_176.rrd":apache_total_hits:LAST \
DEF:f="/var/www/html/rra/server1_threadr_176.rrd":apache_total_hits:MAX \
CDEF:cdefa=a,UN,0,a,100000,GT,0,a,IF,IF \
CDEF:cdefb=d,UN,0,d,100000,GT,0,d,IF,IF \
CDEF:cdefc=cdefb,0,EQ,0,cdefa,1024,*,cdefb,/,IF,0,1000000,LIMIT \
\
\
AREA:cdefc#4123A1FF:"Bytes / Request" \
GPRINT:cdefc:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefc:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:a#FF0000FF:"kBytes" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:c:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:d#00FF00FF:"Hits" \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:d:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n"
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=0 \
--end=0 \
--title='server1 - test - Apache Statistics - Bytes / Request' \
--base=1024 \
--height=120 \
--width=640 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='bytes / hit' \
--slope-mode \
--font TITLE:10: \
--font AXIS:7: \
--font LEGEND:8: \
--font UNIT:7: \
DEF:a="/opt/cacti-0.8.7i/rra/server1_-_test_apache_busy_workers_206.rrd":apache_total_kbytes:AVERAGE \
DEF:b="/opt/cacti-0.8.7i/rra/server1_-_test_apache_busy_workers_206.rrd":apache_total_hits:AVERAGE \
CDEF:cdefa=a,UN,0,a,100000,GT,0,a,IF,IF \
CDEF:cdefb=d,UN,0,d,100000,GT,0,d,IF,IF \
CDEF:cdefc=cdefb,0,EQ,0,cdefa,1024,*,cdefb,/,IF,0,1000000,LIMIT \
\
\
AREA:cdefc#4123A1FF:"Bytes / Request" \
GPRINT:cdefc:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefc:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:a#FF0000FF:"kBytes" \
GPRINT:a:LAST:" Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n" \
LINE2:b#00FF00FF:"Hits" \
GPRINT:b:LAST:" Current\:%8.2lf %s" \
GPRINT:b:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: invalid rpn expression in: d,UN,0,d,100000,GT,0,d,IF,IF
In the Graph Template I have AVERAGE, LAST, MAX for each of the DS's being used, not sure why only AVERAGE is appearing on the new server.
To move the Templates over I simply exported from the old server and imported into the new. All the other graphs are working fine (so far).
Any ideas? Thanks.