4

问题是:

如何让 RRDTool 在 Mac OS X 上生成图表?

我在 Mac OS x 10.6.8 上rrdtool安装。homebrew

我能够创建数据库、更新一些数据并获取数据,但我无法为其生成图表。

看起来和 有glib问题pango

这两个库都安装了homebrew.

我在用着:

  • RRDTool 1.4.7
  • 油嘴滑舌 2.34.2
  • 盘古 1.30.1

当我运行这个:

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

我得到:

(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

谢谢

4

0 回答 0