|
|
| Author |
Message |
Diggit2001 Cacti User
Joined: 03 May 2005 Posts: 78 Location: MD, US
|
Posted: Tue Mar 18, 2008 10:32 am Post subject: [SOLVED] Scale Problem |
|
|
I just updated to weathermap 0.95a and now my logs are filling up with errors like this:
| Quote: | 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:
| Quote: | 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
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2132 Location: United Kingdom
|
Posted: Tue Mar 18, 2008 11:05 am Post subject: |
|
|
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
|
|
| Back to top |
|
 |
dave99
Joined: 17 Mar 2006 Posts: 19
|
Posted: Tue Mar 18, 2008 12:33 pm Post subject: |
|
|
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.
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2132 Location: United Kingdom
|
Posted: Tue Mar 18, 2008 12:52 pm Post subject: |
|
|
| 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.
|
|
| Back to top |
|
 |
Diggit2001 Cacti User
Joined: 03 May 2005 Posts: 78 Location: MD, US
|
Posted: Tue Mar 18, 2008 2:18 pm Post subject: |
|
|
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:
| Quote: | 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
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2132 Location: United Kingdom
|
Posted: Tue Mar 18, 2008 3:26 pm Post subject: |
|
|
| 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:
| Quote: | 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
|
|
| Back to top |
|
 |
Diggit2001 Cacti User
Joined: 03 May 2005 Posts: 78 Location: MD, US
|
Posted: Tue Mar 18, 2008 3:29 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
Diggit2001 Cacti User
Joined: 03 May 2005 Posts: 78 Location: MD, US
|
Posted: Tue Mar 18, 2008 3:34 pm Post subject: |
|
|
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
|
|
| Back to top |
|
 |
Diggit2001 Cacti User
Joined: 03 May 2005 Posts: 78 Location: MD, US
|
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2132 Location: United Kingdom
|
Posted: Tue Mar 18, 2008 5:40 pm Post subject: |
|
|
Here's what I use for most of mine:
| Code: |
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: |
KEYPOS DEFAULT 730 320 Traffic Load
KEYSTYLE DEFAULT vertical 230
|
to make the legend into a continuous bar instead of the default 'steps' one.
| Description: |
|
| Filesize: |
3.59 KB |
| Viewed: |
1787 Time(s) |

|
|
|
| Back to top |
|
 |
Diggit2001 Cacti User
Joined: 03 May 2005 Posts: 78 Location: MD, US
|
Posted: Tue Mar 18, 2008 5:41 pm Post subject: |
|
|
Ahh, this is the kind of thing I was looking for.
Thanks very much.
-Chris
|
|
| Back to top |
|
 |
|