Different scale for out and in?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
shelluk
Posts: 38
Joined: Mon Nov 22, 2010 1:02 pm

Different scale for out and in?

Post by shelluk »

Hi All

On a link is it possible to use different scale for out and in? Or am I over looking something with the following scenario?

Link displays up & down speeds that an ADSL connection is synced at. (So say 16M in and 900K out are displayed).

Snippet of code which currently uses the same scale for up and down, incorrectly colouring the out arrow of the link:

Code: Select all

KEYPOS speeddown 400 280 Speed
KEYSTYLE speeddown tags
SCALE speedin 0    14M  255 106 106  Bad
SCALE speedin 14M  22M   0 255 127  Good

SCALE speedout 0    700K  255 106 106  Bad
SCALE speedout 700K  1200K   0 255 127  Good

LINK Router-Internet-Speed
        USESCALE speedin absolute
        INBWFORMAT {link:this:bandwidth_in:%k} bits
        OUTBWFORMAT {link:this:bandwidth_out:%k} bits
        TARGET gauge:/path/to/router_down_speed_31.rrd:down_speed:- gauge:/path/to/up_speed_32.rrd:-:up_speed
On the node it looks like you can specify in or out, but not on the link?

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

Re: Different scale for out and in?

Post by Howie »

You can't have different scales, but if you use a percentage scale instead of absolute, you can have different bandwidths for in/out:

LINK blah
BANDWIDTH 780K 8M

So if I understand your application right, you'd set the BANDWIDTH to the expected speed, and then have a scale where anything below say 50% is red to show that the line negotiated speed is bad.

Does that work?
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!)
shelluk
Posts: 38
Joined: Mon Nov 22, 2010 1:02 pm

Re: Different scale for out and in?

Post by shelluk »

Yep, that will very much do the trick :)

Thanks again Howie!

Shell
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest