I'm getting an error while trying to generate de PNG files.
The error is
Code: Select all
Notice: Undefined index: traffic_in in /var/www/weathermap/Weathermap.class.php
on line 1762
Notice: Undefined index: traffic_out in /var/www/weathermap/Weathermap.class.ph
p on line 1763
The png is generated but no link activity is shown on the map.
I'm using MRTG to generate the rrd files (using routers2.cgi to monitor links), and have a "standalone" weathermap instalation.
Here is the DEBUG:
Code: Select all
.
.
.
================== ReadData: Updating link data for all links
ReadData for Link node1165323723-node1165323959:
New Target: /var/rrdtool/dell_metro_g21.rrd (/var/rrdtool/dell_metro_g21.rrd)
ReadData: Updating link node1165323723-node1165323959 from RRD Target /var/rrdtool/dell_metro_g21.rrd
ReadFromRRD: Target DS names are traffic_in and traffic_out
ReadFromRRD: Running: /usr/bin/rrdtool fetch /var/rrdtool/dell_metro_g21.rrd AVERAGE --start now-800
> 1165335300: 4.2513438995e+05 1.0783833409e+05
> 1165335600: 4.6948385972e+05 8.3468932152e+04
> 1165335900: 3.4331537605e+05 7.6403702322e+04
> 1165336200: 3.8116359889e+05 8.1954930197e+04
> 1165336500: nan nan
> --
--1165336500: nan nan
ReadFromRRD: 1: This isn't a number: [nan]
ReadFromRRD: 2: This isn't a number: [nan]
--1165336200: 3.8116359889e+05 8.1954930197e+04
ReadFromRRD: Found a good line: 1165336200: 3.8116359889e+05 8.1954930197e+04
(timestamp ds0 ds1
)
--1165335900: 3.4331537605e+05 7.6403702322e+04
--1165335600: 4.6948385972e+05 8.3468932152e+04
--1165335300: 4.2513438995e+05 1.0783833409e+05
ReadFromRRD: Our line is 1165336200: 3.8116359889e+05 8.1954930197e+04
Notice: Undefined index: traffic_in in /var/www/weathermap/Weathermap.class.php on line 1762
Notice: Undefined index: traffic_out in /var/www/weathermap/Weathermap.class.php on line 1763
ReadFromRRD: Returning (0,0)
ReadData: Setting 0,0
.
.
.
Any clues?
Thank you,
L