Hide active nodes in weathermap?
Moderators: Developers, Moderators
Hide active nodes in weathermap?
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
//Voyax
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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!)
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!)
Hi Howie,
This is the thing I just want to do but I can't succeed 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:
I can't remember what the thing make the all works ![/code]
This is the thing I just want to do but I can't succeed 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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
ICON {node:this:inscalekey}Jem wrote:Hi Howie,
This is the thing I just want to do but I can't succeed 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:
I can't remember what the thing make the all works ![/code]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
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!)
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!)
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Just to complete the circle, that should beHowie wrote: ICON {node:this:inscalekey}
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!)
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!)
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
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 (2.17 KiB) Viewed 2226 times
Last edited by Nice on Mon Sep 20, 2010 9:31 am, edited 1 time in total.
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Not with the name of the port... you can show some fixed text that way:
LABEL {node:this:inscaletag}
but not a variable.
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!)
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!)
Who is online
Users browsing this forum: No registered users and 3 guests