Debian - fixed font problem

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
zawierta
Posts: 4
Joined: Tue Mar 11, 2008 4:57 am

Debian - fixed font problem

Post by zawierta »

Hello,
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" 
After switching to rrd 1.2.x, I get correct tree/list/preview view - all graphs are shown together, but there is no fixed size font (rrd12).

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??
Attachments
That I get, when I choose rrd 1.2.x
That I get, when I choose rrd 1.2.x
cacti_rrd12.png (39.37 KiB) Viewed 1837 times
That I get, when I choose rrd 1.0.x
That I get, when I choose rrd 1.0.x
cacti_rrd10.png (24.43 KiB) Viewed 1837 times
Mikf
Posts: 47
Joined: Fri Aug 13, 2004 11:35 am
Location: Paris, France

Post by Mikf »

on debian lenny, rrdtool has version 1.3.1-x
This is a bug on this version,
upgrade to version >= 1.3.5 or downgrade to version 1.2.x
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests