Plugin Architecture Install Problem

Support for the Plugin Architecture

Moderators: Moderators, Developers

Post Reply
Author
Message
phil_w

Plugin Architecture Install Problem

#1 Post by phil_w » Wed Feb 17, 2010 7:50 am

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
Cacti Guru User
Posts: 2711
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#2 Post by phalek » Wed Feb 17, 2010 10:48 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

phil_w

#3 Post by phil_w » Wed Feb 17, 2010 11:19 am

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

does exist yes.

User avatar
phalek
Cacti Guru User
Posts: 2711
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#4 Post by phalek » Wed Feb 17, 2010 11:22 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

User avatar
TheWitness
Developer
Posts: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#5 Post by TheWitness » Wed Feb 17, 2010 7:47 pm

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

phil_w

#6 Post by phil_w » Thu Feb 18, 2010 4:49 am

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: 14804
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#7 Post by TheWitness » Thu Feb 18, 2010 7:35 am

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 MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

User avatar
phalek
Cacti Guru User
Posts: 2711
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

#8 Post by phalek » Sat Feb 20, 2010 3:45 am

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 : CereusTransporter | CereusReporting | nmidWebService | nmidSmokeping | nmidWeb2 |

Code: Select all

CereusServer Master:  SYSTEM STATS: Time:2.5621 Method:spine Processes:1 Threads:16 Hosts:446 HostsPerProcess:446 DataSources:14683 RRDsProcessed:7573
CereusServer Agent:   SYSTEM STATS: Time:27.4840 Method:spine Processes:1 Threads:8 Hosts:16 HostsPerProcess:16 DataSources:114576 RRDsProcessed:48061
[/size]

Post Reply