Boost 2.1 and Weathermap 0.96test

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 »

Dude! *READ* the logs, in order, not just grep all the similar lines! :-)

Start from the New Target line, and read the log. It tells the story.

Or at least post a section, from New Target: to Returning
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!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Sorry !!! :)

How's this:

01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:717] [Map 2] PERMALGROUP-REV1.conf: ReadData: New Target: !\wamp\bin\php\php5.2.6\php.exe \wamp\www\cacti\plugins\weathermap\tokyo.php
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:709] [Map 2] PERMALGROUP-REV1.conf: ReadData for NODE timelabel_Tokyo:
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:708] [Map 2] PERMALGROUP-REV1.conf:
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:868] [Map 2] PERMALGROUP-REV1.conf: ReadData: Setting 10,10
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 2] PERMALGROUP-REV1.conf: Adding note outscalecolor='#ffffff' to timelabel_Dubai
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 2] PERMALGROUP-REV1.conf: Adding note inscalecolor='#ffffff' to timelabel_Dubai
01/18/2009 07:54:42 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT id FROM plugin_realms WHERE plugin = 'weathermap' AND file = 'weathermap-cacti-plugin-mgmt.php'"
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 2] PERMALGROUP-REV1.conf: Adding note outscaletag='' to timelabel_Dubai
01/18/2009 07:54:42 PM - CMDPHP: Poller[0] DEBUG: SQL Assoc: "SELECT id FROM plugin_realms WHERE plugin = 'weathermap' AND file = 'weathermap-cacti-plugin.php'"
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 2] PERMALGROUP-REV1.conf: Adding note inscaletag='' to timelabel_Dubai
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 2] PERMALGROUP-REV1.conf: Adding note outscalekey='0_100' to timelabel_Dubai
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [add_note@Weathermap.class.php:89] [Map 2] PERMALGROUP-REV1.conf: Adding note inscalekey='0_100' to timelabel_Dubai
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [NewColourFromPercent@Weathermap.class.php:1080] [Map 2] PERMALGROUP-REV1.conf: NCFPC timelabel_Dubai '' 0_100 255 255 255
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [NewColourFromPercent@Weathermap.class.php:1080] [Map 2] PERMALGROUP-REV1.conf: NCFPC timelabel_Dubai '' 0_100 255 255 255
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:807] [Map 2] PERMALGROUP-REV1.conf: ReadData complete for NODE timelabel_Dubai: 10 10
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@Weathermap.class.php:803] [Map 2] PERMALGROUP-REV1.conf: Aggregate so far: 10 10
01/18/2009 07:54:42 PM - WEATHERMAP: Poller[0] DEBUG: [ReadData@WeatherMapDataSource_external.php:78] [Map 2] PERMALGROUP-REV1.conf: ExternalScript ReadData: Returning (10,10,1232308482)
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

mcutting wrote:Sorry !!! :)

How's this:
Perect, except it's for a node that uses an external script, and not a link that uses an rrd ;-) I see your PM though, so I'll look 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!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Howie wrote:
mcutting wrote:Sorry !!! :)

How's this:
Perect, except it's for a node that uses an external script, and not a link that uses an rrd ;-) I see your PM though, so I'll look there.
Howie - thanks for this (and your patience!). Let me know if I can do anything to assist in the meantime.

Regds
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

There were two parts to the resolution of this, just for the record...

One was a simple typo, so poller_ouput wasn't enabled.

The other was to do with filename matching on Windows. It looks like poller_output support has probably never worked on Windows. This is now fixed in the svn (and therefore 0.96) version of weathermapdatasource_rrd.php
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!)
xarses
Posts: 24
Joined: Tue Jan 27, 2009 3:08 pm

Post by xarses »

I noted a couple of posts back that there should be data in the table weathermap_data. while mine is constantly empty i decided to grep the weathermap files for "database" it turns out that cacti-pick.php will settle with the config found in include/global.php even if you have a differing db defined in include/config.php. I changed my global.php to match the correct db definition and it appears to be working for me.

Boost 2.1
PHP-Weathermap 0.95b

~X

[edit] never mind, I'm getting weathermap to run for about 5-6 polls after boost runs, but then it stops again.
Last edited by xarses on Mon Feb 02, 2009 7:01 pm, edited 1 time in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

xarses wrote:I noted a couple of posts back that there should be data in the table weathermap_data. while mine is constantly empty i decided to grep the weathermap files for "database" it turns out that cacti-pick.php will settle with the config found in include/global.php even if you have a differing db defined in include/config.php. I changed my global.php to match the correct db definition and it appears to be working for me.

Boost 2.1
PHP-Weathermap 0.95b

~X
Odd, because cacti-pick doesn't have anything to do with poller_output support, and global.php includes config.php...
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!)
xarses
Posts: 24
Joined: Tue Jan 27, 2009 3:08 pm

Post by xarses »

Well spoke too soon, and looks like i edited after your response Howie.

I'm not seeing any data in the weathermap_data table. and like i noted i seem to get the map drawn for a couple of pulls after boost updates but then the data starts to trickle off. I do see

When its working i see the following in my log:

Code: Select all

02/02/2009 04:22:14 PM - WEATHERMAP: Poller[0] [Map 2] Infra.Overview.3: ColourFromPercent: Scale DEFAULT doesn't cover 0.724614114664% for node04690-node04316 [WMWARN29]
When it's not working i see:

Code: Select all

02/02/2009 04:28:15 PM - WEATHERMAP: Poller[0] [Map 2] Infra.Overview.3: ReadData: LINK node04715-node04477, target: /var/www/cacti-0.8.7c/rra/3560g-2_traffic_in_4968.rrd on config line 224 had no valid data, according to WeatherMapDataSource_rrd
02/02/2009 04:28:15 PM - WEATHERMAP: Poller[0] [Map 2] Infra.Overview.3: ReadData: LINK node04690-node04452, target: /var/www/cacti-0.8.7c/rra/3560g-1_mypna_com_traffic_in_4242.rrd on config line 218 had no valid data, according to WeatherMapDataSource_rrd
02/02/2009 04:28:15 PM - WEATHERMAP: Poller[0] [Map 2] Infra.Overview.3: ReadData: LINK node04715-node04437, target: /var/www/cacti-0.8.7c/rra/3560g-2_traffic_in_4975.rrd on config line 211 had no valid data, according to WeatherMapDataSource_rrd
02/02/2009 04:28:15 PM - WEATHERMAP: Poller[0] [Map 2] Infra.Overview.3: ReadData: LINK node04690-node04316, target: /var/www/cacti-0.8.7c/rra/3560g-1_mypna_com_traffic_in_4249.rrd on config line 204 had no valid data, according to WeatherMapDataSource_rrd 
If I hover over the graph it will render again. I've turned on debugging but there is so much output that I have no idea what to look for.

~X

[edit]
Ok, im a typo whore on the 'SET rrd_use_poller_output 1', looks like I'm getting data in the weathermap_data table and looks like the map is updating correctly. I'm still getting the Scale DEFAULT messages though.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

xarses wrote:

Code: Select all

02/02/2009 04:22:14 PM - WEATHERMAP: Poller[0] [Map 2] Infra.Overview.3: ColourFromPercent: Scale DEFAULT doesn't cover 0.724614114664% for node04690-node04316 [WMWARN29]
I'm still getting the Scale DEFAULT messages though.
OK... what this means is that your DEFAULT scale doesn't include any colour information for values less than 1. You need to add a line to cover that band.

Obviously I need to rewrite this particular message, because no-one understands what it means. What *should* it say, that would explain that to you better?

(by the way - what you described, where it 'works' (it was actually showing the same data each time) for a few polls and then stops is exactly why you need poller_output support. What's happening is that weathermap is reading the rrd file, but boost is no longer updating it. Weathermap will only read data that's up to 15 minutes old, after which it says it's invalid. When you hover over a graph, you are forcing boost to dump the data for that graph into the rrd file to draw the graph, so it works again)
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!)
xarses
Posts: 24
Joined: Tue Jan 27, 2009 3:08 pm

Post by xarses »

Howie wrote: Obviously I need to rewrite this particular message, because no-one understands what it means. What *should* it say, that would explain that to you better?
I would suggest couple things:
1) change the editor so it doesn't leave this gap when it generates the SCALE.
2) Put a translation into error code map 29 seems to be missing
3) Change the message to include SCALE instead of Scale, it helps to identify the complete tag.

Quite frankly I didn't understand what it meant because I made the majority of the map using the editor and only changed it by hand where it was necessary so I didn't pick up what each tag meant.
Mikf
Posts: 47
Joined: Fri Aug 13, 2004 11:35 am
Location: Paris, France

Post by Mikf »

Hello,
i have found this :

in
lib/datasources/WeatherMapDataSource_rrd.php
line 390

replace
$db_rrdname = str_replace($config["base_path"]."/rra","<path_rra>",$db_rrdname);
by
$db_rrdname = str_replace($config["rra_path"],"<path_rra>",$db_rrdname);

on debian (or ubuntu) rra_path is not base_path/rra
base_path=/usr/share/cacti/site
rra_path=/var/lib/cacti/rra


Jerome.
Mikf
Posts: 47
Joined: Fri Aug 13, 2004 11:35 am
Location: Paris, France

Post by Mikf »

same in setup.php in function weathermap_poller_output for rra_path

edit : working well after replacing rra_path in setup.php , and waiting for 2 or 3 runs of poller.

(boost 2.4, weathermap 0.95b)

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

Post by Howie »

I'm thinking about getting a t-shirt made that says "* except in Debian" :-)

I'll add your change into the next release. thanks!
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 4 guests