I'm running cacti on multiple Debian 5.0 servers.
(Cacti version is 8.7b).
My main problem is in lack of fixed size font on graphs.
When I choose to use rrd 1.0.x in Settings, i get correct graph, *but* cacti cannot display graphs in preview/tree/list mode - I have to click on graph to see, that it is working (rrd10).
Debug from rrd 1.0.x
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="bazowy - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
DEF:a="/var/lib/cacti/rra/bazowy_cpu_system_9.rrd":cpu_system:AVERAGE \
DEF:b="/var/lib/cacti/rra/bazowy_cpu_system_9.rrd":cpu_system:MAX \
DEF:c="/var/lib/cacti/rra/bazowy_cpu_user_10.rrd":cpu_user:AVERAGE \
DEF:d="/var/lib/cacti/rra/bazowy_cpu_user_10.rrd":cpu_user:MAX \
DEF:e="/var/lib/cacti/rra/bazowy_cpu_nice_8.rrd":cpu_nice:AVERAGE \
DEF:f="/var/lib/cacti/rra/bazowy_cpu_nice_8.rrd":cpu_nice:MAX \
CDEF:cdefbc=TIME,1239314754,GT,a,a,UN,0,a,IF,IF,TIME,1239314754,GT,c,c,UN,0,c,IF,IF,TIME,1239314754,GT,e,e,UN,0,e,IF,IF,+,+ \
AREA:a#FF0000:"System" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
STACK:c#0000FF:"User" \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n" \
STACK:e#00FF00:"Nice" \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s"
Debug from rrd1.2.x is:
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="bazowy - CPU Usage" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="percent" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/bazowy_cpu_system_9.rrd":cpu_system:AVERAGE \
DEF:b="/var/lib/cacti/rra/bazowy_cpu_system_9.rrd":cpu_system:MAX \
DEF:c="/var/lib/cacti/rra/bazowy_cpu_user_10.rrd":cpu_user:AVERAGE \
DEF:d="/var/lib/cacti/rra/bazowy_cpu_user_10.rrd":cpu_user:MAX \
DEF:e="/var/lib/cacti/rra/bazowy_cpu_nice_8.rrd":cpu_nice:AVERAGE \
DEF:f="/var/lib/cacti/rra/bazowy_cpu_nice_8.rrd":cpu_nice:MAX \
CDEF:cdefbc=TIME,1239314408,GT,a,a,UN,0,a,IF,IF,TIME,1239314408,GT,c,c,UN,0,c,IF,IF,TIME,1239314408,GT,e,e,UN,0,e,IF,IF,+,+ \
AREA:a#FF0000FF:"System" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:b:MAX:"Maximum\:%8.2lf %s\n" \
AREA:c#0000FFFF:"User":STACK \
GPRINT:c:LAST:" Current\:%8.2lf %s" \
GPRINT:c:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:d:MAX:"Maximum\:%8.2lf %s\n" \
AREA:e#00FF00FF:"Nice":STACK \
GPRINT:e:LAST:" Current\:%8.2lf %s" \
GPRINT:e:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:f:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefbc#000000FF:"Total" \
GPRINT:cdefbc:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefbc:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefbc:MAX:"Maximum\:%8.2lf %s"
Is it any chance to get fixed-size font in Cacti with rrd 1.2.x??