[rrd-users] SVG output problems in 1.4.4/1.4.5 under CentOS 5
Tobias Oetiker
tobi at oetiker.ch
Thu Apr 14 12:08:48 CEST 2011
Hi Vladimir,
Yesterday Vladimir Vuksan wrote:
> I compiled both 1.4.4 and 1.4.5 and everything seems to work fine except
> the SVG output ie. following
>
> # /usr/bin/rrdtool graph - -a SVG --start '-3600' --end N --width 480
> --height 150 --title 'CPU aidle' --vertical-label '%' --font LEGEND:10
> DEF:'sum'='/var/lib/ganglia/rrds/unspecified/192.168.122.1/cpu_aidle.rrd:sum':AVERAGE
> AREA:'sum'#555555:'192.168.122.1 last hour\n'
> CDEF:sum_pos=sum,0,LT,0,sum,IF VDEF:sum_last=sum_pos,LAST
> VDEF:sum_min=sum_pos,MINIMUM VDEF:sum_avg=sum_pos,AVERAGE
> VDEF:sum_max=sum_pos,MAXIMUM GPRINT:'sum_last':'Now\:%7.2lf%s'
> GPRINT:'sum_min':'Min\:%7.2lf%s' GPRINT:'sum_avg':'Avg\:%7.2lf%s'
> GPRINT:'sum_max':'Max\:%7.2lf%s\l'
>
> Results in this
>
> <?xml version="1.0" encoding="UTF-8"?>
> <svg xmlns="http://www.w3.org/2000/svg"
> xmlns:xlink="http://www.w3.org/1999/xlink" width="562pt" height="248pt"
> viewBox="0 0 562 248" version="1.1">
> <defs>
> <clipPath id="clip0">
> <rect width="562" height="248"/>
> </clipPath>
> </defs>
>
> Even though PNG graph generates the proper graph. Anyone else have this
> problem ?
since the move to cairo/pango all the magic of generating output is
taken up by cairo/pango, so the best bet is to make sure you use
the latest versions of these two libraries ...
on the rrdtool website you can find instructions on how to install
a private copy of these so that you do not have to mess with the
base install of your box ...
hth
tobi
>
> Vladimir
>
> _______________________________________________
> rrd-users mailing list
> rrd-users at lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>
--
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900
More information about the rrd-users
mailing list