Display percentage and Bandwithd in link's labels

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
VictorJ
Posts: 13
Joined: Mon Apr 03, 2017 4:48 am

Display percentage and Bandwithd in link's labels

Post by VictorJ »

In the editor we can choose between Percentage or Bit/Sec for the values in link's labels in Map style. Actually I Want to display both.
Is there a way ?
Last edited by VictorJ on Mon Apr 10, 2017 11:09 am, edited 1 time in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Display percentage and Bandwithd in link's labels

Post by Howie »

Yes, use inbwformat and outbwformat in the default link (or the link you want to format this way).
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!)
VictorJ
Posts: 13
Joined: Mon Apr 03, 2017 4:48 am

Re: Display percentage and Bandwithd in link's labels

Post by VictorJ »

Thanks Howie for your immediate respond.
User avatar
Pucho
Cacti User
Posts: 185
Joined: Wed Jul 20, 2016 8:00 pm

Re: Display percentage and Bandwithd in link's labels

Post by Pucho »

Talking about links, quick question

Is there any variable we can use to make this?

RRD file names are made up for the example

Code: Select all

LINK node1-node2
	TARGET {link:this:a}_up.rrd:42:- {link:this:a}_down.rrd:-:42 
	NODES node1 node2
I did try this but i'm getting this. Looks like it sort of does that but appends 'NODE' to it.

Code: Select all

04/11/2017 11:30:12 AM - WEATHERMAP: Poller[0] WARNING: [Map 130] MAP.conf: Target /var/lib/x/y/z/NODE node1-if_eth1-up-d.rrd doesn't exist. Is it a file? [WMRRD06]
It's not a request, just asking maybe there is something already I could use.

Thanks
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Display percentage and Bandwithd in link's labels

Post by Howie »

This is not documented, but is in the code for at least 0.98...

Try {node:_linkstart_:name} and {node:_linkend_:name} to get the names for the two nodes.

This isn't very pretty, but it should 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!)
User avatar
Pucho
Cacti User
Posts: 185
Joined: Wed Jul 20, 2016 8:00 pm

Re: Display percentage and Bandwithd in link's labels

Post by Pucho »

Howie wrote:This is not documented, but is in the code for at least 0.98...

Try {node:_linkstart_:name} and {node:_linkend_:name} to get the names for the two nodes.

This isn't very pretty, but it should work.
Yeahhhh I knew it!

Thank you!
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests