Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Fri Jul 19, 2019 4:14 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Plugin Architecture Install Problem
PostPosted: 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:
Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php  on line 649


Top
  
 
 Post subject:
PostPosted: Wed Feb 17, 2010 10:48 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2710
Location: Kressbronn, Germany
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:
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 17, 2010 11:19 am 
/usr/share/cacti/lib/plugins.php

does exist yes.


Top
  
 
 Post subject:
PostPosted: Wed Feb 17, 2010 11:22 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2710
Location: Kressbronn, Germany
then scan thorugh the include/global.php file, there should be the following lines somewhere near the end:

Code:
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:
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


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 17, 2010 7:47 pm 
Offline
Developer
User avatar

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


Top
 Profile  
 
 Post subject:
PostPosted: 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:
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?


Top
  
 
 Post subject:
PostPosted: Thu Feb 18, 2010 7:35 am 
Offline
Developer
User avatar

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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 20, 2010 3:45 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Jan 31, 2008 6:39 am
Posts: 2710
Location: Kressbronn, Germany
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:
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group