|
|
| Author |
Message |
voyax
Joined: 04 Nov 2008 Posts: 1
|
Posted: Tue Nov 04, 2008 4:42 am Post subject: 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 |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2132 Location: United Kingdom
|
Posted: Tue Nov 04, 2008 4:48 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Jem
Joined: 12 Apr 2005 Posts: 22
|
Posted: Tue Nov 04, 2008 6:14 am Post subject: |
|
|
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:
| Code: |
...
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] |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2132 Location: United Kingdom
|
Posted: Tue Nov 04, 2008 7:21 am Post subject: |
|
|
| 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:
| Code: |
...
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. |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2132 Location: United Kingdom
|
Posted: Fri Nov 07, 2008 6:16 am Post subject: |
|
|
| Howie wrote: |
ICON {node:this:inscalekey}
|
Just to complete the circle, that should be
ICON {node:this:inscaletag} |
|
| Back to top |
|
 |
|