Changing colour of nodes.
Moderators: Developers, Moderators
Changing colour of nodes.
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.
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.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Changing colour of nodes.
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!)
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!)
Re: Changing colour of nodes.
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?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Changing colour of nodes.
Assuming your port is 100Mbit/sec and that your links are using the default scale: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?
Code: Select all
NODE blah
TARGET myrrdfile.rrd
USESCALE DEFAULT in
MAXVALUE 100M
POSITION 100 200
LABEL Blah
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!)
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!)
Re: Changing colour of nodes.
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?
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?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Changing colour of nodes.
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
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!)
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!)
Re: Changing colour of nodes.
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!
Thanks again!
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Changing colour of nodes.
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.
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!)
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!)
Re: Changing colour of nodes.
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.
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.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: Changing colour of nodes.
You can't make it match, but you can hide the box: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.
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!)
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!)
Re: Changing colour of nodes.
Tried that, but the numbers arent visible almost at all, without the box.
Who is online
Users browsing this forum: No registered users and 1 guest