SuperLinks 0.8 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.8 Released

Post by Howie »

Over here, you will find the latest version of SuperLinks, a Cacti plugin to allow you to integrate your own content into Cacti's UI.

New in this version are the ability to use streaker69's 'small tabs' throughout Cacti, even with plugins that don't know about them. Also, you can have multiple console menu sections now, and remove/replace quite a bit of the Cacti branding.
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
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Thanks!
But I found error. In setup.php:441

Code: Select all

$colsql = "show columns from superlinks_pages from '" . $database_default."'";   
to

Code: Select all

$colsql = "show columns from superlinks_pages from `" . $database_default."`";  
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Which version/platform of mysql is that?
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
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Production:

Code: Select all

mysql-server-5.0.45-7.el5 on CentOS release 5.2 (Final)
Development:

Code: Select all

5.0.45-community-nt-log on WinXP 32bit.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Strange that I never had a problem, but the mysql manual shows you are right...

I've put up a new version with the same filename.
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!)
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Howie,

Found some issues:

When clicking Superlinks Pages

Console Menu
Notice: Undefined index: extendedstyle in C:\wamp\www\cacti\plugins\superlinks\superlinks-mgmt.php on line 225
()

When attempting to edit an existing link

Warning: Invalid argument supplied for foreach() in C:\wamp\www\cacti\plugins\superlinks\superlinks-mgmt.php on line 617

Notice: Undefined index: extendedstyle in C:\wamp\www\cacti\plugins\superlinks\superlinks-mgmt.php on line 633

Notice: Undefined index: extendedstyle in C:\wamp\www\cacti\plugins\superlinks\superlinks-mgmt.php on line 634

Any ideas ?

Thanks
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Also errors in the event log

12/01/2008 09:35:33 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1054', SQL:"select extendedstyle from superlinks_pages where style='CONSOLE' group by extendedstyle order by extendedstyle"
12/01/2008 09:33:50 AM - CMDPHP: Poller[0] ERROR: SQL Assoc Failed!, Error:'1054', SQL:"select extendedstyle from superlinks_pages where style='CONSOLE' group by extendedstyle order by extendedstyle"

According to the MYSQL table "superlinks_pages", there doesn't seem to be a field called "extendedstyle" ?

This was an upgrade from 0.72 to 0.8..
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

Sorry - FIXED

Created the field in the table manually:

extendedstyle varchar(50) NOT NULL DEFAULT ''

Seems like the below in setup.php at line 427 didn't get applied correctly:

if (!in_array('superlinks_pages', $tables)) {
$sql[] = "CREATE TABLE superlinks_pages(
id int(11) NOT NULL auto_increment,
sortorder int(11) NOT NULL default 0,
contentfile text NOT NULL,
title text NOT NULL,
style varchar(10) NOT NULL DEFAULT 'TAB',
extendedstyle varchar(50) NOT NULL DEFAULT '',
imagecache varchar(60) NOT NULL DEFAULT '',
PRIMARY KEY (id)
) TYPE=MyISAM;";
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

I cannot get this to force small tabs across the environment. Do i need to install Streaker's small tabs stuff as well?

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]
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:I cannot get this to force small tabs across the environment. Do i need to install Streaker's small tabs stuff as well?

app
No, it comes with his tabs, and will automatically generate small tabs for everything else. As long as the tab_images folder is writable by the web user, and javascript is enabled.
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 »

mcutting wrote:Sorry - FIXED

Created the field in the table manually:

extendedstyle varchar(50) NOT NULL DEFAULT ''

Seems like the below in setup.php at line 427 didn't get applied correctly:

if (!in_array('superlinks_pages', $tables)) {
$sql[] = "CREATE TABLE superlinks_pages(
id int(11) NOT NULL auto_increment,
sortorder int(11) NOT NULL default 0,
contentfile text NOT NULL,
title text NOT NULL,
style varchar(10) NOT NULL DEFAULT 'TAB',
extendedstyle varchar(50) NOT NULL DEFAULT '',
imagecache varchar(60) NOT NULL DEFAULT '',
PRIMARY KEY (id)
) TYPE=MyISAM;";
Odd. I've just done the same upgrade on my production server, and it all went through fine...
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!)
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Does JavaScript need to be enabled on my browser or from within Cacti? the tab_images folder within the Plugins/superlinks has Apache as the owner on that folder. The only tabs that are going small are the SuperLinks tabs, nothing else is.

thanks for the great plugin.

app
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:Does JavaScript need to be enabled on my browser or from within Cacti? the tab_images folder within the Plugins/superlinks has Apache as the owner on that folder. The only tabs that are going small are the SuperLinks tabs, nothing else is.

thanks for the great plugin.

app
Javascript on your browser. What it does is look for tab images of a certain size, in the right part of the page, and then request a small tab with the same text as the ALT text for the tab. If it's the first time, it generates it, and caches the result in tab_images. You should see these appearing as "auto-xyz" files in the tab_images folder.

You should also see requests for tabgen.php in your apache access log.
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!)
flask28
Posts: 4
Joined: Thu Mar 27, 2008 5:25 pm

Post by flask28 »

I'm running cacti 7b and have an otherwise working plugin arch.

I just installed the superlinks plugin and while the Superlinks Pages link shows up under management I cannot see the new realm permissions as options to select for any users.

the log is showing the following error:

01/15/2009 04:07:02 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1146', SQL:"INSERT INTO plugin_realms (plugin, file, display) VALUES ('superlinks', 'superlinks.php', 'Plugin -> SuperLinks: View Pages')'
01/15/2009 04:07:02 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1146', SQL:"INSERT INTO plugin_realms (plugin, file, display) VALUES ('superlinks', 'superlinks-mgmt.php', 'Plugin -> SuperLinks: Manage Pages')'
01/15/2009 04:07:02 PM - SYSTEM STATS: Time:60.3306 Method:cmd.php Processes:10 Threads:N/A Hosts:50 HostsPerProcess:5 DataSources:1261 RRDsProcessed:690
01/15/2009 04:08:01 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1146', SQL:"INSERT INTO plugin_realms (plugin, file, display) VALUES ('superlinks', 'superlinks.php', 'Plugin -> SuperLinks: View Pages')'
01/15/2009 04:08:01 PM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1146', SQL:"INSERT INTO plugin_realms (plugin, file, display) VALUES ('superlinks', 'superlinks-mgmt.php', 'Plugin -> SuperLinks: Manage Pages')'


Any guesses?
aurfalien
Posts: 30
Joined: Tue Nov 11, 2008 8:27 pm

Post by aurfalien »

hi flask28,

did you ever resolve this?

*** update ***

I forget to do this just about every time as it doesn't seem to be in the read me, but when you install the plugin architecure, you must also import pa.sql.

syntx;

mysql cactdbname -u mysqlusername -p < pa.sql

easy to forget.
Last edited by aurfalien on Wed Aug 26, 2009 7:12 pm, edited 1 time in total.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests