Superlinks 0.8 PIA 2.4 - No Superlinks in REALM permissions

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Superlinks 0.8 PIA 2.4 - No Superlinks in REALM permissions

Post by Netcooler »

I added the Superlinks Plugin to my installation

I do not get the check boxes for Superlinks realm permissions

Other plugins are there and show up (thold | flow viewer | settings | update) but not Superlinks.

Checked DIR permissions and they appear consistent with my other plugins.

When I check Plugin Management I see that the status for all my plugins reads "Old Plugin Architecture - Running" but Superlinks in that page only reads "Old Plugin Architecture" but not running.

PIA is installed properly from what I can gather - what else may I be missing??
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

If it doesn't say 'Running' for an old style plugin, then it's usually that you didn't add it to global.php
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!)
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

Yeah - I did in fact add it to the global.php under the include directory. is there something else.

i do not see errors are all in the log file about superlinks and I also do not see the information under user_realms in the DB..

Not sure where things may be wrong. Unless I need to chmod all the way open on the superlinks dir and see if that works...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Netcooler wrote:Yeah - I did in fact add it to the global.php under the include directory. is there something else.

i do not see errors are all in the log file about superlinks and I also do not see the information under user_realms in the DB..

Not sure where things may be wrong. Unless I need to chmod all the way open on the superlinks dir and see if that works...
Shouldn't need to. It should be the same as the other plugins. The tab_images subdir needs to be writable by the webserver, but that won't stop the plugin from running.

What happens if you temporarily disable the other plugins? Sometimes they interact. I have never used flowviewer, for example.
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!)
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

I can try - i also removed superlinks and re-added it and placed the name of the plugin above the others in the global.php

Will try to disable and see what happens.
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

HMM no love - the only one to "disable" is thold.. others I commented out of the global php..

still no love. Gotta be something I am not doing on my end.

1. Unzip the superlinks zip in the /plugins dir
2. chown -R to the correct user and group for the superlinks dir
3. modified the global.php under the /include directory to add the superlinks plugin
4. accessed user management | my user | realms > no additional realms
5. Under Plugin Management see the plugin but it is not running.

Did I miss a step where I may need to create anything in the db? MySQL 5.0.67
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

No it should do that for you. Are there any superlinks_* tables in the database?

Do you have anything unusual about your mysql config? e.g. strict_mode?
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!)
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

I'll have to check.. I did not see any superlinks tables at all in the DB whcih is what promted my ?? for creation. i did not build this install of cacti - I just get to manage the bad boy. I will follow up and repost here is i find anything out.

Thanks for the assistance so far.. hopefully i can get this working as this I think will be extremely helpful to our team here.
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

Yeah - when i do a show tables in mysql on the cact DB there is no superlinks anything... seems like there is an issue there right but not seeing anytihg in the cacti log file indicating failures. Again, will follow up with the developer to see if there was anything special that he needed to do for the other plugins :-?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Here's the SQL that it runs to create the tables. Try running that from the mysql CLI and see if it complains?

Code: Select all

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;
			
	CREATE TABLE superlinks_auth (
		userid mediumint(9) NOT NULL default '0',
		pageid int(11) NOT NULL default '0'
	) TYPE=MyISAM;
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!)
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

Will take a look - looks like that is frrom the setup.php file right?

OK will let you know as soon as I talk to the developer.
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

Did not bark about creating the table superlinks_pages or superlinks_auth..

did a show columns on the tables and it appears to have created everything.

HMM.. so... now I have two tables created in the DB but nothing else appears to be doing anything still nothing under realm permissions and no status change in the Plugins GUI
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

So it also - If I am reading that PHP correctly - is supposed to create user_auth_realm id's too right 141 and 142..

they do not seem to be there almost as if this setup.php has not been able to run at all.

is there a way i can run that setup.php "manually from the command line?? I may be way off base there...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Netcooler wrote:So it also - If I am reading that PHP correctly - is supposed to create user_auth_realm id's too right 141 and 142..

they do not seem to be there almost as if this setup.php has not been able to run at all.

is there a way i can run that setup.php "manually from the command line?? I may be way off base there...
Not really - it's not just the database setup. setup.php is the main guts of the plugin. If it's not being run, you won't get very far. :-?
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!)
Netcooler
Cacti User
Posts: 127
Joined: Thu Dec 24, 2009 9:08 am

Post by Netcooler »

Yeah - seems as if that bad boy is not getting picked up somewhere along the way...


hmm.. did I say my version was 08.7d?? would that matter with PIA 2.4??
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests