|
|
| Author |
Message |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2248 Location: United Kingdom
|
Posted: Tue Sep 18, 2007 2:13 am Post subject: |
|
|
| munozm wrote: | Thanks for the update. I don't receive the original error messages anymore when working with this plugin. It seems to work except when I click add on one of the default content files, I get the following error message:
Fatal error: Call to undefined function imagecreatefrompng() in /var/www/cacti/plugins/superlinks/superlinks-mgmt.php on line 523
It creates text where the new tab icon would go and directs me to the proper page when I click on it.
I thought maybe it was related to permissions on the folders but I changed content/images/tab_images to 777 and tried the root user/group, cacti user/group, and the apache user/group all with the same error. |
D'oh. I knew there was something else I needed to do - add a bit to the documentation.
To use the plugin, you need the gd php extension and the gd library with PNG and TrueType/FreeType support compiled in. Depending on your system, this might be as simple as uncommenting a line in your php.ini and restarting apache, or installing a package/port.
If you take a stroll through the Weathermap forum here, you'll find a lot of discussion about this and how to solve it for various platforms, because the weathermap editor has the same requirements. |
|
| Back to top |
|
 |
N3NCY Cacti User
Joined: 22 Sep 2005 Posts: 242 Location: Landenberg, PA
|
Posted: Thu Sep 20, 2007 7:35 pm Post subject: |
|
|
SuperLinks 0.3 is now working perfectly for me.
All previous reported bugs and features requested are completed.
Thank you for this very nice plugin Howie!
This will be part of every Cacti system that I put together.
EVERY OTHER tab based plugin should see your code miracle!
Generating the graphics for the tabs is a thing of beauty!
 |
|
| Back to top |
|
 |
munozm
Joined: 08 Jul 2007 Posts: 11
|
Posted: Thu Sep 20, 2007 11:25 pm Post subject: |
|
|
I wish I had seen your post Howie but for some reason I didn't get notified on the thread until the N3NCY post. Oh well.
It seems to be working now. Thanks for your help.
For reference:
I am running Ubuntu 7.04 (lamp), cacti source install 0.8.6j. I installed the gd library with sudo apt-get install php5-gd. This solved the problem with creating the tabs but the text wouldn't show up in the tabs and I received some missing font errors. I updated the superlinks-mgmt.php page from $font = "VeraBd.ttf"; to $font = "/var/www/cacti/plugins/superlinks/VeraBd.ttf"; and this seemed to have done it for me.
Thanks again! |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2248 Location: United Kingdom
|
Posted: Fri Sep 21, 2007 2:26 am Post subject: |
|
|
| munozm wrote: | I wish I had seen your post Howie but for some reason I didn't get notified on the thread until the N3NCY post. Oh well.
It seems to be working now. Thanks for your help.
For reference:
I am running Ubuntu 7.04 (lamp), cacti source install 0.8.6j. I installed the gd library with sudo apt-get install php5-gd. This solved the problem with creating the tabs but the text wouldn't show up in the tabs and I received some missing font errors. I updated the superlinks-mgmt.php page from $font = "VeraBd.ttf"; to $font = "/var/www/cacti/plugins/superlinks/VeraBd.ttf"; and this seemed to have done it for me.
Thanks again! |
Hmm. OK. Then it sounds like I might need a couple of chdir() lines in there too for some folks. Maybe there *will* be a 0.5 |
|
| Back to top |
|
 |
streaker69 Cacti Pro User
Joined: 27 Mar 2006 Posts: 647 Location: Psychic Amish Network Administrator
|
Posted: Fri Sep 21, 2007 9:29 am Post subject: |
|
|
Here's an interesting thought:
Could a Discovery be built into this plugin. It could scan a subnet looking for things responding on port 80 and build a list of links based upon what it finds.
Could be useful for VoIP installations where each Phone is running a webserver. Could also be useful in finding people on the LAN that are running a webserver outside of the policies of the IT department.
What do you think? |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2248 Location: United Kingdom
|
Posted: Fri Sep 21, 2007 10:28 am Post subject: |
|
|
I'm not really sure how this actually relates to the plugin, but if you can write the PHP to do that, SuperLinks will present it for you  |
|
| Back to top |
|
 |
N3NCY Cacti User
Joined: 22 Sep 2005 Posts: 242 Location: Landenberg, PA
|
Posted: Sat Sep 22, 2007 7:09 am Post subject: |
|
|
SuperLinks 0.4 also works nicely on FreeBSD.
Thank you for the update and the plugin itself.
This new system will allow me to put our internal web portal inside Cacti so the integration looks more natural.
 |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2248 Location: United Kingdom
|
Posted: Sat Sep 22, 2007 7:11 am Post subject: |
|
|
| N3NCY wrote: | SuperLinks 0.4 also works nicely on FreeBSD.
Thank you for the update and the plugin itself.
This new system will allow me to put our internal web portal inside Cacti so the integration looks more natural.
 |
I develop on FreeBSD (and OS X and Windows desktops), so it should be pretty good there
Glad it's helping! |
|
| Back to top |
|
 |
lard Cacti User
Joined: 20 Jul 2005 Posts: 157 Location: UK - Cambridge
|
Posted: Tue Oct 09, 2007 5:18 am Post subject: |
|
|
Great plugin and exactly what I was after!
Quick query - is it possible to set the default tab that a user is presented to when they login (I'd like to set an "about" tab that people get shown before the graphs tab)
TIA,
Larry |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2248 Location: United Kingdom
|
Posted: Tue Oct 09, 2007 6:01 am Post subject: |
|
|
| lard wrote: | Great plugin and exactly what I was after!
Quick query - is it possible to set the default tab that a user is presented to when they login (I'd like to set an "about" tab that people get shown before the graphs tab)
|
No, but there is a hook in the plugin archtecture to add information to the "You have logged in" page. Maybe that would help? Maybe it could be a third option for SuperLinks, even? For small things... |
|
| Back to top |
|
 |
Howie Cacti Guru User
Joined: 16 Sep 2004 Posts: 2248 Location: United Kingdom
|
Posted: Tue Oct 09, 2007 5:43 pm Post subject: |
|
|
Well I was supposed to be working on Boost support for Weathermap, so naturally I've just added this third option to superlinks
I'll make a 0.6 version when I finish with the boost thing (it's about 70% there). |
|
| Back to top |
|
 |
|