[SOLVED]some LINK labels drawn incorrectly under PHP 5.3.2

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
screff
Posts: 3
Joined: Thu Mar 25, 2010 2:27 pm

[SOLVED]some LINK labels drawn incorrectly under PHP 5.3.2

Post by screff »

I had an installation of weathermap working perfectly for a long time under php 5.1.x. I then upgraded my server to run PHP 5.3.2. When I did that I noticed that certain link labels are offset incorrectly as you can see in the attached screenshot. Here is an example from the config of one of the bad offset links. I am running weathermap 0.97a

Code: Select all

LINK test1-test2
  WIDTH 5
  INFOURL /cacti/graph.php?rra_id=all&local_graph_id=16
  OVERLIBGRAPH /cacti/graph.php?rra_id=all&local_graph_id=16&rra_id=0&graph_nolegend=true&graph_height=100&graph_width=300
  TARGET /var/www/html/cacti/rra/test1-switch_traffic_in_818.rrd
  NODES test1 test2
Attachments
map.jpg
map.jpg (79.6 KiB) Viewed 2159 times
Last edited by screff on Fri Apr 09, 2010 9:20 pm, edited 2 times in total.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Does it make any difference if you use a different font? I don't get this problem in my own maps, which use a lot of angled bwlabels...
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!)
screff
Posts: 3
Joined: Thu Mar 25, 2010 2:27 pm

Post by screff »

I changed the font to a different one but it still comes out the same. I was using Vera.ttf before this change.

Code: Select all

FONTDEFINE 9 /usr/share/fonts/msstcorefonts/times.ttf 9
FONTDEFINE 11 /usr/share/fonts/msstcorefonts/times.ttf 11
KEYFONT 9
TITLEFONT 11
BWFONT 9
It looks like once the label text hits 45 degrees or greater from horizontal it starts to go off the side a bit. The labels that are vertical are the worst because most of the text is outside of the label box.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

OK - and so I can try to reproduce this... is this PHP built from source? and is it using the PHP-supplied GD library or your systems? And what OS is it?
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!)
screff
Posts: 3
Joined: Thu Mar 25, 2010 2:27 pm

Post by screff »

The system is running Red Hat Enterprise 5.5 with the stock php packages upgraded from here: http://dl.iuscommunity.org/pub/ius/stab ... at/5/i386/

It turns out that a recent update to php-gd fixed the issue. Sorry for the trouble and thank you for your assistance. I updated my original post subject to reflect the current fixed status.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

screff wrote:The system is running Red Hat Enterprise 5.5 with the stock php packages upgraded from here: http://dl.iuscommunity.org/pub/ius/stab ... at/5/i386/

It turns out that a recent update to php-gd fixed the issue. Sorry for the trouble and thank you for your assistance. I updated my original post subject to reflect the current fixed status.
Was it the 5.2 or 5.3 packages?
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 2 guests