Plugin Architecture Install Problem

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
phil_w

Plugin Architecture Install Problem

Post by phil_w »

Having abandoned my previous install which I had a thread open about, I have done a fresh install of cacti 0.8.7d on Ubuntu 9.10, ran through the install process and then patched with PA from;

http://mirror.cactiusers.org/downloads/ ... A-v2.4.zip

applied using the patch command and added the sql file, and editted the global.php to point to the right url.

Now I am getting the following error when i browse to http://serverip/cacti/

Code: Select all

Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php  on line 649
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

can you check if the file "lib/plugins.php" is existing ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
phil_w

Post by phil_w »

/usr/share/cacti/lib/plugins.php

does exist yes.
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

then scan thorugh the include/global.php file, there should be the following lines somewhere near the end:

Code: Select all

include_once($config["library_path"] . "/plugins.php");
include_once($config["include_path"] . "/plugins.php");
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

He attempting to "hack" a Debian packagers Cacti. Could get tricky. My home Bufallo Linkstation is running Cacti on Debian w/PIA, but you have to be careful.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
phil_w

Post by phil_w »

phalek wrote:then scan thorugh the include/global.php file, there should be the following lines somewhere near the end:

Code: Select all

include_once($config["library_path"] . "/plugins.php");
include_once($config["include_path"] . "/plugins.php");
These were missing for some reason, though adding them has made no difference to the result when browsing to cacti.
TheWitness wrote:He attempting to "hack" a Debian packagers Cacti. Could get tricky. My home Bufallo Linkstation is running Cacti on Debian w/PIA, but you have to be careful.
Is there any distro which has a repo package that accepts the PA easily?
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

For the Debian install, you must change the location in global.php to the correct ADODB location as it's not in the Cacti root.

Second, database settings are stored in /etc/cacti/debian.conf (pretty sure that's the name), so that file will need to be sourced.

The whole exercise involves taking the strait Debian install, and auditing their global.php vs. the one provided by the PIA. Once you have reconciled that, you can overwrite all files from the "all files" portion of the PIA over the Cacti install.

Of course, you can not overwrite global.php.

That's how I did it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Here's a small manual on how to install the PIA on an Ubuntu installation. Still works for 9.10 ( checked it myself) :

http://www.askaboutphp.com/42/cacti-ubu ... -path.html
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests