"ICON" not showing in weathermap?

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
shakey_1
Posts: 42
Joined: Thu Feb 16, 2006 12:49 pm

"ICON" not showing in weathermap?

Post by shakey_1 »

I am hoping that someone can point me in the right direction with an issue I am having with the "ICON" directive. I have an icon that I want to use in one of my maps titled "2950.png". If I try to implement it into my map though, it doesn't show. The syntax that I am using is:

NODE Switch_123
LABEL Switch 123
INFOURL http://xxx.xx.xxx.xxx/graph.php?action= ... rra_id=all
OVERLIBGRAPH http://xxx.xx.xxx.xxx/graph_image.php?a ... 2&rra_id=1
ICON images/2950.png
POSITION 80 50


It shares the same permissions as the other images in the 'Images' directory (and they will show on my map), but this one won't.

-rwxr-xr-x 1 apache apache 2950.png

Could it be a matter of color depth? Are icons limited to 8 or 16 bit colors?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: "ICON" not showing in weathermap?

Post by Howie »

shakey_1 wrote: Could it be a matter of color depth? Are icons limited to 8 or 16 bit colors?
No that I'm aware of... what does it say in your Cacti.log? You should get some sort of error.
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!)
shakey_1
Posts: 42
Joined: Thu Feb 16, 2006 12:49 pm

Post by shakey_1 »

I am not seeing any errors relating to "2950.png" which is what my icon is named. The only errors I am seeing are the following:

Code: Select all

05/09/2007 01:20:41 PM - WEATHERMAP: Poller[0] ReadData: LINK Devices, target: /var/www/html/rra/device1_traffic_in_49.rrd on config line 186 had no valid data, according to WeatherMapDataSource_rrd
05/09/2007 01:20:40 PM - WEATHERMAP: Poller[0] Unrecognised config on line 9: KEYPOS DEFAULT -1 -1 Traffic Load
Other than that, it looks like the map is running okay.

Code: Select all

05/09/2007 01:30:41 PM - WEATHERMAP: Poller[0] Map: /var/www/html/plugins/weathermap/configs/Routers -> /var/www/html/plugins/weathermap/output/weathermap_2.html & /var/www/html/plugins/weathermap/output/weathermap_2.png
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

shakey_1 wrote:I am not seeing any errors relating to "2950.png" which is what my icon is named. The only errors I am seeing are the following:

Code: Select all

05/09/2007 01:20:41 PM - WEATHERMAP: Poller[0] ReadData: LINK Devices, target: /var/www/html/rra/device1_traffic_in_49.rrd on config line 186 had no valid data, according to WeatherMapDataSource_rrd
05/09/2007 01:20:40 PM - WEATHERMAP: Poller[0] Unrecognised config on line 9: KEYPOS DEFAULT -1 -1 Traffic Load
I've just fixed that second one in 0.91 and the first is a legit problem, so neither of those...

Could you post the icon? Maybe it is a colour-depth issue... Greyscale PNGs go crazy, thinking about it. I had that problem when I converted all the Cisco icons originally.
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!)
shakey_1
Posts: 42
Joined: Thu Feb 16, 2006 12:49 pm

Post by shakey_1 »

I have attached the icon. Has 0.91 been released yet or is it in the SVN? Not to split this into another topic, but do you know what could be causing the issue with the "no valid data" issue? I have verified that the rrd's are legitimate.

Thanks for your help.
Attachments
2950.png
2950.png (2.5 KiB) Viewed 5237 times
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

shakey_1 wrote:I have attached the icon. Has 0.91 been released yet or is it in the SVN? Not to split this into another topic, but do you know what could be causing the issue with the "no valid data" issue? I have verified that the rrd's are legitimate.

Thanks for your help.
There isn't a (public) svn for weathermap... I was planning on getting 0.91 out today, but that may slip since it's getting late in the UK :roll:

The no valid data thing - run a poller cycle in DEBUG mode. You should get a lot more narrative for each target. Post the chunk for that link, if it doesn't make it clear to you.

I almost just thought I recreated your icon problem. Is it possible that you haven't set LABELOFFSET, so that the small, slim icon is drawn, then the label drawn right over the top? I just did this without thinking... try adding a "LABELOFFSET S" line to move the LABEL below the ICON.
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!)
shakey_1
Posts: 42
Joined: Thu Feb 16, 2006 12:49 pm

Post by shakey_1 »

Oh man, it never even occurred to me that my labels may be covering the icon. A LABELOFFSET 0 20 did the trick. Thanks again for your help Howie. I do appreciate it.
bengelly
Cacti User
Posts: 57
Joined: Fri Jan 26, 2007 2:28 am

Post by bengelly »

Hi Shakey_1,

do you have the icon for a catalyst switch 3750 model please ?

Thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests