[rrd-users] rrdtool seg fault using GPRINT
Alex van den Bogaerdt
alex at ergens.op.het.net
Wed Oct 17 16:25:53 CEST 2007
On Wed, Oct 17, 2007 at 11:18:06AM -0300, Salatiel Filho wrote:
> On 10/17/07, Alex van den Bogaerdt <alex at ergens.op.het.net> wrote:
> > On Wed, Oct 17, 2007 at 12:02:24AM -0300, Salatiel Filho wrote:
> >
> > > Hi guys , i am trying to use rrdtool but everytime i try to use some GPRINT
> > > function i get segmentation fault. This limits a lot the use of rrdtool.
> > > Could anyone lead me to a solution. I had de debian etch binary 1.2.15 for
> > > arm , and now i have 1.2.23 compiled by myself. Both segfault.
> >
> > The script you show is much to complicated for debugging purposes.
> Sorry. Now i have one simpler.
>
> usr/bin/rrdtool graph /tmp/a.png \
> --imgformat=PNG \
> --start=-86400 \
> --end=-300 \
> --title="LSPRO - Fan Speed" \
> --base=1000 \
> --height=120 \
> --width=500 \
> --alt-autoscale-max \
> --lower-limit=0 \
> --vertical-label="FAN - RPM" \
> --slope-mode \
> DEF:a="/usr/share/cacti-0.8.6j/rra/lspro_fan_27.rrd":fan:AVERAGE \
> GPRINT:a:AVERAGE:"RPM\:%8.2lf %s"
I was thinking of:
LANG=x
export LANG
cd /tmp
cp /usr/share/cacti-0.8.6j/rra/lspro_fan_27.rrd a.rrd
rrdtool graph a.png DEF:a=a.rrd:fan:AVERAGE GPRINT:a:AVERAGE:%lf
--
Alex van den Bogaerdt
http://www.vandenbogaerdt.nl/rrdtool/
More information about the rrd-users
mailing list