Shami's Blog

DevOps because uptime is not optional

Rrdtool Showing Squares Instead Of Letters In Graphs

Tried installing Cacti on FreeBSD today and got the following:

After some checks and trying to re-install the dejavu font like some forum posts suggested, I tried to generate the image manually

1/usr/local/bin/rrdtool graph - --imgformat=PNG --start='-86400' --end='-300' --title='Localhost - Logged in Users' --rigid --base='1000' --height='120' --width='500' --alt-autoscale-max --lower-limit='0' --vertical-label='users' --slope-mode --font TITLE:10:'sans bold 8' --font AXIS:7: --font LEGEND:8: --font UNIT:7: DEF:a='/var/db/cacti/rra/localhost_users_6.rrd':'users':AVERAGE AREA:a#4668E4FF:'Users' GPRINT:a:LAST:'Current\:%8.0lf' GPRINT:a:AVERAGE:'Average\:%8.0lf' GPRINT:a:MAX:'Maximum\:%8.0lf\n' > image.png

I got the following error

 1(process:78048): Pango-CRITICAL **: No modules found:
 2No builtin or dynamically loaded modules were found.
 3PangoFc will not work correctly.
 4This probably means there was an error in the creation of:
 5  '/usr/local/etc/pango/pango.modules'
 6You should create this file by running:
 7  pango-querymodules > '/usr/local/etc/pango/pango.modules'
 8
 9(process:78048): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'
10
11(process:78048): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='latin'

Just run the following commands and you’ll be set

1mkdir /usr/local/etc/pango/ 
2pango-querymodules > '/usr/local/etc/pango/pango.modules'

About Me

Dev gone Ops gone DevOps. Any views expressed on this blog are mine alone and do not necessarily reflect the views of my employer.

Categories