SuperLinks 0.6 release (incl Cacti 0.8.7 compatibility)

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

apperrault wrote:damn, i was hoping it was going to be easier. I am not a PHP person, i was just hoping to be able to either point SuperLinks to an HTML link, or an existing php page. I will try and play with it, but i am not very hopeful.

Thanks for the pointers though.

app
I'll have a play tonight. I don't think it'll take more than 5 minutes or so.

There should be a 0.7 superlinks and (with luck) 0.94 weathermap tonight...
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!)
corym
Posts: 1
Joined: Thu Nov 15, 2007 5:41 pm

Fix for "could not find/open font"

Post by corym »

eterzella.r.t wrote:When create one
http://www.exemplo.br Site da Exemplo TAB

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 533

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 561

Warning: imagettfbbox() [function.imagettfbbox]: Could not find/open font in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 533

Warning: imagettftext() [function.imagettftext]: Could not find/open font in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 561

Warning: Cannot modify header information - headers already sent by (output started at /var/www/aiec/plugins/superlinks/superlinks-mgmt.php:533) in /var/www/aiec/plugins/superlinks/superlinks-mgmt.php on line 99
I'm running Superlinks 0.7 on Debian Etch (4.0) with PHP 5.2.0 and needed to set the GDFONTPATH.
I inserted this on line 502 after the chdir in the tabimage() function.

Code: Select all

putenv('GDFONTPATH=' . realpath('.'));
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Hmmm OK. Need to be a bit careful with that change because it may break freetype font searching for other plugins (Weathermap for example). Or at least do different things from before - I guess it should save the previous value (if any), and restore it afterwards.

Thanks for the Debian tip! (everything seems to be a tiny bit harder on Debian :roll: )
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!)
eddievenus
Cacti User
Posts: 60
Joined: Mon Jul 18, 2005 7:01 pm

Post by eddievenus »

On the 0.7 version I cannot add http links most of the time. I can add
http://www.cacti.net
http://www.cactiusers.org
http://flickr.com

but not my own local sites (http://burmon.cornernet.local) or even other real sites
http://www.yahoo.com
http://maps.yahoo.com
http://www.google.com

when I put in a site it does not like it replaces the :// with ___ as in
http___www.yahoo.com
http___burmon.cornernet.local
http___www.google.com
http___192.168.1.1
etc.

I understand that this feature is new from reading this post but is there anyway that we can allow ANY URL to work? I have a bunch of remote Cacti Sites and it would be super handy to simply have tabs or console links to them and be able to move between them easily like this. I figured that was part of the intention of the original links plugin anyhow and subsequently this one then too.

Thanks.
EV
eddievenus
Cacti User
Posts: 60
Joined: Mon Jul 18, 2005 7:01 pm

Post by eddievenus »

Also I get this at the top of the page just below the tabs and above everything else if I set the superlink to be a console link rather than a tab.
Notice: Undefined index: index.php: in /var/www/html/lib/functions.php on line 1465

Notice: Undefined index: index.php: in /var/www/html/lib/functions.php on line 1484
-> Cacti-Bur
If it is a tab I see no errors.

I am using http://www.cacti.net as the URL for testing this.

p.s. I now get this when I access the console tab
Notice: Undefined index: index.php: in /var/www/html/lib/functions.php on line 1455
If I set the superlink to 'front Cacti page' and click on the console tab I now get that error (which I now get everytime I tab to console whether I have a superlink or not) plus the www.cacti.net page does not display as part of the window. I have a line now (which is not there otherwise) on the main page and it shows the friendly name I gave the superlink but shows no HTML content anywhere.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

eddievenus wrote:On the 0.7 version I cannot add http links most of the time. I can add
http://www.cacti.net
http://www.cactiusers.org
http://flickr.com

but not my own local sites (http://burmon.cornernet.local) or even other real sites
http://www.yahoo.com
http://maps.yahoo.com
http://www.google.com

when I put in a site it does not like it replaces the :// with ___ as in
http___www.yahoo.com
http___burmon.cornernet.local
http___www.google.com
http___192.168.1.1
etc.

I understand that this feature is new from reading this post but is there anyway that we can allow ANY URL to work? I have a bunch of remote Cacti Sites and it would be super handy to simply have tabs or console links to them and be able to move between them easily like this. I figured that was part of the intention of the original links plugin anyhow and subsequently this one then too.

Thanks.
EV
I'll take another look. I thought I'd fixed this. What it is is the code for sanitising filenames, to stop you putting '../..' or other strange characters into filenames. It's (obviously) not supposed to do it for URLs though.
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!)
eddievenus
Cacti User
Posts: 60
Joined: Mon Jul 18, 2005 7:01 pm

Post by eddievenus »

That was one fast reply. Thanks for the update. I am excited to see it working with other links other than thhp://www.cacti.net.
5th-3lement
Posts: 12
Joined: Thu Nov 08, 2007 4:27 pm
Location: USA

Post by 5th-3lement »

I'm having the same trouble, but I cant add any links without it doing that. lol

http___yahoo.com
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I was thinking the same thing Howie. ;)

Larry
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

See the fix in the 0.7 thread.
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 1 guest