Shami's Blog

Sysadmin, Because Even Developers Need Heroes

Rrdtool Showing Squares Instead Of Letters In Graphs

2014-12-10

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

/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

(process:78048): Pango-CRITICAL **: No modules found:
No builtin or dynamically loaded modules were found.
PangoFc will not work correctly.
This probably means there was an error in the creation of:
  '/usr/local/etc/pango/pango.modules'
You should create this file by running:
  pango-querymodules > '/usr/local/etc/pango/pango.modules'

(process:78048): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderFc', script='common'

(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

mkdir /usr/local/etc/pango/ 
pango-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.

twitter linkedin