What I cant understand is how to get the right font for the graphs in cacti.
Some examples.
I have e test graph in cacti.
Code: Select all
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="fw.local - CPU Utilization - CPU0" \
--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:8: \
--font UNIT:8: \
DEF:a="/var/lib/cacti/rra/fw_local_cpu_16.rrd":cpu:AVERAGE \
DEF:b="/var/lib/cacti/rra/fw_local_cpu_16.rrd":cpu:MAX \
AREA:a#FF0000FF:"CPU Utilization" \
GPRINT:a:LAST:"Current\:%8.0lf" \
GPRINT:a:AVERAGE:"Average\:%8.0lf" \
GPRINT:b:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"12345678901234567890\n" \
COMMENT:"ABCDEFGHIJKLMNOPQRST\n" \
COMMENT:"abcdefghijklmnopqrst\n"
And then the same graph made in a perl script.
Code: Select all
RRDs::graph "/var/www/_graphs/cacti_font.png",
"--imgformat=PNG",
"--start=1256296886",
"--end=1256383286",
"--title=fw.local - CPU Utilization - CPU0",
"--rigid",
"--base=1000",
"--height=120",
"--width=500",
"--alt-autoscale-max",
"--lower-limit=0",
"COMMENT:Test\\n",
"COMMENT:\\n",
"--vertical-label=percent",
"--slope-mode",
"--font=TITLE:12",
"--font=AXIS:8",
"--font=LEGEND:8",
"--font=UNIT:8",
"DEF:a=/var/lib/cacti /rra/fw_local_cpu_16.rrd:cpu:AVERAGE",
"DEF:b=/var/lib/cacti/rra/fw_local_cpu_16.rrd:cpu:MAX",
"AREA:a#FF0000FF: CPU Utilization",
"GPRINT:a:LAST:Current\\:%8.0lf",
"GPRINT:a:AVERAGE:Average\\:%8.0lf",
"GPRINT:b:MAX:Maximum\\:%8.0lf\\n",
"COMMENT:12345678901234567890\\n",
"COMMENT:ABCDEFGHIJKLMNOPQRST\\n",
"COMMENT:abcdefghijklmnopqrst\\n";
What I want is for cacti to use the same font as of what rrdtool in perl does. With that font i get all the characters to line up underneath each other and so have easier to outline text, (se the second example above). I have tried to specify different fonts for cacti but with no result.
And I haven't been able to figure out what the font type is for the second graph (the graph done with perl). Anyone that know what font rrdtool uses natively in Ubuntu?
I use...
Ubuntu 8.10
Cacti 0.8.7b (apt-get)
rrdtool 1.3.1
Tanx in advance!