Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Hide active nodes in weathermap?

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
voyax



Joined: 04 Nov 2008
Posts: 1

PostPosted: Tue Nov 04, 2008 4:42 am    Post subject: Hide active nodes in weathermap? Reply with quote

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

PostPosted: Tue Nov 04, 2008 4:48 am    Post subject: Reply with quote

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

PostPosted: Tue Nov 04, 2008 6:14 am    Post subject: Reply with quote

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

PostPosted: Tue Nov 04, 2008 7:21 am    Post subject: Reply with quote

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

PostPosted: Fri Nov 07, 2008 6:16 am    Post subject: Reply with quote

Howie wrote:

ICON {node:this:inscalekey}


Just to complete the circle, that should be

ICON {node:this:inscaletag}
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group