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    


"ICON" not showing in weathermap?

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



Joined: 16 Feb 2006
Posts: 42

PostPosted: Tue May 08, 2007 10:44 am    Post subject: "ICON" not showing in weathermap? Reply with quote

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=view&local_graph_id=42&rra_id=all
OVERLIBGRAPH http://xxx.xx.xxx.xxx/graph_image.php?action=view&local_graph_id=42&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?
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2162
Location: United Kingdom

PostPosted: Tue May 08, 2007 12:19 pm    Post subject: Re: "ICON" not showing in weathermap? Reply with quote

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.
Back to top
shakey_1



Joined: 16 Feb 2006
Posts: 42

PostPosted: Wed May 09, 2007 12:14 pm    Post subject: Reply with quote

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:

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:

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
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2162
Location: United Kingdom

PostPosted: Wed May 09, 2007 2:42 pm    Post subject: Reply with quote

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:

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.
Back to top
shakey_1



Joined: 16 Feb 2006
Posts: 42

PostPosted: Wed May 09, 2007 4:30 pm    Post subject: Reply with quote

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.



2950.png
 Description:
 Filesize:  2.5 KB
 Viewed:  1618 Time(s)

2950.png


Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2162
Location: United Kingdom

PostPosted: Wed May 09, 2007 5:06 pm    Post subject: Reply with quote

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

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.
Back to top
shakey_1



Joined: 16 Feb 2006
Posts: 42

PostPosted: Thu May 10, 2007 8:04 am    Post subject: Reply with quote

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.
Back to top
bengelly



Joined: 26 Jan 2007
Posts: 49

PostPosted: Fri May 11, 2007 1:41 am    Post subject: Reply with quote

Hi Shakey_1,

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

Thanks
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