RRDTool 'graph' command generates Glib and Pango error installed with Homebrew on Mac OS X

The question arises:

How to make RRDTool generate graphics in Mac OS X?

I installed rrdtool using homebrew on Mac OS x 10.6.8.

I can create a database, update some data and get data, but I can not create graphs for it.

Looks like a problem with glib and pango .

Both libraries are installed with homebrew .

I use:

  • RRDTool 1.4.7
  • Glib 2.34.2
  • Pango 1.30.1

When I ran this:

 rrdtool create datafile.rrd DS:packets:ABSOLUTE:900:0:10000000 RRA:AVERAGE:0.5:1:9600 RRA:AVERAGE:0.5:4:9600 RRA:AVERAGE:0.5:24:6000 rrdtool update datafile.rrd N:12322 rrdtool graph graph.png DEF:pkt=datafile.rrd:packets:AVERAGE LINE1:pkt#ff0000:Packets 

I get:

 (process:34285): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (process:34285): GLib-GObject-CRITICAL **: g_object_get_qdata: assertion `G_IS_OBJECT (object)' failed (process:34285): GLib-GObject-CRITICAL **: g_object_set_qdata_full: assertion `G_IS_OBJECT (object)' failed (process:34285): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed (process:34285): Pango-CRITICAL **: pango_fontset_foreach: assertion `PANGO_IS_FONTSET (fontset)' failed (process:34285): Pango-WARNING **: failed to choose a font, expect ugly output. engine-type='PangoRenderCoreText', script='latin' (process:34285): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (process:34285): Pango-WARNING **: couldn't load font "DejaVu Sans Mono,Bitstream Vera Sans Mono,monospace,Courier Not-Rotated 8", modified variant/weight/stretch as fallback, expect ugly output. (process:34285): GLib-GObject-CRITICAL **: g_object_ref: assertion `G_IS_OBJECT (object)' failed (process:34285): Pango-ERROR **: Could not load fallback font, bailing out. ./test.sh: line 9: 34285 Trace/BPT trap rrdtool graph graph.png DEF:pkt=datafile.rrd:packets:AVERAGE LINE1:pkt#ff0000:Packets 

thanks

+4
source share

Source: https://habr.com/ru/post/1448005/


All Articles