Do not see plugin config in 0.8.7i

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
wdennis
Posts: 10
Joined: Tue Dec 02, 2008 5:11 pm
Location: Princeton, NJ

Do not see plugin config in 0.8.7i

Post by wdennis »

Hi all,

Just installed a fresh copy of 0.8.7i from the tar file "cacti-0.8.7i.tar.gz" on a new server. Did not read about the integrated 3.1 plugin arch until after I had installed, so I just untarred and then copied the files from "cacti-0.8.7i-PIA-3.1.tar.gz" over the existing install's files, then dropped and re-created the cacti DB and re-ran the cacti.sql script. I can successfully log into Cacti and see that it says I'm on 0.8.7i, but do not see where the plugin config is... I do have 4 tables in MySQL that make it seem to me like I have the plugin arch installed:

Code: Select all

plugin_config  0  MyISAM  latin1_swedish_ci 
plugin_db_changes  0  MyISAM  latin1_swedish_ci 
plugin_hooks  2  MyISAM  latin1_swedish_ci 
plugin_realms  1  MyISAM  latin1_swedish_ci 
So, how do I get the plugin arch config'd at this point?

Thanks,
Will
wdennis
Posts: 10
Joined: Tue Dec 02, 2008 5:11 pm
Location: Princeton, NJ

Re: Do not see plugin config in 0.8.7i

Post by wdennis »

Update:

If I try to go to the URL http://<servername>/cacti/plugins.php on my server while logged in as the "admin" user, I get the following message:
ACCESS DENIED

You are not permitted to access this section of Cacti. If you feel that you need access to this particular section, please contact the Cacti administrator.
So it looks like some sort of permissions problem... but how to fix??
wdennis
Posts: 10
Joined: Tue Dec 02, 2008 5:11 pm
Location: Princeton, NJ

Re: Do not see plugin config in 0.8.7i

Post by wdennis »

OK, sometimes the answer isn't so complex...

Went to the User Management page and looked at the "admin" user's Realm Perm's, and what do you know -- "Plugin Management" was unchecked :oops:

I checked it, saved, and -- now there's a "Plugin Management" link under "Settings" 8)

Maybe this is also the solution to "Rno"'s thread here: http://forums.cacti.net/viewtopic.php?f=14&t=46033 ?? (hope it's that easy!)

Thanks anyways!
Will
Rno
Cacti Pro User
Posts: 692
Joined: Wed Dec 07, 2011 9:19 am

Re: Do not see plugin config in 0.8.7i

Post by Rno »

no since I don't see the plugin management option

Thanks anyway
Test
Almalinux
php 8.2.14
mariadb 10.6.16
Cacti 1.2.27
Spine 1.2.27
RRD 1.7.2
thold 1.8
monitor 2.5
syslog 3.2
flowview: 3.3
weathermap 1.0 Beta
istein001
Cacti User
Posts: 54
Joined: Fri Feb 22, 2008 4:44 pm
Location: Houston

Re: Do not see plugin config in 0.8.7i

Post by istein001 »

Saw the same thing... i fixed this in 0.8.7h by extracting the seperate PIA tarball and executing the upgrade sql. Then the option to enable plugin mgt for the Admin user appeared.

I can't seem to find PIA 3.1 for 8.7i anywhere... i have a stock install, straight out of the cacti 8.7i+PIA and the option for Plugin mgt under User Mgnt is not there.
istein001
Cacti User
Posts: 54
Joined: Fri Feb 22, 2008 4:44 pm
Location: Houston

Re: Do not see plugin config in 0.8.7i

Post by istein001 »

Found a fix, grabbed pa.sql from PIA 3.0; if you run these into mysql then the option appears. These tables appear to be missing from stock install.

(load mysql with your cacti user and pw, "cactiuser" is default)
mysql -u cactiuser -p cacti

(paste below txt)
--
-- Table structure for table `plugin_config`
--

CREATE TABLE `plugin_config` (
`id` int(8) NOT NULL auto_increment,
`directory` varchar(32) NOT NULL default '',
`name` varchar(64) NOT NULL default '',
`status` tinyint(2) NOT NULL default '0',
`author` varchar(64) NOT NULL default '',
`webpage` varchar(255) NOT NULL default '',
`version` varchar(8) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `status` (`status`),
KEY `directory` (`directory`)
) ENGINE=MyISAM;

-- --------------------------------------------------------

--
-- Table structure for table `plugin_hooks`
--

CREATE TABLE `plugin_hooks` (
`id` int(8) NOT NULL auto_increment,
`name` varchar(32) NOT NULL default '',
`hook` varchar(64) NOT NULL default '',
`file` varchar(255) NOT NULL default '',
`function` varchar(128) NOT NULL default '',
`status` int(8) NOT NULL default '0',
PRIMARY KEY (`id`),
KEY `hook` (`hook`),
KEY `status` (`status`)
) ENGINE=MyISAM;

-- --------------------------------------------------------

--
-- Table structure for table `plugin_realms`
--

CREATE TABLE `plugin_realms` (
`id` int(8) NOT NULL auto_increment,
`plugin` varchar(32) NOT NULL default '',
`file` text NOT NULL,
`display` varchar(64) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `plugin` (`plugin`)
) ENGINE=MyISAM;


CREATE TABLE `plugin_db_changes` (
`id` int(10) NOT NULL auto_increment,
`plugin` varchar(16) NOT NULL default '',
`table` varchar(64) NOT NULL default '',
`column` varchar(64) NOT NULL,
`method` varchar(16) NOT NULL default '',
PRIMARY KEY (`id`),
KEY `plugin` (`plugin`),
KEY `method` (`method`)
) ENGINE=MyISAM;


REPLACE INTO `plugin_realms` VALUES (1, 'internal', 'plugins.php', 'Plugin Management');
INSERT INTO `plugin_hooks` VALUES (1, 'internal', 'config_arrays', '', 'plugin_config_arrays', 1);
INSERT INTO `plugin_hooks` VALUES (2, 'internal', 'draw_navigation_text', '', 'plugin_draw_navigation_text', 1);
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests