[SOLVED] Scale Problem

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

[SOLVED] Scale Problem

Post by Diggit2001 »

I just updated to weathermap 0.95a and now my logs are filling up with errors like this:
03/18/2008 11:17:01 AM - WEATHERMAP: Poller[0] [Map 2] rawinternet.conf: ColourFromPercent: Scale DEFAULT doesn't cover 0.000313412622224% for rawinternet-gatekeeper [WMWARN29]
03/18/2008 11:17:01 AM - WEATHERMAP: Poller[0] [Map 2] rawinternet.conf: ColourFromPercent: Scale DEFAULT doesn't cover 0.0418891171552% for rawinternet-itoffice [WMWARN29]
03/18/2008 11:17:01 AM - WEATHERMAP: Poller[0] [Map 2] rawinternet.conf: ColourFromPercent: Scale DEFAULT doesn't cover 0.0541116610488% for rawinternet-2205 [WMWARN29]
03/18/2008 11:17:01 AM - WEATHERMAP: Poller[0] [Map 2] rawinternet.conf: ColourFromPercent: Scale DEFAULT doesn't cover 0.0096335768536% for rawinternet-2205 [WMWARN29]
03/18/2008 11:17:01 AM - WEATHERMAP: Poller[0] [Map 2] rawinternet.conf: ColourFromPercent: Scale DEFAULT doesn't cover 0.000313412622224% for rawinternet-gatekeeper [WMWARN29]
03/18/2008 11:17:01 AM - WEATHERMAP: Poller[0] [Map 2] rawinternet.conf: ColourFromPercent: Scale DEFAULT doesn't cover 0.0418891171552% for rawinternet-itoffice [WMWARN29]
03/18/2008 11:17:01 AM - WEATHERMAP: Poller[0] [Map 2] rawinternet.conf: ColourFromPercent: Scale DEFAULT doesn't cover 0.0541116610488% for rawinternet-2205 [WMWARN29]
03/18/2008 11:17:01 AM - WEATHERMAP: Poller[0] [Map 2] rawinternet.conf: ColourFromPercent: Scale DEFAULT doesn't cover 0.0096335768536% for rawinternet-2205 [WMWARN29]
Looking at the config, I do not have a bandwidth statement, I only have this:
LINK DEFAULT
ARROWSTYLE classic
BWLABEL bits
I have separate bandwidth statements for each link, either BANDWIDTH 100M or BANDWIDTH 1000M. The link to 2205 above is the only 1000M link I have, all others are 100M.

Can anyone tell me what exactly I'm doing wrong? I appreciate the help.
-Chris
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Your scale starts at 1%, and the percentage usage is less than 1%

The default bandwidth is 100M on links, but that's not really relevant. The point is that your DEFAULT scale doesn't cover the full range from 0-100%. Probably what you want is something like:

# grey for absolute 0 traffic
SCALE 0 0 192 192 192
# change the first 'real' SCALE line to start from 0 instead of 1
SCALE 0 20 255 0 255
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!)
dave99
Posts: 26
Joined: Fri Mar 17, 2006 11:12 pm

Post by dave99 »

Shouldn't that first scale statement =:
SCALE 0 1 192 192 192

So that from 0 to 1% is grey, otherwise it seems to read that only 0.0% would be affected, 0-1% wouldn't be covered by a scale.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

dave99 wrote:Shouldn't that first scale statement =:
SCALE 0 1 192 192 192

So that from 0 to 1% is grey, otherwise it seems to read that only 0.0% would be affected, 0-1% wouldn't be covered by a scale.
Well it's up to you. As I said in the comments, my suggestion was to seperate out 0.0% as a special case, and extend the next band so that it starts at 0, so 0-1% is covered.
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
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Post by Diggit2001 »

OK, now that I've RTFM, I see how the whole scale thing works. I have changed the scales on all my configs to this:
SCALE 0 1 192 192 192
SCALE 1 25 0 240 0
SCALE 26 50 240 240 0
SCALE 51 75 255 192 0
SCALE 76 100 255 0 0
Now, everything is running great.

Thanks for the info.
-Chris
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Diggit2001 wrote:OK, now that I've RTFM, I see how the whole scale thing works. I have changed the scales on all my configs to this:
SCALE 0 1 192 192 192
SCALE 1 25 0 240 0
SCALE 26 50 240 240 0
SCALE 51 75 255 192 0
SCALE 76 100 255 0 0
Now, everything is running great.

Thanks for the info.
-Chris
Not quite. If you had a 25.5% or 50.5% or 75.5% it wouldn't be covered again. There needs to be no gap between the scale lines. But you're on the right track :-)
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
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Post by Diggit2001 »

Dangit. Back to the drawing board, I guess.

Actually, I ended up not being happy with the larger gaps between colors so I'm revisiting the scale thing. I will keep your advice in mind.

Thanks for the help.
-Chris
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Post by Diggit2001 »

Is there anyone out there that would be willing to post their SCALE configs? I'm just looking for options that would do the job and look decent.

Thanks.
-Chris
User avatar
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Post by Diggit2001 »

Ah, never mind. My biggest issue was deciphering the color codes but I just found this site that really helps: http://www.pitt.edu/~nisg/cis/web/cgi/rgb.html.

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

Post by Howie »

Here's what I use for most of mine:

Code: Select all

SCALE DEFAULT 0 0   120 120 120
SCALE DEFAULT 0 20   0 0 255   0 255 255
SCALE DEFAULT 20 40   0 255 255   0 255 0
SCALE DEFAULT 40 70   0 255 0   255 255 0
SCALE DEFAULT 70 100   255 255 0   255 0 0
Those are almost all 'gradient' lines, so between 0 and 20, the colour fades nicely from 0,0,255 (pure blue) to 0,255,255 (cyan). Looks nice along with:

Code: Select all

KEYPOS DEFAULT 730 320 Traffic Load
KEYSTYLE  DEFAULT vertical 230
to make the legend into a continuous bar instead of the default 'steps' one.
Attachments
gradients.png
gradients.png (3.59 KiB) Viewed 10511 times
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
Diggit2001
Cacti User
Posts: 195
Joined: Tue May 03, 2005 4:29 pm
Location: MD, US

Post by Diggit2001 »

Ahh, this is the kind of thing I was looking for.

Thanks very much.
-Chris
mduling
Posts: 39
Joined: Tue Mar 01, 2005 1:49 pm

Add a 'SCALE DEFAULT 0 0 120 120 120' to simple.conf

Post by mduling »

I think it would be a good idea to add a 'SCALE DEFAULT 0 0' entry to simple.conf. My conf file was based on simple and I had to figure out the problem with the 'DEFAULT doesn't cover 0.068799659656%' messages. Adding an entry like that might make for saner defaults for new users.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

If you have no scale at all, the default default actually does go down to zero (if you delete all the scale lines, there's a built-in default). So I guess you're right - fixing the example maps that come with the package is probably the answer. I'll make sure that's done for the next release.
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!)
mduling
Posts: 39
Joined: Tue Mar 01, 2005 1:49 pm

cool

Post by mduling »

Glad you liked the suggestion. BTW, the addition to my simple.conf derived file needed to be 'SCALE DEFAULT 0 1', not '0 0' since the first entry in that file was '1 10'.

Thanks for all the work you do!
fozzy99999
Posts: 3
Joined: Mon Mar 24, 2008 2:12 pm

Post by fozzy99999 »

Any suggestions to deal with numbers over 100%. I am creating some weathermaps for ping response times and response time over 100 is not uncommon for some of our connections. The problem seem to be in the ColourFromPercent function.

I have tried
SCALE DEFAULT 0 0 120 120 120
SCALE DEFAULT 0 70 0 0 255
SCALE DEFAULT 70 120 0 255 255
SCALE DEFAULT 120 180 0 255 0
SCALE DEFAULT 180 400 255 0 0
and it is clipping my scale down to 100 percent,

I am thinking i may have to modify weathermap to get the desired results but I don't know where to start. Any help would be greatly appreciated.
Attachments
WM_legend.jpg
WM_legend.jpg (7.94 KiB) Viewed 8182 times
WM_log.jpg
WM_log.jpg (218.96 KiB) Viewed 8182 times
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest