Munin-graph error: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

You may get a mail from cron complaining about “Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()”, if you are running Munin. This is caused by Munin not receiving valid UTF-8 data.

For this you have 2 possible solutions:

1) Patch munin-graph manually using:
http://munin-monitoring.org/svn/munin/branches/debian/lenny/trunk/debian/patches/380-munin-graph-utf8.patch

Note that the line numbers are a bit off if you are using another version.

2) Find the munin-node plugin that causes the problem(aka having some none utf-8 characters). Most likely it is the following line in the plugin hddtemp_smartctl:

print “graph_vlabel temp in °C\n”;

Change it to:

print “graph_vlabel temp in C\n”;

Restart the munin-node and you should not get more trouble, at least from that plugin.

This entry was posted in Linux and tagged , , , , , . Bookmark the permalink.

One Response to Munin-graph error: Pango-WARNING **: Invalid UTF-8 string passed to pango_layout_set_text()

  1. Kevin says:

    Just in case anyone else needs a direct path to the string:

    /usr/share/munin/plugins/hddtemp_smartctl

    I use CentOS 5.5 with Cpanel. Thanks for the hint!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">