I thought of another possibility.  Your rrd configuration may somehow be be 
non-standard so AVERAGE has no data to fetch.

Try `/usr/local/bin/rrdtool fetch <file> AVERAGE --start now-800 --end now`
and `/usr/local/bin/rrdtool fetch <file> MAX --start now-800 --end now`
and `/usr/local/bin/rrdtool fetch <file> MIN --start now-800 --end now`


-Russell Dwarshuis

----- Original Message -----
From: "Russell Dwarshuis" <r...@merit.edu>
To: "Tony DeMatteis" <to...@commspeed.net>
Cc: smokeping-users@lists.oetiker.ch
Sent: Friday, June 27, 2014 10:48:42 AM
Subject: Re: [smokeping-users] Problem using Smokeping RRD in PHPWeathermap

phpweathermap is running rrdtool fetch to get the data.  From your debug, it is 
retreiving the nan's:

> /usr/local/bin/rrdtool fetch
> /www/phpweathermap/htdocs/fs_smokeping/Network/switches/sw-mm2sqpk.rrd
> AVERAGE --start now-800 --end now
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382]
> configs/smokeping_test.conf: > 1403873700: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan

It must not be reading the same rrd file that smokeping is using.  Check the 
datadir configuration option in your smokeping config file to see if the path 
is the same.


-Russell Dwarshuis

----- Original Message -----
From: "Tony DeMatteis" <to...@commspeed.net>
To: smokeping-users@lists.oetiker.ch
Sent: Friday, June 27, 2014 9:24:38 AM
Subject: Re: [smokeping-users] Problem using Smokeping RRD in PHPWeathermap

Addendum...

BTW, here is my phpweathermap node config:

NODE node09727
LABEL Latency {node:this:bandwidth_in:%d} ms / Loss 
{node:this:bandwidth_out:%d}%
TARGET 
gauge:/www/phpweathermap/htdocs/fs_smokeping/Network/switches/sw-mm2sqpk.rrd:median:loss
USESCALE pingloss in
POSITION 153 76

Thank you,

td

On 06/27/2014 06:18 AM, Tony DeMatteis wrote:
> Greetings all,
>
> I'm trying to use my smokeping rrds latency/loss in my PHPWeathermaps
> and getting a "no valid data" error.  Graph generates fine in the
> smokeping Web UI so I know it's not a lack of data.  I wouldn't think it
> a scaling issue.  And I can clearly see from the phpweathermap debug
> output that it's seeing nan data.  I have tried a number of other RRDs
> with same result.  They too show the nan data.  Could someone shed some
> light on this for me?
>
> Thank you all very much...
>
> td
>
> admin@noc2:/www/phpweathermap/htdocs# /usr/local/bin/php -q weathermap
> --config configs/smokeping_test.conf --bulge
> WARNING: configs/smokeping_test.conf: ReadData: NODE node09727, target:
> gauge:/www/phpweathermap/htdocs/fs_smokeping/Network/switches/sw-mm2sqpk.rrd:median:loss
> on config line 49 of configs/smokeping_test.conf had no valid data,
> according to WeatherMapDataSource_rrd
>
>
> admin@noc2:/www/phpweathermap/htdocs# /usr/local/bin/php -q weathermap
> --config configs/smokeping_test.conf --bulge --debug
>
> DEBUG: [readd...@weathermap.class.php:892] configs/smokeping_test.conf:
> ReadData for NODE node09727:
> DEBUG: [readd...@weathermap.class.php:901] configs/smokeping_test.conf:
> ReadData: New Target:
> gauge:/www/phpweathermap/htdocs/fs_smokeping/Network/switches/sw-mm2sqpk.rrd:median:loss
> DEBUG: [ReadData@WeatherMapDataSource_rrd.php:496]
> configs/smokeping_test.conf: Special DS names seen (median and loss).
> DEBUG: [ReadData@WeatherMapDataSource_rrd.php:516]
> configs/smokeping_test.conf: SCALING result by 1
> DEBUG: [ReadData@WeatherMapDataSource_rrd.php:574]
> configs/smokeping_test.conf: RRD ReadData: Target DS names are median
> and loss
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:322]
> configs/smokeping_test.conf: RRD ReadData: traditional style
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:362]
> configs/smokeping_test.conf: RRD ReadData: Running:
> /usr/local/bin/rrdtool fetch
> /www/phpweathermap/htdocs/fs_smokeping/Network/switches/sw-mm2sqpk.rrd
> AVERAGE --start now-800 --end now
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382]
> configs/smokeping_test.conf: > 1403873700: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382]
> configs/smokeping_test.conf: > 1403874000: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382]
> configs/smokeping_test.conf: > 1403874300: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382]
> configs/smokeping_test.conf: > 1403874600: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:382]
> configs/smokeping_test.conf: > DEBUG:
> [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:390]
> configs/smokeping_test.conf: RRD ReadData: Read 5 lines from rrdtool
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:391]
> configs/smokeping_test.conf: RRD ReadData: Headings
> are:                          uptime loss
> median               ping1 ping2               ping3               ping4
> ping5               ping6               ping7 ping8
> ping9              ping10 ping11              ping12              ping13
> ping14              ping15              ping16 ping17
> ping18              ping19              ping20
>
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:400]
> configs/smokeping_test.conf: --
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:400]
> configs/smokeping_test.conf: --1403874600: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
>
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:400]
> configs/smokeping_test.conf: --1403874300: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
>
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:400]
> configs/smokeping_test.conf: --1403874000: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
>
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:400]
> configs/smokeping_test.conf: --1403873700: nan nan nan nan nan nan nan
> nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan nan
>
> DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:455]
> configs/smokeping_test.conf: RRD ReadDataFromRealRRD: Returning
> (NULL,NULL,0)
> DEBUG: [ReadData@WeatherMapDataSource_rrd.php:616]
> configs/smokeping_test.conf: RRD ReadData: Returning (NULL,NULL,0)
>
> _______________________________________________
> smokeping-users mailing list
> smokeping-users@lists.oetiker.ch
> https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users
>

_______________________________________________
smokeping-users mailing list
smokeping-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

_______________________________________________
smokeping-users mailing list
smokeping-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

_______________________________________________
smokeping-users mailing list
smokeping-users@lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/smokeping-users

Reply via email to