[rrd-users] computing NaN

Tobias Oetiker tobi at oetiker.ch
Wed Aug 12 16:51:07 CEST 2009


Michael,

Today Michael P. Soulier wrote:

> Hi,
>
> I'm not sure why I'm getting this, but I have an average value being
> computed for a graph that is resulting in NaN being displayed.
>
> I traced my update command, and it's entering an integer value of
> 4998. Dumping my rrd db, I see
>
>         <ds>
>                 <name> user_licenses_c </name>
>                 <type> GAUGE </type>
>                 <minimal_heartbeat> 600 </minimal_heartbeat>
>                 <min> 0.0000000000e+00 </min>
>                 <max> 2.5000000000e+03 </max>

you set the maximum allowed value to 2500

>                 <!-- PDP Status -->
>                 <last_ds> 4998 </last_ds>

you try to input 4998

>                 <value> NaN </value>

rrdtool records NaN since your input is out of bounds

>                 <unknown_sec> 119 </unknown_sec>
>         </ds>
>
> Why does the value show NaN when the last data source was 4998? I'm
> confused.


HTH
tobi

>

> Mike
>

-- 
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