Hi Fabian, Today Fabian Zimmermann wrote:
> Hi Benny Bauman, > > > Hi, when I enhanced the rrd_dump method a bit I did some changes to > > rrd_dump to reduce the output of spaces. IDK if this has any effect, but > > the versions affected by this aren't before 1.3.999*. Please recheck > > with a version there, if you notice any differences and report back > please. > > rrdtool dump org.rrd > test.xml > rrdtool restore test.xml dump.rrd > ERROR: line 45: expected a value but found an <value> element > > on RRDtool 1.3.999 (Debian/experimental) > > > In addition it would be nice if you could have a look if this affects > > import (restore) or export (dump) of an RRD file, but given your initial > > export had the correct values still present I suspect the error to be > > within rrd_restore. Please try to verify this by querying the stored > > values using a rrd_fetch or simular means. > > > > rrdtool fetch org.rrd AVERAGE > > 1256026500: 2,1552833333e+02 3,3772833333e+02 > 1256026800: 2,1552833333e+02 3,3772833333e+02 > 1256027100: 4,1999333333e+02 6,8830666667e+02 > > rrdtool fetch dump.rrd AVERAGE > > 1256026500: 2,0000000000e+00 3,0000000000e+00 > 1256026800: 2,0000000000e+00 3,0000000000e+00 > 1256027100: 4,0000000000e+00 6,0000000000e+00 > > both done with 1.3.1 > > > Another detail which might be of interest: Which locales are you using > > when running rrdtool? > > export LC_ALL=C - SOLVED the problem! > > > P.S.: A short "summary" like "precision lost with reimport" would have > > been nice ;-) > > Sorry, next time ;) > > Thanks for pointing me to the locale-workaround. If you need further > information, just ask. > I have now added code to rrd_restore (trunk as well as 1.3 svn) to force LC_NUMERIC to C regardles of your local setup. thanks for finding this and being so brave as to work in a LANG de_DE environment or some such ... things must be breaking quite in most creative ways ... I guess ... cheers tobi > Fabian > > _______________________________________________ > rrd-users mailing list > rrd-users@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 t...@oetiker.ch ++41 62 775 9902 / sb: -9900 _______________________________________________ rrd-users mailing list rrd-users@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users