"ICON" not showing in weathermap?
Moderators: Developers, Moderators
"ICON" not showing in weathermap?
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?
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?
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
Re: "ICON" not showing in weathermap?
No that I'm aware of... what does it say in your Cacti.log? You should get some sort of error.shakey_1 wrote: Could it be a matter of color depth? Are icons limited to 8 or 16 bit colors?
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!)
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!)
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:
Other than that, it looks like the map is running okay.
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
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
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
I've just fixed that second one in 0.91 and the first is a legit problem, so neither of those...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
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!)
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!)
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.
Thanks for your help.
- Attachments
-
- 2950.png (2.5 KiB) Viewed 5235 times
- Howie
- Cacti Guru User
- Posts: 5508
- Joined: Thu Sep 16, 2004 5:53 am
- Location: United Kingdom
- Contact:
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 UKshakey_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.
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!)
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!)
Who is online
Users browsing this forum: No registered users and 2 guests