Map generated only manually - SOLVED SEE PAGE 3

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

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

Post by tomate »

i have just compiled and installed rrdtool 1.3.4 and it is the same :evil: :evil: :evil:

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

Post by Howie »

Perhaps an older rrdtool? 1.3.1?

I've never seen one that does this before, so I assume it's a new thing...
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:Perhaps an older rrdtool? 1.3.1?

I've never seen one that does this before, so I assume it's a new thing...
you know the result :(

when i use this regexp : /^\-?\d+[,.]?\d*e?[+-]?\d*:?$/i
i have some results but there are wrong
but there are not 0
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

this info about a rrd :
rrdtool info plop_traffic_in_8.rrd
filename = "plop_traffic_in_8.rrd"
rrd_version = "0003"
step = 300
last_update = 1228234202
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0,0000000000e+00
ds[traffic_in].max = 4,0000000000e+07
ds[traffic_in].last_ds = "3518736062"
ds[traffic_in].value = 1,8904242400e+06
ds[traffic_in].unknown_sec = 0
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0,0000000000e+00
ds[traffic_out].max = 4,0000000000e+07
ds[traffic_out].last_ds = "2057256814"
ds[traffic_out].value = 4,9156775200e+06
ds[traffic_out].unknown_sec = 0

all numbers are stored with ',' and not '.'
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

maybe a locales problem
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

ok, you won't believe it, but yes it is now working just fine !!

that was a locales problem !!
i already did not like locales configuration, i now know i hate that :evil:
with french UTF8 i have , and not .
that is so weird but doesn't matter anyway because IT IS NOW WORKING !!

thank you for your help ;)
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

hi,

i have a new server with red hat server 5 with cacti 0.8.7d and weathermap 0.96a

locales are ok :
locale
LANG=en_US
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C


but i still have some links with 0 bits/sec (and they should not)
06/18/2009 03:15:47 PM - WEATHERMAP: Poller[0] WARNING: [Map 1] altair.conf: ReadData: LINK RTR-NAT-1-NOKIA-1, target: /var/www/cacti/rra/routeur_nattage_3845-1_traffic_in_11580.rrd on config line 239 had no valid data, according to WeatherMapDataSource_rrd

any idea ?

thanks
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:hi,

i have a new server with red hat server 5 with cacti 0.8.7d and weathermap 0.96a

locales are ok :
locale
LANG=en_US
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C


but i still have some links with 0 bits/sec (and they should not)
06/18/2009 03:15:47 PM - WEATHERMAP: Poller[0] WARNING: [Map 1] altair.conf: ReadData: LINK RTR-NAT-1-NOKIA-1, target: /var/www/cacti/rra/routeur_nattage_3845-1_traffic_in_11580.rrd on config line 239 had no valid data, according to WeatherMapDataSource_rrd

any idea ?

thanks
Yes, run with DEBUG for one poller cycle, and then check the cacti.log for ReadData lines about RTR-NAT-1-NOKIA-1
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 »

this what i have :
06/18/2009 03:35:01 PM - WEATHERMAP: Poller[0] DEBUG: [MakeHTML@Weathermap.class.php:3295] [Map 1] altair.conf: Writing LINK:RTR-NAT-1-NOKIA-1: from imagemap
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [DrawLabelRotated@Weathermap.class.php:963] [Map 1] altair.conf: Adding Rectangle imagemap for LINK:RTR-NAT-1-NOKIA-1:3
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ProcessString@Weathermap.class.php:564] [Map 1] altair.conf: ProcessString: Found appropriate item: WeatherMapLink RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [DrawLabelRotated@Weathermap.class.php:963] [Map 1] altair.conf: Adding Rectangle imagemap for LINK:RTR-NAT-1-NOKIA-1:2
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ProcessString@Weathermap.class.php:564] [Map 1] altair.conf: ProcessString: Found appropriate item: WeatherMapLink RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [draw_curve@WeatherMap.functions.php:1153] [Map 1] altair.conf: Adding Poly imagemap for LINK:RTR-NAT-1-NOKIA-1:0
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [draw_curve@WeatherMap.functions.php:1153] [Map 1] altair.conf: Adding Poly imagemap for LINK:RTR-NAT-1-NOKIA-1:1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [DrawMap@Weathermap.class.php:2832] [Map 1] altair.conf: Drawing LINK RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 1] altair.conf: Adding note outscalecolor='#ffffff' to RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 1] altair.conf: Adding note inscalecolor='#ffffff' to RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 1] altair.conf: Adding note outscaletag='' to RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 1] altair.conf: Adding note inscaletag='' to RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 1] altair.conf: Adding note outscalekey='0_1' to RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 1] altair.conf: Adding note inscalekey='0_1' to RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [NewColourFromPercent@Weathermap.class.php:1110] [Map 1] altair.conf: NCFPC RTR-NAT-1-NOKIA-1 '' 0_1 255 255 255
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [NewColourFromPercent@Weathermap.class.php:1110] [Map 1] altair.conf: NCFPC RTR-NAT-1-NOKIA-1 '' 0_1 255 255 255
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:837] [Map 1] altair.conf: ReadData complete for LINK RTR-NAT-1-NOKIA-1: 0 0
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] WARNING: [Map 1] altair.conf: ReadData: LINK RTR-NAT-1-NOKIA-1, target: /var/www/cacti/rra/routeur_nattage_3845-1_traffic_in_11580.rrd on config line 275 had no valid data, according to WeatherMapDataSource_rrd
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:729] [Map 1] altair.conf: ReadData for LINK RTR-NAT-1-NOKIA-1:
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ReadConfig@Weathermap.class.php:2401] [Map 1] altair.conf: Setting bandwidth on LINK RTR-NAT-1-NOKIA-1 (100M -> 100000000 bps, 100M -> 100000000 bps, KILO = 1000)
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ReadConfig@Weathermap.class.php:1623] [Map 1] altair.conf: Saving Link: RTR-NAT-1-NOKIA-1
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [CopyFrom@WeatherMapLink.class.php:141] [Map 1] altair.conf: Initialising LINK RTR-NAT-1-NOKIA-1 from DEFAULT
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [Reset@WeatherMapLink.class.php:116] [Map 1] altair.conf: Resetting RTR-NAT-1-NOKIA-1 with DEFAULT
06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ReadConfig@Weathermap.class.php:1652] [Map 1] altair.conf: New LINK RTR-NAT-1-NOKIA-1
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

No, you need the lines after this one:

06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:837] [Map 1] altair.conf: ReadData complete for LINK RTR-NAT-1-NOKIA-1: 0 0

they will tell you what the output of the rrdtool command is.
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:No, you need the lines after this one:

06/18/2009 03:35:00 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:837] [Map 1] altair.conf: ReadData complete for LINK RTR-NAT-1-NOKIA-1: 0 0

they will tell you what the output of the rrdtool command is.
ok i think you think about that :
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_rrd.php:611] [Map 1] altair.conf: RRD ReadData: Target DS names are tra\
ffic_in and traffic_out
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:359] [Map 1] altair.conf: RRD ReadData: tra\
ditional style
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:399] [Map 1] altair.conf: RRD ReadData: Run\
ning: /usr/bin/rrdtool fetch /var/www/cacti/rra/routeur_nattage_3845-2_traffic_in_11762.rrd AVERAGE --start now-800 --end now
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] altair.conf: > 1245331200: nan\
nan
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] altair.conf: > 1245331500: nan\
nan
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] altair.conf: > 1245331800: nan\
nan
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] altair.conf: > 1245332100: nan\
nan
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:419] [Map 1] altair.conf: >
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:427] [Map 1] altair.conf: RRD ReadData: Rea\
d 5 lines from rrdtool
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:428] [Map 1] altair.conf: RRD ReadData: Hea\
dings are: traffic_in traffic_out
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] altair.conf: --
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] altair.conf: --1245332100: nan\
nan
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] altair.conf: --1245331800: nan\
nan
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] altair.conf: --1245331500: nan\
nan
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:437] [Map 1] altair.conf: --1245331200: nan\
nan
06/18/2009 03:31:21 PM - WEATHERMAP: Poller[0] DEBUG: [wmrrd_read_from_real_rrdtool@WeatherMapDataSource_rrd.php:492] [Map 1] altair.conf: RRD ReadDataFromR\
ealRRD: Returning (NULL,NULL,0)
it has worked just before, i don't understand !!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

So on the cacti graph, I guess you have a gap now... please see the Cacti HOWTO for NaN values in graphs.
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 »

no, i do not have gap, except for routeur_nattage_3845-2, but it is normal

i have 10+ links on this map and all are 0 with weathermap, but in cacti it is ok as you cas see here
Attachments
cacti_graph.JPG
cacti_graph.JPG (68.42 KiB) Viewed 4543 times
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:no, i do not have gap, except for routeur_nattage_3845-2, but it is normal

i have 10+ links on this map and all are 0 with weathermap, but in cacti it is ok as you cas see here
Interesting. And if you do Graph Debug in cacti (the little spanner), it shows the same filename as you use for your TARGET? For sure?

Because rrdtool isn't returning any data for that rrd file. It does exist, otherwise you'd get a different error. And it isn't related to locale, otherwise you would see something other than nan.

Wait - so you DO have gaps on routeur_nattage_3845-2? Well that is why weathermap shows 0 for that one, and why rrdtool shows nan.

What about one of the other links? What does that say in the debug log ReadData?
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:
tomate wrote:no, i do not have gap, except for routeur_nattage_3845-2, but it is normal

i have 10+ links on this map and all are 0 with weathermap, but in cacti it is ok as you cas see here
Interesting. And if you do Graph Debug in cacti (the little spanner), it shows the same filename as you use for your TARGET? For sure?

Because rrdtool isn't returning any data for that rrd file. It does exist, otherwise you'd get a different error. And it isn't related to locale, otherwise you would see something other than nan.

Wait - so you DO have gaps on routeur_nattage_3845-2? Well that is why weathermap shows 0 for that one, and why rrdtool shows nan.

What about one of the other links? What does that say in the debug log ReadData?
forget routeur_nattage_3845-2, there is no traffic at all on this router

i have another router, the graph i have posted comes from it, in cacti all is ok :
Attachments
cacti_graph.JPG
cacti_graph.JPG (108.31 KiB) Viewed 4535 times
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests