Problems Weathermap LEGEND displaying absolute values

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
tcprado
Posts: 23
Joined: Fri Apr 12, 2013 7:25 am

Problems Weathermap LEGEND displaying absolute values

Post by tcprado »

SET key_hidepercent_DEFAULT 1
SET key_hidezero_DEFAULT 1
SCALE DEFAULT 0 0 192 192 192
SCALE DEFAULT 0 1M 255 255 255 0 255 0 0-1M
SCALE DEFAULT 1M 10M 0 255 0 200 255 0 1M-10M
SCALE DEFAULT 10M 25M 200 255 0 255 255 0 10M-25M
SCALE DEFAULT 25M 40M 255 255 0 255 200 0 25M-40M
SCALE DEFAULT 40M 55M 255 200 0 255 150 0 40M-55M
SCALE DEFAULT 55M 70M 255 150 0 255 75 0 55M-70M
SCALE DEFAULT 70M 85M 255 75 0 200 0 150 70M-85M
SCALE DEFAULT 85M 95M 200 0 150 125 0 125 85M-95M
SCALE DEFAULT 95M 100M 125 0 125 125 0 125 95M-100M

displays the following:
Capturar.PNG
Capturar.PNG (3.36 KiB) Viewed 2277 times
I would expect it to abbreviate so in the legend, instead of 10000000-25000000 it would display 10M-25M. How can I accomplish that?

If I change the style using KEYSTYLE DEFAULT horizontal it completely breaks the LEGEND:
Capturar1.PNG
Capturar1.PNG (1.94 KiB) Viewed 2277 times
User avatar
Happiness0
Cacti User
Posts: 63
Joined: Wed Oct 29, 2014 5:01 am
Contact:

Re: Problems Weathermap LEGEND displaying absolute values

Post by Happiness0 »

Copy/pasting your legend into a map of mine give me the expected result, maybe there is something wrong with the rest of your configuration.

Image
tcprado
Posts: 23
Joined: Fri Apr 12, 2013 7:25 am

Re: Problems Weathermap LEGEND displaying absolute values

Post by tcprado »

Happiness0 wrote:Copy/pasting your legend into a map of mine give me the expected result, maybe there is something wrong with the rest of your configuration.

Image
That's interesting. Can you post your entire config? At least the map settings and header. not the links and hosts.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Problems Weathermap LEGEND displaying absolute values

Post by Howie »

I hadn't noticed that you have the text that you want at the end of each SCALE line.

With that in there, 'KEYSTYLE DEFAULT tags' should also get you what you want.
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
Happiness0
Cacti User
Posts: 63
Joined: Wed Oct 29, 2014 5:01 am
Contact:

Re: Problems Weathermap LEGEND displaying absolute values

Post by Happiness0 »

Code: Select all

BACKGROUND images/bw_test.png
WIDTH 2108
HEIGHT 862
HTMLSTYLE overlib
KEYFONT 112
TITLE xxxx
TIMEPOS 746 17 CREATED: %B %D %Y %H:%M:%S

KEYPOS DEFAULT 47 490 nombre d'erreurs
KEYSTYLE  DEFAULT tags
KEYTEXTCOLOR 0 0 0
KEYOUTLINECOLOR 0 0 0
KEYBGCOLOR 255 255 255
BGCOLOR 255 255 255
TITLECOLOR 0 0 0
TIMECOLOR 0 0 0
SET key_hidepercent_DEFAULT 1
SET key_hidezero_DEFAULT 1
SCALE DEFAULT 0 0 192 192 192
SCALE DEFAULT 0 1M 255 255 255 0 255 0 0-1M
SCALE DEFAULT 1M 10M 0 255 0 200 255 0 1M-10M
SCALE DEFAULT 10M 25M 200 255 0 255 255 0 10M-25M
SCALE DEFAULT 25M 40M 255 255 0 255 200 0 25M-40M
SCALE DEFAULT 40M 55M 255 200 0 255 150 0 40M-55M
SCALE DEFAULT 55M 70M 255 150 0 255 75 0 55M-70M
SCALE DEFAULT 70M 85M 255 75 0 200 0 150 70M-85M
SCALE DEFAULT 85M 95M 200 0 150 125 0 125 85M-95M
SCALE DEFAULT 95M 100M 125 0 125 125 0 125 95M-100M

SCALE updown 0    0     91 252  97  up_test.jpg
SCALE updown 0    3    254 126  77  unknown_test.jpg
SCALE updown 3    100  225  41  65  down_test.jpg

SET NOWARN_CLIPPING 1
As Howie says using 'KEYSTYLE DEFAULT tags' will probably works :-)
tcprado
Posts: 23
Joined: Fri Apr 12, 2013 7:25 am

Re: Problems Weathermap LEGEND displaying absolute values

Post by tcprado »

Howie wrote:I hadn't noticed that you have the text that you want at the end of each SCALE line.

With that in there, 'KEYSTYLE DEFAULT tags' should also get you what you want.

Many Thanks! It worked!
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests