rrdtool missing text labels. wrong font?

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

Moderators: Developers, Moderators

Post Reply
User avatar
Echinocactus
Posts: 7
Joined: Mon Nov 08, 2010 2:43 pm

rrdtool missing text labels. wrong font?

Post by Echinocactus »

Hi,

i'm trying to build a appliance with suse studio (http://susestudio.com/) based on opensuse 11.3. Everything works fine, but the labels are strange.
On a similar installation with opensuse 11.3 everything is ok. I don't know, what is missing.


Graph Debug says:

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
.... (cutted)

RRDTool Says: (nothing)

fc-list show the same fonts like the other system:

DejaVu Serif,DejaVu Serif Condensed:style=Condensed,Book
DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold Italic,Bold Italic
DejaVu Serif,DejaVu Serif Condensed:style=Condensed Bold,Bold
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Oblique,Oblique
DejaVu Sans Mono:style=Bold Oblique
DejaVu Serif:style=Bold Italic
DejaVu Sans:style=Bold Oblique
DejaVu Sans:style=Oblique
DejaVu Sans Mono:style=Oblique
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold Oblique,Bold Oblique
DejaVu Sans,DejaVu Sans Light:style=ExtraLight
DejaVu Sans,DejaVu Sans Condensed:style=Condensed,Book
DejaVu Sans,DejaVu Sans Condensed:style=Condensed Bold,Bold
DejaVu Sans:style=Bold
DejaVu Sans:style=Book
DejaVu Serif:style=Italic
DejaVu Sans Mono:style=Book
DejaVu Sans Mono:style=Bold
DejaVu Serif:style=Book
DejaVu Serif:style=Bold
Cacti Version - 0.8.7g
Plugin Architecture - 2.8
Poller Type - Cactid v
Server Info - Linux 2.6.34.7-0.5-default
Web Server - Apache/2.2.15 (Linux/SUSE)
PHP - 5.3.3
PHP Extensions - Core, date, ereg, libxml, pcre, filter, Reflection, session, SPL, SimpleXML, standard, xml, apache2handler, gd, ldap, mysql, mysqli, openssl, PDO, pdo_mysql, snmp, sockets
MySQL - 5.1.46-log
RRDTool - 1.4.3
SNMP - 5.5
Plugins
  • Global Plugin Settings (settings - v0.5)
    Host Info (hostinfo - v0.2)
    Network Tools (tools - v0.3)
    Update Checker (update - v0.4)
    Documents (docs - v0.1)
    PHP Network Weathermap (weathermap - v0.97a)
Attachments
Strange Look
Strange Look
graph_image.php.png (6.75 KiB) Viewed 1477 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: rrdtool missing text labels. wrong font?

Post by gandalf »

Please don't use cactid with cacti087g. Use spine087g instead.
Unfortunately, you've cut off the interesting part of the rrdtool graph statement which is related to font usage. If you don't use "specific" fonts, please verify from "Settings" that a correct font is used as a default. In case the same rrdtool garph command executes well on the other system, the issue lies with rrdtool/font usage
R.
User avatar
Echinocactus
Posts: 7
Joined: Mon Nov 08, 2010 2:43 pm

Re: rrdtool missing text labels. wrong font?

Post by Echinocactus »

Thx for Your help.

Here is the complete debug:
There are no special fonts configured in settings (RRDTool Default Font in Settings/Paths is empty. Default RRDtool 1.2 Fonts in Settings/Visual is also empty).

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Localhost - Load Average' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent='0' \
--vertical-label='processes in the run queue' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE \
DEF:b="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE \
DEF:c="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1289638238,GT,a,a,UN,0,a,IF,IF,TIME,1289638238,GT,b,b,UN,0,b,IF,IF,TIME,1289638238,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#EACC00FF:"1 Minute Average" \
GPRINT:a:LAST:" Current\:%8.2lf\n" \
AREA:b#EA8F00FF:"5 Minute Average":STACK \
GPRINT:b:LAST:" Current\:%8.2lf\n" \
AREA:c#FF0000FF:"15 Minute Average":STACK \
GPRINT:c:LAST:"Current\:%8.2lf\n" \
LINE1:cdefg#000000FF:""

RRDTool Says:

-> (OK is missing)

(Btw. i'm usining spine for polling)
11/13/2010 10:05:02 AM - SYSTEM STATS: Time:0.7525 Method:spine Processes:1 Threads:1 Hosts:2 HostsPerProcess:2 DataSources:5 RRDsProcessed:5
shubforall
Posts: 7
Joined: Thu Nov 11, 2010 1:32 am

Re: rrdtool missing text labels. wrong font?

Post by shubforall »

set the font file path in settings.
This error will be resolved.
User avatar
Echinocactus
Posts: 7
Joined: Mon Nov 08, 2010 2:43 pm

Re: rrdtool missing text labels. wrong font?

Post by Echinocactus »

The Same.

Btw. i got rrdtools 1.4.x and all the other cacti installations run fine without font settings.

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='Localhost - Load Average' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--units-exponent='0' \
--vertical-label='processes in the run queue' \
--slope-mode \
--font TITLE:12:'/usr/share/fonts/truetype/DejaVuSansMono.ttf' \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_1min:AVERAGE \
DEF:b="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_5min:AVERAGE \
DEF:c="/usr/share/cacti/rra/localhost_load_1min_5.rrd":load_15min:AVERAGE \
CDEF:cdefg=TIME,1289906532,GT,a,a,UN,0,a,IF,IF,TIME,1289906532,GT,b,b,UN,0,b,IF,IF,TIME,1289906532,GT,c,c,UN,0,c,IF,IF,+,+ \
AREA:a#EACC00FF:"1 Minute Average" \
GPRINT:a:LAST:" Current\:%8.2lf\n" \
AREA:b#EA8F00FF:"5 Minute Average":STACK \
GPRINT:b:LAST:" Current\:%8.2lf\n" \
AREA:c#FF0000FF:"15 Minute Average":STACK \
GPRINT:c:LAST:"Current\:%8.2lf\n" \
LINE1:cdefg#000000FF:""

RRDTool Says:
Post Reply

Who is online

Users browsing this forum: No registered users and 21 guests