Map generated only manually - SOLVED SEE PAGE 3

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

And what does that say in the cacti.log with DEBUG turned on?
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

Howie wrote:And what does that say in the cacti.log with DEBUG turned on?
ok, i tell you that ASAP, i have 30.000 datasources :D
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

ok i ran again in debug and chatty mode, and I see NaN in the logs :
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:399] [Map 1] .conf: RRD ReadData: Running: /usr/bin/rrdtool fetch /var/www/cacti/rra/-swa_traffic_in_11583.rrd AVERAGE --start now-800 --end now
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] .conf: > 1245397200: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] .conf: > 1245397500: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] .conf: > 1245397800: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] .conf: > 1245398100: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] .conf: >
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:427] [Map 1] .conf: RRD ReadData: Read 5 lines from rrdtool
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:428] [Map 1] .conf: RRD ReadData: Headings are: traffic_in traffic_out
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] .conf: --
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] .conf: --1245398100: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] .conf: --1245397800: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] .conf: --1245397500: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] .conf: --1245397200: nan nan
DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:492] [Map 1] .conf: RRD ReadDataFromRealRRD: Returning (NULL,NULL,0)
DEBUG: [ReadData@WeatherMapDataSource_rrd.php:641] [Map 1] .conf: RRD ReadData: Returning (NULL,NULL,0)
WARNING: [Map 1] .conf: ReadData: LINK dty--swa-dty--swc-G1/1, target: /var/www/cacti/rra/-swa_traffic_in_11583.rrd on config line 167 had no valid data, according to WeatherMapDataSource_rrd
DEBUG: [ReadData@Weathermap.class.php:824] [Map 1] .conf: Aggregate so far: 0 0
DEBUG: [ReadData@Weathermap.class.php:837] [Map 1] .conf: ReadData complete for LINK dty--swa-dty--swc-G1/1: 0 0
DEBUG: [NewColourFromPercent@Weathermap.class.php:1110] [Map 1] .conf: NCFPC dty--swa-dty--swc-G1/1 '' 0_1 255 255 255
DEBUG: [NewColourFromPercent@Weathermap.class.php:1110] [Map 1] .conf: NCFPC dty--swa-dty--swc-G1/1 '' 0_1 255 255 255
DEBUG: [add_note@Weathermap.class.php:89] [Map 1] .conf: Adding note inscalekey='0_1' to dty--swa-dty--swc-G1/1
DEBUG: [add_note@Weathermap.class.php:89] [Map 1] .conf: Adding note outscalekey='0_1' to dty--swa-dty--swc-G1/1
DEBUG: [add_note@Weathermap.class.php:89] [Map 1] .conf: Adding note inscaletag='' to dty--swa-dty--swc-G1/1
DEBUG: [add_note@Weathermap.class.php:89] [Map 1] .conf: Adding note outscaletag='' to dty--swa-dty--swc-G1/1
DEBUG: [add_note@Weathermap.class.php:89] [Map 1] .conf: Adding note inscalecolor='#ffffff' to dty--swa-dty--swc-G1/1
DEBUG: [add_note@Weathermap.class.php:89] [Map 1] .conf: Adding note outscalecolor='#ffffff' to dty--swa-dty--swc-G1/1
DEBUG: [ReadData@Weathermap.class.php:898] [Map 1] .conf: ReadData: Setting 0,0
in command line it's working :-?
Fri Jun 19 09:54:38
root@yzi351:/var/www/cacti/log$ /usr/bin/rrdtool fetch /var/www/cacti/rra/-swa_traffic_in_11583.rrd AVERAGE --start now-800 --end now
traffic_in traffic_out

1245397500: 2.2998764587e+04 2.7741796635e+04
1245397800: nan nan
1245398100: nan nan
1245398400: nan nan
Fri Jun 19 09:57:31
root@yzi351:/var/www/cacti/log$ /usr/bin/rrdtool fetch /var/www/cacti/rra/-swa_traffic_in_11583.rrd AVERAGE --start now-800 --end now
traffic_in traffic_out

1245398100: 2.1844539844e+04 2.7448260022e+04
1245398400: nan nan
1245398700: nan nan
and there is no gap or hole in the graph
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

You still get quite a lot of nans on the command line, but it's true that the results should match.

I've never seen that problem before.

Try 'SET rrd_use_poller_output 1' at the top of the map config, and wait a few poller cycles. That will get data directly from the poller instead of from rrdtool.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

thank you, no error at all now :)

really strange !
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

last question : how can i keep this line when i make changes ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

tomate wrote:last question : how can i keep this line when i make changes ?
don't delete it
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests