Hide active nodes in weathermap?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
voyax
Posts: 1
Joined: Tue Nov 04, 2008 4:36 am

Hide active nodes in weathermap?

Post by voyax »

Hi, I wonder if someone knows how to hide active nodes in weathermap? Im only interested in showing hosts that are in down state on the map.

//Voyax
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

You can hide icons, just by having an empty icon, and using the same method as people already use for making red and green icons due to status.
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
Jem
Posts: 35
Joined: Tue Apr 12, 2005 4:36 pm
Contact:

Post by Jem »

Hi Howie,

This is the thing I just want to do but I can't succeed :oops: It's awful I did it, it worked and i can't remember how I did :-?

I'm using 0.95b and here is my configuration:

Code: Select all

...
SCALE goodbad 0 33      0 0 255         images/chip_ok.png
SCALE goodbad 34 66     0 255 255       images/chip_warning.png
SCALE goodbad 67 100    255 255 0       images/chip_critical.png
...
NODE mynode
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=2001
        OVERLIBGRAPH /cacti/graph_image.php[...]_id=2001
        TARGET gauge:/cacti/rra/myhost_2591.rrd:5min_cpu:-
        USESCALE goodbad
        POSITION 298 257
I can't remember what the thing make the all works ![/code]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Jem wrote:Hi Howie,

This is the thing I just want to do but I can't succeed :oops: It's awful I did it, it worked and i can't remember how I did :-?

I'm using 0.95b and here is my configuration:

Code: Select all

...
SCALE goodbad 0 33      0 0 255         images/chip_ok.png
SCALE goodbad 34 66     0 255 255       images/chip_warning.png
SCALE goodbad 67 100    255 255 0       images/chip_critical.png
...
NODE mynode
        INFOURL /cacti/graph.php?rra_id=all&local_graph_id=2001
        OVERLIBGRAPH /cacti/graph_image.php[...]_id=2001
        TARGET gauge:/cacti/rra/myhost_2591.rrd:5min_cpu:-
        USESCALE goodbad
        POSITION 298 257
I can't remember what the thing make the all works ![/code]
ICON {node:this:inscalekey}

That takes the text from the end of the matching SCALE line, and uses it for the ICON filename. So if you had a PNG which was all white (or all transparent), then the icon would disappear for that state.
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
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Howie wrote: ICON {node:this:inscalekey}
Just to complete the circle, that should be

ICON {node:this:inscaletag}
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!)
Nice
Posts: 30
Joined: Mon Sep 20, 2010 9:23 am
Location: Lede, Belgium

Post by Nice »

Is it possible to do the same thing with labels?

I want to use it to show when a swith port goes down.

When the port is down , I want to show a label with the name of the switch port.
When the port is down, I want to hide the label.

I added a part of my map below.
I want hide the label Fa1/011 when the port is up and show it when it goes down
Attachments
Fa1011hidelabelwhenup.png
Fa1011hidelabelwhenup.png (2.17 KiB) Viewed 2226 times
Last edited by Nice on Mon Sep 20, 2010 9:31 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:

Post by Howie »

Not with the name of the port... you can show some fixed text that way:

LABEL {node:this:inscaletag}

but not a variable.
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!)
Nice
Posts: 30
Joined: Mon Sep 20, 2010 9:23 am
Location: Lede, Belgium

Post by Nice »

Thanks for the quick response.

I'll search for another solution...
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests