About Link Label

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
David927
Posts: 7
Joined: Mon Dec 08, 2008 3:02 am

About Link Label

Post by David927 »

Hi guys,

Now, I got 5.23M on my link label to show the bandwidth usage. I was just wondering if I can make it like 5.2M. I only need one bit behind the dot.
Thanks for help.

D
colejv
Posts: 46
Joined: Wed Mar 19, 2008 10:50 am

Post by colejv »

David927
Posts: 7
Joined: Mon Dec 08, 2008 3:02 am

Post by David927 »

Thanks for answer.
In my case, i will put

Code: Select all

LABEL {node:this:bandwidth_in:%.1f} Sessions 
on the Link definition field. Is that right?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

David927 wrote:Thanks for answer.
In my case, i will put

Code: Select all

LABEL {node:this:bandwidth_in:%.1f} Sessions 
on the Link definition field. Is that right?
Close :-)

You need to put

Code: Select all

INBWFORMAT {link:this:bandwidth_in:%.1k}
OUTBWFORMAT {link:this:bandwidth_out:%.1k} 
if it's link bandwidth labels (your version was for a node label, and doesn't show M, K, G etc). That will give you two labels on the arrow, with the in and out values on them. The %k part means it will shorten to giga, mega, etc, and the .1 means to use 1 decimal place.
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!)
David927
Posts: 7
Joined: Mon Dec 08, 2008 3:02 am

Post by David927 »

Howie, thanks for your answer. Bandwidth display a right way now.

Merry Xmas and happy new year.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests