Weathermap broke after switching to 64bit counters

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
Aligator
Posts: 7
Joined: Mon Jul 24, 2006 1:37 am
Location: Tasmania, Aust.

Weathermap broke after switching to 64bit counters

Post by Aligator »

Greetings,

I have successfully installed Cacti and Weathermap plug-in, on RedHat Enterprise 4 x86. All was working great, and had just finsihed adding the OVERLIBGRAPH and INFOURL. All was fine. It seems to process almost 1000 datasources in under 4 seconds, arrows in Weathermap were different colours etc...

After reading some forums, I realised that I needed to convert some of my data collected to 64 bit, as they were going to be upgraded to gig thruput, not the currect 34M E3 max. So I deleted the graphs on the device (24 port Cisco gig switch), and added a new set of 64-bit counter In/Out graphs.

These seem to be collected by Cacti/cactid just fine, and the graphs display just fine, and the vaues match the switch interface stats. In Weathermap, I edited the config because the rrd file number had changed from 4xx to 8xx file numbers as cacti does not seem to recylce identifiers for the new graphs, and it had created fresh rrd files. The hover graphs still work just fine and match the cacti graphs (after all they are being generated by cacti/graph_image). However, the utilisation values have disappeared off the weathermap arrows. All but two links now display 0 (zero) in both directions. Two links display values that are rubbish.

Should I be expecting normal values on the arrows with a 64-bit rrd file?
07/24/2006 04:45:05 PM - SYSTEM STATS: Time:3.5416 Method:cactid Processes:1 Threads:3 Hosts:24 HostsPerProcess:24 DataSources:993 RRDsProcessed:468
07/24/2006 04:45:05 PM - WEATHERMAP: Poller[0] Weathermap 0.82 in da house
07/24/2006 04:45:05 PM - WEATHERMAP: Poller[0] Normal logging mode. If things are going wrong, turn on DEBUG in Cacti for more information!
07/24/2006 04:45:05 PM - WEATHERMAP: Poller[0] Map: /var/www/cacti/plugins/weathermap/configs/Hobart-CBD.conf -> /var/www/cacti/plugins/weathermap/output/weathermap_3.html & /var/www/cacti/plugins/weathermap/output/weathermap_3.png
07/24/2006 04:45:06 PM - WEATHERMAP: Poller[0] About to write image file. If this is the last message in your log, increase memory_limit in php.ini
07/24/2006 04:45:07 PM - WEATHERMAP: Poller[0] Wrote map to /var/www/cacti/plugins/weathermap/output/weathermap_3.png and /var/www/cacti/plugins/weathermap/output/weathermap_thumb_3.png
07/24/2006 04:45:07 PM - WEATHERMAP: Poller[0] Weathermap has left the building
Typical Link:
LINK sb-ap16-core-2-cm-lan
NODES cm-lan sb-ap16-core
BANDWIDTH 34M
WIDTH 8
TARGET ../../rra/conservatorium_wan_router_3750g_traffic_in_854.rrd
OVERLIBGRAPH http://cacti-host/cacti/graph_image.php ... 4&rra_id=1
INFOURL http://cacti-host/cacti/graph.php?rra_i ... aph_id=854
A debug from weathermap when run by hand (same result as the one generated by poller)
ReadData for Link sb-ap16-core-2-cm-lan:
New Target: ../../rra/conservatorium_wan_router_3750g_traffic_in_854.rrd (../../rra/conservatorium_wan_router_3750g_traffic_in_854.rrd)
ReadData: Updating link sb-ap16-core-2-cm-lan from RRD Target ../../rra/conservatorium_wan_router_3750g_traffic_in_854.rrd
ReadFromRRD: Target DS names are traffic_in and traffic_out
ReadFromRRD: Running: /usr/bin/rrdtool fetch ../../rra/conservatorium_wan_router_3750g_traffic_in_854.rrd AVERAGE --start now-800
> 1153723500: 0.0000000000e+00 0.0000000000e+00
> 1153723800: 0.0000000000e+00 0.0000000000e+00
> 1153724100: nan nan
> --
--1153724100: nan nan

ReadFromRRD: 1: This isn't a number: [nan]
ReadFromRRD: 2: This isn't a number: [nan]
--1153723800: 0.0000000000e+00 0.0000000000e+00

ReadFromRRD: Found a good line: 1153723800: 0.0000000000e+00 0.0000000000e+00
( traffic_in traffic_out
)
--1153723500: 0.0000000000e+00 0.0000000000e+00

ReadFromRRD: Our line is 1153723800: 0.0000000000e+00 0.0000000000e+00

ReadFromRRD: Returning (0,0)
ReadData: Setting 0,0

The same RRD file generates valid graphs in Cacti.

Has anyone seen this problem with 64-bit counters?

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

Post by Howie »

That appears to be an rrdtool issue at first glance - it's actually returning lines with 0 data there, which would be why weathermap does the same. I've never tried 64-bit counters personally. Even the few gig links we have don't run much above 100M. That said we're also about to take delivery of a few 3750Gs, so I'll have a little experiment :-)

I don't think there's any reason that weathermap would fail in this situation, but I'll get my spare cacti install up and running and try it there.
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!)
Aligator
Posts: 7
Joined: Mon Jul 24, 2006 1:37 am
Location: Tasmania, Aust.

Post by Aligator »

I found the problem, as I was adding another couple of devices. I had made an assumption that the RRD file name matched the local_graph_id value, but they dont. Once I pointed the TARGET line to the correct rrd file with a different number to the graph_id, the values started to appear. A bit of a gotcha, or just unfamiliarity. Have to burrow into each graph under cacti to see how it is being generated to find the rrd number.

Now if only I could work out how to get the editor going. That darn gd/php is/isnt enabled problem.

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

Post by Howie »

Aligator wrote:I found the problem, as I was adding another couple of devices. I had made an assumption that the RRD file name matched the local_graph_id value, but they dont. Once I pointed the TARGET line to the correct rrd file with a different number to the graph_id, the values started to appear. A bit of a gotcha, or just unfamiliarity. Have to burrow into each graph under cacti to see how it is being generated to find the rrd number.

Now if only I could work out how to get the editor going. That darn gd/php is/isnt enabled problem.

Cheers.
Yeah. That's too bad. The editor would have done all that work for you (including the OVERLIB stuff). I would say it's worth playing a little to get GD going.

Another solution would be to use the 'auto-overlib' script on my site. That needs a working perl, but it does the same job of filling in the overlib entries. It's old, but it should still work, as far as I can see. It relies on you having the correct TARGETs though.
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 2 guests