plugin architecture patched but nowhere to be found in Cacti

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
marianne.dherens
Posts: 31
Joined: Mon Mar 09, 2009 5:02 am
Location: Brussels

plugin architecture patched but nowhere to be found in Cacti

Post by marianne.dherens »

Hi everybody !

config:

Operating System:windows XP
Webserver: Apache2.2
Cacti: 0.8.7d
MySQL: 5.0.77
PHP: 5.2.9
RRDTool (Cygwin or Win32 version): 1-2.15
Net-SNMP:5.4.2.1-1
Cygwin (cygwin1.dll version): 1.5.20
Plugin Architecture: on the way !

I patched cacti-plugin-0.8.7d-PA-v2.4.diff (version from: http://forums.cacti.net/download.php?id=16863) on cacti-0.8.7d working properly.

I had problems first for 2 files global_constants.php and html.php but with this new version, I had no problem with the patching:

Code: Select all

C:\apache\htdocs\cacti>patch -p1 -N --dry-run < c:\cacti2009\plugins\cacti-plugi
n-arch\cacti-plugin-0.8.7d-PA-v2.4.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/bottom_footer.php
patching file include/global_arrays.php
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
patching file include/global_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
patching file lib/auth.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file lib/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php
So nothing new appear on the left side of the screen (plugin management in configuration) and nothing even under user management...

Can somebody help me to figure out what's wrong ?

Thanks a lot! :)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

You need to import the pa.sql too, before the plugin management will appear.
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!)
marianne.dherens
Posts: 31
Joined: Mon Mar 09, 2009 5:02 am
Location: Brussels

Post by marianne.dherens »

I know I'm a newbie but how do I do that exactly ? I suppose there is a command line... I tried to copy/paste it in the cacti folder and then in the lib and include folders but no luck.

Although since I used the patch method I don't need to copy the folders contained into files-0.8.7d, do I ?
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

Code: Select all

mysql -uroot -p cacti < pa.sql
or use the import SQL option in phpMyAdmin, if you use 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!)
marianne.dherens
Posts: 31
Joined: Mon Mar 09, 2009 5:02 am
Location: Brussels

Post by marianne.dherens »

thanks for the command, I applied it and I got no error message. However still no plugin management link...
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

marianne.dherens wrote:thanks for the command, I applied it and I got no error message. However still no plugin management link...
And if you go to User Admin.. and pick the admin user, do you have a new 'right' in there called something like 'manage plugins'?
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!)
marianne.dherens
Posts: 31
Joined: Mon Mar 09, 2009 5:02 am
Location: Brussels

Post by marianne.dherens »

no I don't. I have the same stuffs than before I installed the plugin architecture. And every box is checked.
cacti4bigy
Posts: 10
Joined: Wed Jul 11, 2007 12:42 pm

Post by cacti4bigy »

I have the same exact issue.
Upgraded Cacti to 8.7d ( Worked fine w/o errors )
2.4 Pa upgrade ( Worked fine w/o errors )
Ran pa.sql import ( Worked fine w/o errors )
No plugin management link on left bar near settings link.
Checked user management link for admin user, no additional user realm permissions and nothing about pluggins.

Please help, this is driving me nuts.
User avatar
GlueGuy
Cacti User
Posts: 255
Joined: Fri Nov 04, 2005 3:37 pm
Location: Ca US
Contact:

Post by GlueGuy »

I have essentially the same problem.

There is some step missing from the upgrade.

I upgraded from 0.8.7b to 0.8.7d, and all my plugin stuff disappeared.

Poked around a little, and determined that there was some significant change to the plugin architecture.

So I installed PIA 2.4. Updated permissions, and ran the pa.sql script.

All the above appeared to work correctly.

I checked the plugin_config table, and it shows this:

Code: Select all

+----+----------+-------------+-------------------+
| id | plugin   | file        | display           |
+----+----------+-------------+-------------------+
|  1 | internal | plugins.php | Plugin Management |
+----+----------+-------------+-------------------+
The plugin_config table is empty. I did not find anything to load it with anything. Is this correct?
---------
The Glue Guy
tomate
Cacti User
Posts: 73
Joined: Mon Jun 05, 2006 5:45 am

Post by tomate »

I have exactly the same on a fresh new install
the table is empty :-?
MagicOPromotion

plugin architecture patched but nowhere to be found in Cacti

Post by MagicOPromotion »

Hi,

I am about to write a CC2 plugin. As far as the textfile plugin sample shows how to pass data to CC2 everything is fine. But: I didnt find any information on how to expose the plugin items to the editor.

Is there any description on _DllGetPluginItems and _DllInsertConfigData?

I already tried the forum search without success.

Thanks a lot in advance,
Rene
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: plugin architecture patched but nowhere to be found in C

Post by Howie »

MagicOPromotion wrote:Hi,

I am about to write a CC2 plugin. As far as the textfile plugin sample shows how to pass data to CC2 everything is fine. But: I didnt find any information on how to expose the plugin items to the editor.

Is there any description on _DllGetPluginItems and _DllInsertConfigData?

I already tried the forum search without success.

Thanks a lot in advance,
Rene
Are you sure you have the right forum? Cacti plugins are not DLLs - they're written in PHP...

and what's CC2?
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
mariusz
Posts: 18
Joined: Wed May 06, 2009 2:15 am
Location: Poland

Post by mariusz »

The same by me.

Pre-patched, pa imported etc.

1. plugin management (realm permissions) for my user (admin) checked.
2. new tab Plugin Management appear, but clear, empty, just table with " Plugin Management" in upper row, even when Host info (working plugin !!! i don't know how) says that I AM USING clog, reportit etc.

Strange.

[SOLVED] I deleted ALL plugins folders from /Plugins, and leave just Hostinfo and settings, tab on left side in Cacti works ( Plugin Management), now i will work on next plugins.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests