Changing colour of nodes.

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Changing colour of nodes.

Post by rs1 »

Hello Cacti Forum :)

I've been doing some work with Weathermaps. I'm trying to have a background image of a switch with 42 ports. I'd like to make each port a node. I can do this however I cannot get the Nodes to change colour how I would like. I have used the usescale but don't understand it that well. How do I make the Node change colour exactly the same as the links to the node?

Thanks in advance, I've searched the forum but cannot find a solution.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Changing colour of nodes.

Post by Howie »

add a target to the node and set maxvalue to the bandwidth for the port. It works just like links except that a node can only show one of the input or output traffic. Usescale defaults to using the input, if i remember correctly.
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!)
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Changing colour of nodes.

Post by rs1 »

I've added the target to the Node but there are multiple defaults and I've tried everyone. What would the scale config be to display the color the same as a link?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Changing colour of nodes.

Post by Howie »

rs1 wrote:I've added the target to the Node but there are multiple defaults and I've tried everyone. What would the scale config be to display the color the same as a link?
Assuming your port is 100Mbit/sec and that your links are using the default scale:

Code: Select all

NODE blah
    TARGET myrrdfile.rrd
    USESCALE DEFAULT in
    MAXVALUE 100M
    POSITION 100 200
    LABEL Blah
to use the input value from the cacti graph.
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!)
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Changing colour of nodes.

Post by rs1 »

Thank you very much :) One more quick question please? :)

When giving a Node a target the rrd files seem to be for traffic in. Is there any way to link to the rrd file but for outbound traffic?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Changing colour of nodes.

Post by Howie »

It still fetches in and out, but the node only has one colour that can change, so you have to choose. This is what the 'in' is on the USESCALE line. For out (with the scale called DEFAULT):

USESCALE DEFAULT out
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!)
rs1
Posts: 27
Joined: Fri Sep 06, 2013 4:35 am

Re: Changing colour of nodes.

Post by rs1 »

Thank you :) My network map is looking awesome! Got two switches done. One more question if you don't mind, some of the ports are a grey color even though the legend doesn't show a grey? Do you know what could be the cause of this, I have checked config and cannot find an error.

Thanks again! :D 8) :lol: :P
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Changing colour of nodes.

Post by Howie »

look in the cacti.log

that's usually either that your scale doesn't include a colour for the value, or weathermap failed to get data for that target.
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!)
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: Changing colour of nodes.

Post by Atreides »

Hello,
Have a quick question related to this thead, so I wont open another one.
How do I make the color of the link percentage(if its possible) to match the color of the link between 2 nodes. Currently all those numbers are white.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Changing colour of nodes.

Post by Howie »

Atreides wrote:Hello,
Have a quick question related to this thead, so I wont open another one.
How do I make the color of the link percentage(if its possible) to match the color of the link between 2 nodes. Currently all those numbers are white.
You can't make it match, but you can hide the box:

Code: Select all

LINK blahblah
   BWBOXCOLOR none
   BWOUTLINECOLOR none
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!)
Atreides
Cacti User
Posts: 174
Joined: Mon May 31, 2010 9:26 am

Re: Changing colour of nodes.

Post by Atreides »

Tried that, but the numbers arent visible almost at all, without the box.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests