Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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
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
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.
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
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:
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.
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.
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'.
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.