Hide link when no data ?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
syl22
Posts: 4
Joined: Tue May 15, 2012 8:12 am

Hide link when no data ?

Post by syl22 »

Hello Everybody !

simple question:
Is it possible to hide a link when there is no data to display ?

I have a map whose link data are coming from a text file (Target /xxx/output.txt).
I would like to hide link when there is no valid data to display .



Thanks in advance !
duykid
Posts: 8
Joined: Thu Sep 21, 2017 8:58 pm

Re: Hide link when no data ?

Post by duykid »

me too, pls help!
Thanks!
User avatar
Pucho
Cacti User
Posts: 185
Joined: Wed Jul 20, 2016 8:00 pm

Re: Hide link when no data ?

Post by Pucho »

I guess the closer you can get to that is

Code: Select all

OUTLINECOLOR 255 255 255
BWOUTLINECOLOR 255 255 255
If your background color is white and the scale defines 255 255 255 for 0 1, to say something. But it'd be a pain to edit those links hehe

No other way that I'm aware of.

I'm just curious, may I ask in what case would this be useful for you?
Cacti - 1.2.15
Poller Type - Spine
Weathermap 0.98a
Server Info - Linux 3.10.0 - Centos 7
Web Server - Apache/2.4.6 PHP 5.4.16
MySQL - 5.5 ;RRDTool - 1.4.8 ;SNMP - 5.7.2
Religion - Anti forum pets
duykid
Posts: 8
Joined: Thu Sep 21, 2017 8:58 pm

Re: Hide link when no data ?

Post by duykid »

i config target link read data from textfile:

Code: Select all

LINK router1-router2
	WIDTH 5

	TARGET C:/AppServ/www/2017/plugins/weathermap/data/data.txt
	
	NODES router1 router2
and data txt file:

Code: Select all

router1-router2 33M 44M
router3-router4 66M 99M
it can't load in_ out_ bw (33m-44m) to weathermap data link.
pls help me!
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Hide link when no data ?

Post by Howie »

I just saw this... have you tried with DEBUG logging? (or even checked the cacti.log?) You should get more information about what is going on. Look for lines with ReadData in them.
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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests