NewColourFromPercent Error

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
Syngress
Posts: 26
Joined: Tue Apr 24, 2007 9:17 am

NewColourFromPercent Error

Post by Syngress »

Hi,

After upgrading my weathermap from 0.941 to 0.96a I am seeing the below error in my logs on occasion...

07/07/2009 09:25:10 AM - WEATHERMAP: Poller[0] WARNING: [Map 24] Foundry Network: NewColourFromPercent: Scale DEFAULT doesn't include 0.0099416954208% while drawing item ps-1.CHC2-ps-3.CHC2 [WMWARN29]

Any ideas?

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

Post by Howie »

The scale called DEFAULT doesn't have a line that covers percntages from 0 to 1. What should this message have said, that would explain this better? That's a serious question... several people have asked
about this one, and I thought it was obvious, but I guess not.
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!)
Syngress
Posts: 26
Joined: Tue Apr 24, 2007 9:17 am

Post by Syngress »

Hi Howie,

In our 0.941 config files we didn't have a 0 1 - we had a 0.01 10 0 255 0

This meant that any link that had a small amount of traffic was green, and any link with no traffic was automatically white.

I would guess something has been update between 0.941 & 0.96a so I have now amended our configs and everything is ok :)

The log message does make sense, its just it seemed by default in 0.941 the link would have been white (or no fill).

Thanks

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

Post by Howie »

Syngress wrote:Hi Howie,

In our 0.941 config files we didn't have a 0 1 - we had a 0.01 10 0 255 0

This meant that any link that had a small amount of traffic was green, and any link with no traffic was automatically white.

I would guess something has been update between 0.941 & 0.96a so I have now amended our configs and everything is ok :)

The log message does make sense, its just it seemed by default in 0.941 the link would have been white (or no fill).

Thanks

Mike
Yep - I did add that warning in 0.96. I also added a SET variable to disable it :-) I have just tweaked the message slightly for 0.97, too.
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
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

info for disable the log

Post by zorrosam »

please how we can disable this fastidious log?

or solving the conflict?

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

Re: info for disable the log

Post by Howie »

zorrosam wrote:please how we can disable this fastidious log?

or solving the conflict?

thanks
It's not *that* fastidious. You have a scale which doesn't cover the data that you have. So make it cover it!

Usually, it's:

Code: Select all

SCALE DEFAULT 0 1 255 255 255
So that there's a colour defined for 0-1%. Prior to 0.96, the DEFAULT scale that weathermap would insert for you had this problem, which is probably why you have it.

OR, you can disable the warning instead with:

Code: Select all

SET nowarn_scalemisses 1
in the top section of the map config file.
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
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

sorry ...

Post by zorrosam »

thanks my friend.

i have solved the problem and understand the new variable ... without set on disable it.

bye

sam
jwhitaker
Posts: 17
Joined: Sat Sep 11, 2010 11:24 pm
Contact:

Post by jwhitaker »

Must the scale entry be 0-1 to cover a percent of 0.x? I have an entry of 0-20 for the bottom of the scale, yet still see the warning for data between 0 and 1.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

jwhitaker wrote:Must the scale entry be 0-1 to cover a percent of 0.x? I have an entry of 0-20 for the bottom of the scale, yet still see the warning for data between 0 and 1.
No... yours should work too. Could you paste your scale lines and the warning please?
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!)
jwhitaker
Posts: 17
Joined: Sat Sep 11, 2010 11:24 pm
Contact:

Post by jwhitaker »

Oops I think this was user error. :) I had copied an example scale that started with 1-10 and eventually changed it to 0, but during that period the log was showing a clip of 0.xxx to 1. I now have a scale entry of 0-10 and it seems to be working just fine, including clipping negative percentages from an aggregate to 0. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests