Weathermap 0.97a Released

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 »

Well congratulations, that's the first 0.97a bug as far as I know. Please edit line 273 and change both $link_config to be $node_config

Bad cut & paste job... :oops:
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!)
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

yes baby, i am the winner :lol:

i changed it --> everything looks fine. thx
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

hi there,

is it a normal behavior:

1.open a map from dashbord
2.select another map via 'Jump to..'
3.wait for refresh
-->the first map is reload

greetz
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

uhtred wrote:hi there,

is it a normal behavior:

1.open a map from dashbord
2.select another map via 'Jump to..'
3.wait for refresh
-->the first map is reload

greetz
Did you press the Go button?

If you didn't then yes, it's expected behaviour.
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!)
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

yes i did

the problem is, the refresh is in the head of the html site.
If u open a site via 'jump to..', the parameter 'id' of the request doesn't change. So the old page will be loaded again.
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

uhtred wrote:yes i did

the problem is, the refresh is in the head of the html site.
If u open a site via 'jump to..', the parameter 'id' of the request doesn't change. So the old page will be loaded again.
Ah - I see what you mean.

The solution is to change the line in weathermap-cacti-plugin.php that contains "weathermap_select" from method=post to method=get.
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!)
uhtred
Cacti User
Posts: 121
Joined: Fri Oct 09, 2009 8:59 am
Location: Germany

Post by uhtred »

hi,

i tried to add a negative scale to one of my maps, but it doesn't work anymore.
Here is the error log:
07/13/2010 09:07:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 5] ons-hv-inside.conf: NewColourFromPercent: Clipped -50% to 0% for item p2-17/2-rx_optical_performance [WMWARN34]
07/13/2010 09:07:37 AM - WEATHERMAP: Poller[0] WARNING: [Map 5] ons-hv-inside.conf: NewColourFromPercent: Clipped -2.6% to 0% for item p1-17/2-rx_optical_performance [WMWARN34]

Here is my conf:
SCALE trunk_perfor -50 -39.9 0 255 0 images/ons_trunk_3.png
SCALE trunk_perfor -39.9 30 255 0 0 images/ons_trunk_1.png

NODE p1-17/2-rx_optical_performance
INFOURL {map:cacti_url}graph.php?action=view&rra_id=all&local_graph_id={node:this:graph_id}
OVERLIBGRAPH {map:cacti_url}graph_image.php?local_graph_id={node:this:graph_id}&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
ICON 6 9 {node:this:inscaletag}
TARGET 0.1*gauge:../../rra/p1_co_1min_opt_rx_1916.rrd:co_1_opt_rx:-
USESCALE trunk_perfor in
POSITION 550 310
SET graph_id 1597

Where is my mistake? it was working in 0.97-test4.

thx
System: Ubuntu 10.04lts@64bit, 2*X5650, 12GB, Cacti 0.8.7g, Spine 0.8.7g, PA2.9, Weathermap 0.97a, CAMM 1.6.75, monitor 1.3.1, realtime 0.43, thold 0.4.9.3, manage 0.6.2, mactrack 2.9(.1) ---- 508 devices, 6741 items, 4263 ds, time 7.01s, intervall 60, proc. 12, threads 14, php server 8
User avatar
wwwdrich
Cacti User
Posts: 91
Joined: Thu Feb 03, 2005 5:53 pm
Location: San Jose, CA
Contact:

Two problems with scales

Post by wwwdrich »

Howie,

I am trying to take advange of your new absolute scales and have run into what appears to be two bugs.

1. I can't get the multipliers working on scale values. For example, the following gives me an error. If I replace the "K" values with numbers it works fine.

Code: Select all

SET key_hidepercent_Messages 1
SCALE Messages 0   0    128 128 128
SCALE Messages 0   5K     0 255   0     255 255   0
SCALE Messages 5K  15K  255 255   0     240 240   0
SCALE Messages 15K 50K  240 240   0     255   0   0

Code: Select all

08/09/2010 10:01:42 AM - WEATHERMAP: Poller[0] WARNING: [Map 20] mail.conf: Unrecognised config on line 32: SCALE Messages 0   5K         0 255   0     255 255   0
08/09/2010 10:01:42 AM - WEATHERMAP: Poller[0] WARNING: [Map 20] mail.conf: Unrecognised config on line 33: SCALE Messages 5K  15K      255 255   0     240 240   0
08/09/2010 10:01:42 AM - WEATHERMAP: Poller[0] WARNING: [Map 20] mail.conf: Unrecognised config on line 34: SCALE Messages 15K 50K      240 240   0     255   0   0
2. Absolute values are working on the links with "USESCALE Messages absolute", but I can't get the key to display anything other than percentages. Using the scale above I end up with a green scale that goes from 0% - 100%.
- Dan
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Two problems with scales

Post by Howie »

wwwdrich wrote:Howie,

I am trying to take advange of your new absolute scales and have run into what appears to be two bugs.

1. I can't get the multipliers working on scale values. For example, the following gives me an error. If I replace the "K" values with numbers it works fine.

Code: Select all

SET key_hidepercent_Messages 1
SCALE Messages 0   0    128 128 128
SCALE Messages 0   5K     0 255   0     255 255   0
SCALE Messages 5K  15K  255 255   0     240 240   0
SCALE Messages 15K 50K  240 240   0     255   0   0

Code: Select all

08/09/2010 10:01:42 AM - WEATHERMAP: Poller[0] WARNING: [Map 20] mail.conf: Unrecognised config on line 32: SCALE Messages 0   5K         0 255   0     255 255   0
08/09/2010 10:01:42 AM - WEATHERMAP: Poller[0] WARNING: [Map 20] mail.conf: Unrecognised config on line 33: SCALE Messages 5K  15K      255 255   0     240 240   0
08/09/2010 10:01:42 AM - WEATHERMAP: Poller[0] WARNING: [Map 20] mail.conf: Unrecognised config on line 34: SCALE Messages 15K 50K      240 240   0     255   0   0
Ooops! I missed K out of the regexp, specifially. I've fixed this in 0.98/svn.

The fix is very simple though - look at around line 2658 in Weathermap.class.php for the huge long if statement that says 'one REGEXP to rule them all' above it. In there are two places where it says munMGT and should say munKMGT.
2. Absolute values are working on the links with "USESCALE Messages absolute", but I can't get the key to display anything other than percentages. Using the scale above I end up with a green scale that goes from 0% - 100%.
What kind of key is it? I have to admit I didn't put too much time into absolute scales, so it doesn't surprise me that the edges are rough...
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!)
User avatar
wwwdrich
Cacti User
Posts: 91
Joined: Thu Feb 03, 2005 5:53 pm
Location: San Jose, CA
Contact:

Re: Two problems with scales

Post by wwwdrich »

Howie wrote:Howie,
Ooops! I missed K out of the regexp, specifially. I've fixed this in 0.98/svn.

The fix is very simple though - look at around line 2658 in Weathermap.class.php for the huge long if statement that says 'one REGEXP to rule them all' above it. In there are two places where it says munMGT and should say munKMGT.
Great! That was an easy fix.
Howie wrote:
wwwdrich wrote: 2. Absolute values are working on the links with "USESCALE Messages absolute", but I can't get the key to display anything other than percentages. Using the scale above I end up with a green scale that goes from 0% - 100%.
What kind of key is it? I have to admit I didn't put too much time into absolute scales, so it doesn't surprise me that the edges are rough...
This one is a message count -- I'm trying to give our management in impression of the number of messages we are handling through our mail gateways.

Here is the relevant lines from the config:

Code: Select all

SET key_hidepercent_Messages 1
KEYPOS Messages 900 10 Messages
KEYSTYLE Messages vertical
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255

SCALE Messages 0   0    128 128 128  
SCALE Messages 0   5000   0 255   0     255 255   0
SCALE Messages 5000  15000      255 255   0     240 240   0
SCALE Messages 15000 50000      240 240   0     255   0   0  
- Dan
[i] "Step up to red alert!" "Are you sure, sir?[/i]
[i] It means changing the bulb in the sign..." - Red Dwarf[/i]
Nice
Posts: 30
Joined: Mon Sep 20, 2010 9:23 am
Location: Lede, Belgium

Re: Weathermap 0.97a Released

Post by Nice »

posted in a wrong topic.
Sorry
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Re:

Post by msw1970 »

Howie wrote:Linux cactiback 2.6.18-164.9.1.el5 #1 SMP Tue Dec 15 21:04:57 EST 2009 i686 i686 i386 GNU/Linux

CentOS release 5.4 (Final)

Both useiconscale methods are working for me.

So... could you get a small config that does the same thing with the same icon? And then I'll try that.
Was this ever resolved? I'm having the same issue.
DLNoah
Cacti User
Posts: 119
Joined: Wed Jun 20, 2007 11:27 pm

Re: Re:

Post by DLNoah »

msw1970 wrote:
Howie wrote:Linux cactiback 2.6.18-164.9.1.el5 #1 SMP Tue Dec 15 21:04:57 EST 2009 i686 i686 i386 GNU/Linux

CentOS release 5.4 (Final)

Both useiconscale methods are working for me.

So... could you get a small config that does the same thing with the same icon? And then I'll try that.
Was this ever resolved? I'm having the same issue.
We were able to determine that my image was saved with a 24-bit pallete, while weathermap was expecting an 8-bit pallete. Weathermap tried to convert the image to 8-bit, but that conversion didn't work correctly (Howie said something about it not preserving the alpha). Changing my base image to an 8-bit pallete image using an image editor (such as Paint.NET) resolved the problem with USEICONSCALE that I reported.
msw1970
Cacti User
Posts: 206
Joined: Tue Jan 09, 2007 8:28 am
Location: London, UK

Re: Re:

Post by msw1970 »

DLNoah wrote:
msw1970 wrote:
Howie wrote:Linux cactiback 2.6.18-164.9.1.el5 #1 SMP Tue Dec 15 21:04:57 EST 2009 i686 i686 i386 GNU/Linux

CentOS release 5.4 (Final)

Both useiconscale methods are working for me.

So... could you get a small config that does the same thing with the same icon? And then I'll try that.
Was this ever resolved? I'm having the same issue.
We were able to determine that my image was saved with a 24-bit pallete, while weathermap was expecting an 8-bit pallete. Weathermap tried to convert the image to 8-bit, but that conversion didn't work correctly (Howie said something about it not preserving the alpha). Changing my base image to an 8-bit pallete image using an image editor (such as Paint.NET) resolved the problem with USEICONSCALE that I reported.
How did you determine that and how did you change it to an 8-bit pallete? I've tried paint.NET and GIMP and cannot see where to check and change it.

Thanks
zeki
Cacti User
Posts: 92
Joined: Fri Feb 09, 2007 10:55 pm
Location: So. Cal
Contact:

Re: Weathermap 0.97a Released

Post by zeki »

I get the same error:
Notice: Undefined variable: link_config in /var/www/cacti/plugins/weathermap/editor.php on line 273
http://www.krypt.com/
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests