On 31 Aug 2011, at 00:32, Liehann Loots wrote: > Hi, > > I'm having trouble generating a graph with a logarithmic y-axis. > > My graphing command looks like this (I've tried to make it as simple as > possible). If I leave out the "-o" it works, with the "-o" - nothing. > rrdtool graph pings.png \ > -s end-2h -e now-1h \ > -u 5000 -l 1 -o \ > DEF:l=pings.rrd:latency:AVERAGE \ > LINE2:l#00ff00 > > Any help would be appreciated - I'm not even sure how to start debugging > what's going wrong. It exits with code 0 and doesn't print out any error > messages. > > I've tried two versions so far with the same result: > rrdtool 1.4.3 (from Ubuntu 11.04 repo) > rrdtool 1.4.5 (downloaded and compiled from source) > > Kind regards, > Liehann > _______________________________________________ > rrd-users mailing list > [email protected] > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
This would be the same bug reported back in february in https://lists.oetiker.ch/pipermail/rrd-users/2011-February/017511.html with some analysis I did https://lists.oetiker.ch/pipermail/rrd-users/2011-February/017515.html The problem can be guaranteed to happen if you set im.magfact=0; in rrd_graph_v() before it calls rrd_graph_init. This way it should trigger a div-by-zero trap if not properly set. I mentioned a hack I put in, patch attached, but my caveats stand as I'm not familiar with the codebase. But at least I have working log graphs. -- Bernard Quatermass.
rrdtool-1.4.4-magfact.patch
Description: Binary data
_______________________________________________ rrd-users mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
