Node color changing depends on status.

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

citycat
Posts: 12
Joined: Thu Sep 28, 2017 1:27 pm

Re: Node color changing depends on status.

Post by citycat »

Now I have the following config:

SCALE cactiupdown 0 0.5 192 192 192 images/router_unknown.png
SCALE cactiupdown 0.5 1.5 255 0 0 images/router_down.png
SCALE cactiupdown 1.5 2.5 0 0 255
SCALE cactiupdown 2.5 3.5 0 255 0 images/router_up.png
SCALE cactiupdown 4.5 5.5 128 128 128

NODE DEFAULT
LABEL {node:this:name}
USESCALE cactiupdown in
ICON 70 70 {node:this:inscaletag}
MAXVALUE 100

each NODE also has additional configuration, for example:

NODE XXX
INFOURL /cacti/graph.php?rra_id=all&local_graph_id=199
OVERLIBGRAPH /cacti/graph_image.php?rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300&local_graph_id=199
POSITION 110 120
SET router cattgbtoron01h01
SET site XXX
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Node color changing depends on status.

Post by Howie »

Right. The nodes need to have a TARGET, or they won't fetch any data.

something like

TARGET cactihost:33

(where 33 is the host id for that node in Cacti)
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!)
citycat
Posts: 12
Joined: Thu Sep 28, 2017 1:27 pm

Re: Node color changing depends on status.

Post by citycat »

Now it looks like everything works fine!!! Thank you Howie!
citycat
Posts: 12
Joined: Thu Sep 28, 2017 1:27 pm

Re: Node color changing depends on status.

Post by citycat »

I have one more question - what can I do to set node background label color white and independent of node status?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Node color changing depends on status.

Post by Howie »

Code: Select all

NODE DEFAULT
   LABELBGCOLOR 255 255 255
should do it (from memory - maybe check the manual that I remembered the command right!)
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!)
citycat
Posts: 12
Joined: Thu Sep 28, 2017 1:27 pm

Re: Node color changing depends on status.

Post by citycat »

It doesn't work - labels are still have color related to node status.

If I use inscaletag settings do I need to use USESCALE as well? As far as I understand it influence on label color and LABELBGCOLOR has no effect.

NODE DEFAULT
LABEL {node:this:name}
LABELBGCOLOR 255 255 255
ICON 70 70 {node:this:inscaletag}
USESCALE cactiupdown in
MAXVALUE 100
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests