SuperLinks 0.3 released

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:

SuperLinks 0.3 released

Post by Howie »

This plugin is an extension of my Links plugin with some important new features:
* It supports ANY number of extra tabs
* It will dynamically create the Tab graphics as pages are created
* It has the same user-based access-control as Weathermap
* It allows you to add new links to the Console menu as well as tabs

http://wotsit.thingy.com/haj/cacti/superlinks-0.3.zip

(I'll sort out a proper webpage for it in the next few days)

0.2 adds one new feature (red tab for current page), and fixes one small glitch.

0.3 fixes a possible mysql, error messages in the console, and browser caching problems.

NOTE: You'll need to edit and then save each menu entry if you upgrade from 0.1 or 0.2 to 0.3, to force it to regenerate it's image files, because the filenames have changed.
Last edited by Howie on Mon Sep 17, 2007 5:45 pm, edited 3 times in total.
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!)
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

Howie:
Awesome plugin, I intend to use it straight away!

I have two (2) bugs at this time:
<see attached image>

And one (1) feature request:
Autogenerate two (2) images please.
One in Blue like you have now.
and
One with a Red background that is used when I am on that tab.

Thank you!
Attachments
SuperLinks-Bugs01.PNG
SuperLinks-Bugs01.PNG (89.86 KiB) Viewed 12145 times
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

N3NCY wrote:Howie:
Awesome plugin, I intend to use it straight away!

I have two (2) bugs at this time:
<see attached image>
Hmm. The error message I thought I had fixed. It's an easy change though.

As for the image not updating - can you check if the tab_images/tab_4.png (or whichever page id it is - you can see in the URL) is being updated? and is owned by your www user? I found that I had to reload a couple of times sometimes before the new image was picked up. I guess this is just a browser caching issue.
N3NCY wrote: And one (1) feature request:
Autogenerate two (2) images please.
One in Blue like you have now.
and
One with a Red background that is used when I am on that tab.
I actually have a red blank in the plugin already, but I didn't make this last step. I'll add it in.
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!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

OK. Where else do you get overnight bugfixes on a sunday morning? :-)

Link for 0.2 is in the top post which addresses both of your requests. I stil think the tab updating is just a caching issue.

You will need to click on edit, then save to generate the new red tabs for each page.
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!)
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

This Sunday service rocks!
:D


The image is being cached by my browser for some reason.
A simple CTRL+REFRESH of the page fixes the caching issue in IE7.
Bug #1 = Fixed with work around = CTRL+REFRESH or close / re-open browser.
Thank you Howie!


Feature Request #1 = Works great
The background of the selected tab is now red!
Thank you again Howie!


Bug #2 = Still persists
Follow these steps in IE7 to reproduce:
1.) Click "SuperLinks Pages" link from left side under the Console menu
2.) Click "Add" link from the uper right side of your screen
3.) Click "View" link on one of the possible choice under "Available SuperLinks Content Files"
4.) Error condition occurs = New tab in IE7 is opened and error message displayed
<see attached image>
Attachments
SuperLinks-Bugs02.PNG
SuperLinks-Bugs02.PNG (57.62 KiB) Viewed 12108 times
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

That 'view' option shouldn't really be there - it's a hangover from the Weathermap code I used. It will go in the next version.

I'm going to try a new solution for the caching problem - if the filename changes each time there is an update, then caching won't be an issue. Just need to make sure it doesn't leave a trail of old images in the directory.
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!)
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

Hi Howie,

I've just taken a look to your new "superlinks" plugin (v0.2), but it doesn't work if MySQL strict mode is enabled. Therefore it's necessary to fix your table definition, so line 106 of setup.php should be changed from

Code: Select all

imagecache varchar(60) NOT NULL,

to:

imagecache varchar(60) NOT NULL DEFAULT '',
Anyway, great work. :wink:

Best regards
-Andreas-
Last edited by browniebraun on Sun Sep 09, 2007 3:14 pm, edited 1 time in total.
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

:wink:
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
browniebraun
Developer
Posts: 791
Joined: Tue Jun 13, 2006 1:17 am
Location: Cologne, Germany

Post by browniebraun »

Ups, duplicate posting :wink:

The issue with caching should be circumnavigated by using auto generated names for the png files with every change of the name instead of tab_1, tab_2 ....

e.g.
tab_name = 'tab' . session_id() . rand() . '.png';

Best regards
-Andreas-
Hat das Blümchen einen Knick, war der Schmetterling zu dick! ;)
reportit v0.7.5a
SNMPAgent v0.2.3
Download ReportIt | Download SNMPAgent | ReportIt SVN | ReportIt Templates | Wish list
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

browniebraun wrote:Ups, duplicate posting :wink:

The issue with caching should be circumnavigated by using auto generated names for the png files with every change of the name instead of tab_1, tab_2 ....

e.g.
tab_name = 'tab' . session_id() . rand() . '.png';

Best regards
-Andreas-
Yep - that's my plan.

I guess there'll be a 0.3 sometime soon too :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!)
munozm
Posts: 18
Joined: Sun Jul 08, 2007 10:14 pm

Post by munozm »

I'm looking forward to using this. Oddly, when I enable this plugin through config.php I see the following error at the top of the web page:
Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 116

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 117

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

Post by Howie »

munozm wrote:I'm looking forward to using this. Oddly, when I enable this plugin through config.php I see the following error at the top of the web page:
Warning: reset() [function.reset]: Passed variable is not an array or object in /var/www/cacti/lib/functions.php on line 116

Warning: Variable passed to each() is not an array or object in /var/www/cacti/lib/functions.php on line 117

Any thoughts? Thanks.
I've fixed this in my dev copy now - not sure why it didn't happen on my test FreeBSD install before, but I've just reinstalled windows on my desktop, and then a fresh Cacti, and now I see it. As soon as I get the unique filename stuff done, I'll make that 0.3.
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!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

There.

0.3 is now available from the link in the original message.
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!)
munozm
Posts: 18
Joined: Sun Jul 08, 2007 10:14 pm

Post by munozm »

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.
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

This is great Howie. I already have some great ideas on how to use this.

Thanks much

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest