[rrd-users] only NaN values
Tobias Oetiker
tobi at oetiker.ch
Tue Jan 19 06:48:43 CET 2010
Hi Folkert,
try some examples from the tutorial to see that your rrdtool setup
is actually working ...
I can't see from your post why you should be getting nan values ...
if you create a little script with create, update, dump you could
run it on an other box to see if something is odd locally ... you
caoul also post your script for others to try ...
cheers
tobi
Saturday Folkert van Heusden wrote:
> No-one has an idea how to fix these NaN problems?
>
> On Tue, Jan 12, 2010 at 11:44:49PM +0100, Folkert van Heusden wrote:
> > A couple of inserts:
> >
> > mauer:/usr/local/nagios.check_commands# grep /usr/local/nagios.check_commands/var/weerstationserver/HTTP/time.rrd /tmp/rrd.log
> > /usr/bin/rrdtool update /usr/local/nagios.check_commands/var/weerstationserver/HTTP/time.rrd 1263335162:0.005438
> > /usr/bin/rrdtool update /usr/local/nagios.check_commands/var/weerstationserver/HTTP/time.rrd 1263335462:0.002476
> > /usr/bin/rrdtool update /usr/local/nagios.check_commands/var/weerstationserver/HTTP/time.rrd 1263335762:0.002664
> > /usr/bin/rrdtool update /usr/local/nagios.check_commands/var/weerstationserver/HTTP/time.rrd 1263336062:0.003119
> >
> > On Tue, Jan 12, 2010 at 10:19:33PM +0100, Folkert van Heusden wrote:
> > > Hi,
> > >
> > > I create my .rrd-files like this:
> > >
> > > rrdtool create file.rrd --step 300 \
> > > DS:values:GAUGE:900:U:U \
> > > RRA:AVERAGE:0.5:1:2016 \
> > > RRA:MIN:0.5:1:2016 \
> > > RRA:MAX:0.5:1:2016 \
> > > RRA:AVERAGE:0.5:12:744 \
> > > RRA:MIN:0.5:12:672 \
> > > RRA:MAX:0.5:12:672 \
> > > RRA:AVERAGE:0.5:288:730 \
> > > RRA:MIN:0.5:288:730 \
> > > RRA:MAX:0.5:288:730 \
> > >
> > > Then using this:
> > > rrdtool update file.rrd N:0.32
> > > I add data to it.
> > > This adding data is done multiple times in a 300 second interval and
> > > should be averaged. Also the min/max of that interval should be stored.
> > > Now when it runs for a while, I would expect values to enter it but if I
> > > create a dump of it, I only get 'NaN'.
> > >
> > > <?xml version="1.0" encoding="utf-8"?>
> > > <!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
> > > <!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
> > > <step> 300 </step> <!-- Seconds -->
> > > <lastupdate> 1263330962 </lastupdate> <!-- 2010-01-12 22:16:02 CET -->
> > >
> > > <ds>
> > > <name> values </name>
> > > <type> GAUGE </type>
> > > <minimal_heartbeat> 900 </minimal_heartbeat>
> > > <min> NaN </min>
> > > <max> NaN </max>
> > >
> > > <!-- PDP Status -->
> > > <last_ds> 0.003517 </last_ds>
> > > <value> 3.5330494778e-02 </value>
> > > <unknown_sec> 52 </unknown_sec>
> > > </ds>
> > >
> > > <!-- Round Robin Archives --> <rra>
> > > <cf> AVERAGE </cf>
> > > <pdp_per_row> 1 </pdp_per_row> <!-- 300 seconds -->
> > >
> > > <params>
> > > <xff> 5.0000000000e-01 </xff>
> > > </params>
> > > <cdp_prep>
> > > <ds>
> > > <primary_value> 0.0000000000e+00 </primary_value>
> > > <secondary_value> 0.0000000000e+00 </secondary_value>
> > > <value> NaN </value>
> > > <unknown_datapoints> 0 </unknown_datapoints>
> > > </ds>
> > > </cdp_prep>
> > > <database>
> > > <!-- 2010-01-05 22:20:00 CET / 1262726400 --> <row><v> NaN </v></row>
> > > ...
> > > <!-- 2010-01-12 22:10:00 CET / 1263330600 --> <row><v> NaN </v></row>
> > > <!-- 2010-01-12 22:15:00 CET / 1263330900 --> <row><v> NaN </v></row>
> > > </database>
> > > </rra>
> > >
> > > How can I fix this?
> > >
> > >
> > > Folkert van Heusden
> > >
> > > --
> > >
> > > Multitail - gibkaja utilita po sledovaniju log-fajlov i vyvoda
> > > kommand. Fil'trovanie, raskra?ivanie, slijanie, vizual'noe sravnenie,
> > > i t.d. http://www.vanheusden.com/multitail/
> > > ----------------------------------------------------------------------
> > > Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
> > >
> > > _______________________________________________
> > > rrd-users mailing list
> > > rrd-users at lists.oetiker.ch
> > > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
> >
> >
> > Folkert van Heusden
> >
> > --
> > Temperature outside: Not Found The requested URL /temp.php was not found on this server. __________________________________________________________________ Apache/2.2.14 (Debian) Server at 192.168.64.1 Port 80, temperature livingroom:
> > ----------------------------------------------------------------------
> > Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com
> >
> > _______________________________________________
> > rrd-users mailing list
> > rrd-users at lists.oetiker.ch
> > https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
>
>
> Folkert van Heusden
>
>
--
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