[rrd-users] Newbie Question Storing Absolute Values versus Average
Guy Fleegman
network.monger at gmail.com
Wed Jun 4 20:15:56 CEST 2008
Hello:
I have read all the examples I could find on rrd but i have having a
tough time. The data is not acting in the way I expect.
What I want to do is feed an rrd data from an SNMP get via cron.
The problem however is that i am not getting the data vales recorded
in the archive the way i think they should be created
(I am missing something in my understanding)
Here is an example and what i think it means
If I create a rrd with
rrdtool create test3.rrd --start now --step 60 DS:in:GAUGE:120:U:U
DS:out:GAUGE:120:U:U DS:busyper:GAUGE:120:U:U RRA:LAST:0.5:1:60
So if I test this by running
rrdtool updatev N 10:10:10
I get no data showing up
what am I doing wrong?
all I want is for the actual value I poll during that time to show up
in the RRA... not an average
Thanks,
Chris
return_value = 0
and when i dump the rrd to an xml i get nothing in the row
<!-- Round Robin Database Dump --><rrd> <version> 0003 </version>
<step> 60 </step> <!-- Seconds -->
<lastupdate> 1212603048 </lastupdate> <!-- 2008-06-04 14:10:48 EDT -->
<ds>
<name> in </name>
<type> GAUGE </type>
<minimal_heartbeat> 120 </minimal_heartbeat>
<min> NaN </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> 10 </last_ds>
<value> 1.0772875000e+02 </value>
<unknown_sec> 38 </unknown_sec>
</ds>
<ds>
<name> out </name>
<type> GAUGE </type>
<minimal_heartbeat> 120 </minimal_heartbeat>
<min> NaN </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> 10 </last_ds>
<value> 1.0772875000e+02 </value>
<unknown_sec> 38 </unknown_sec>
</ds>
<ds>
<name> busyPer </name>
<type> GAUGE </type>
<minimal_heartbeat> 120 </minimal_heartbeat>
<min> NaN </min>
<max> NaN </max>
<!-- PDP Status -->
<last_ds> 10 </last_ds>
<value> 1.0772875000e+02 </value>
<unknown_sec> 38 </unknown_sec>
</ds>
<!-- Round Robin Archives --> <rra>
<cf> LAST </cf>
<pdp_per_row> 1 </pdp_per_row> <!-- 60 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>
<ds>
<primary_value> 0.0000000000e+00 </primary_value>
<secondary_value> 0.0000000000e+00 </secondary_value>
<value> NaN </value>
<unknown_datapoints> 0 </unknown_datapoints>
</ds>
<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>
<!-- 2008-06-04 13:11:00 EDT / 1212599460 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:12:00 EDT / 1212599520 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:13:00 EDT / 1212599580 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:14:00 EDT / 1212599640 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:15:00 EDT / 1212599700 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:16:00 EDT / 1212599760 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:17:00 EDT / 1212599820 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:18:00 EDT / 1212599880 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:19:00 EDT / 1212599940 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:20:00 EDT / 1212600000 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:21:00 EDT / 1212600060 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:22:00 EDT / 1212600120 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:23:00 EDT / 1212600180 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:24:00 EDT / 1212600240 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:25:00 EDT / 1212600300 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:26:00 EDT / 1212600360 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:27:00 EDT / 1212600420 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:28:00 EDT / 1212600480 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:29:00 EDT / 1212600540 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:30:00 EDT / 1212600600 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:31:00 EDT / 1212600660 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:32:00 EDT / 1212600720 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:33:00 EDT / 1212600780 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:34:00 EDT / 1212600840 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:35:00 EDT / 1212600900 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:36:00 EDT / 1212600960 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:37:00 EDT / 1212601020 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:38:00 EDT / 1212601080 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:39:00 EDT / 1212601140 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:40:00 EDT / 1212601200 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:41:00 EDT / 1212601260 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:42:00 EDT / 1212601320 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:43:00 EDT / 1212601380 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:44:00 EDT / 1212601440 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:45:00 EDT / 1212601500 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:46:00 EDT / 1212601560 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:47:00 EDT / 1212601620 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:48:00 EDT / 1212601680 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:49:00 EDT / 1212601740 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:50:00 EDT / 1212601800 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:51:00 EDT / 1212601860 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:52:00 EDT / 1212601920 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:53:00 EDT / 1212601980 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:54:00 EDT / 1212602040 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:55:00 EDT / 1212602100 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:56:00 EDT / 1212602160 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:57:00 EDT / 1212602220 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:58:00 EDT / 1212602280 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 13:59:00 EDT / 1212602340 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:00:00 EDT / 1212602400 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:01:00 EDT / 1212602460 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:02:00 EDT / 1212602520 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:03:00 EDT / 1212602580 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:04:00 EDT / 1212602640 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:05:00 EDT / 1212602700 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:06:00 EDT / 1212602760 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:07:00 EDT / 1212602820 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:08:00 EDT / 1212602880 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:09:00 EDT / 1212602940 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
<!-- 2008-06-04 14:10:00 EDT / 1212603000 -->
<row><v> NaN </v><v> NaN </v><v> NaN </v></row>
</database>
</rra>
</rrd>
More information about the rrd-users
mailing list