cacti PIA on Ubuntu

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
arvind
Posts: 5
Joined: Thu May 13, 2010 11:47 am

cacti PIA on Ubuntu

Post by arvind »

I have installed Cacti on Ubuntu 9.10 Karmic Koala. After installing cacti-plugin-0.8.7d-PA-v2.4 I am not able to open cacti page and its returning the error 'Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/auth_login.php on line 269'. Pls if anyone can help. Thanks in advance.
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

Please use PIA version 2.6

Which way do you use vor installation? Full Files is recommended
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0

[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
arvind
Posts: 5
Joined: Thu May 13, 2010 11:47 am

Post by arvind »

I believe PIA v2.4 is recommended for cacti 0.8.7d and I have used copied the updated files in cacti directory.
arvind
Posts: 5
Joined: Thu May 13, 2010 11:47 am

Post by arvind »

I done something and now I am getting below error message. - Warning: include(/usr/share/cacti/site/lib/adodb/adodb.inc.php) [function.include]: failed to open stream: No such file or directory in /usr/share/cacti/site/include/global.php on line 201

Warning: include() [function.include]: Failed opening '/usr/share/cacti/site/lib/adodb/adodb.inc.php' for inclusion (include_path='.') in /usr/share/cacti/site/include/global.php on line 201

Fatal error: Call to undefined function NewADOConnection() in /usr/share/cacti/site/lib/database.php on line 38

Any expert advise on this error message. I still haven't run importing pa.sql. Can anybody guide how to do this. Should this be run from command promt at the directory containing pa.sql and what should be the command syntax.
User avatar
Sirup
Cacti Moderator
Posts: 348
Joined: Tue Mar 02, 2010 9:03 am

Post by Sirup »

arvind wrote: I still haven't run importing pa.sql. Can anybody guide how to do this. Should this be run from command promt at the directory containing pa.sql and what should be the command syntax.
Goto the folder cacti-plugin-arch (which you extracted from the download). In this folder is the pa.sql.
Import is the same as the file cacti.sql at the installation of cacti:
mysql [databasename] < pa.sql --password
[size=67]Cacti version: 0.8.7e5
OS: FreeBSD 7.2
Plugin Architecture: 2.6
Plugins: aggregate 0.74, autom8 0.33, loginmod 1.0

[url=http://docs.cacti.net/manual:087]Official Cacti Documentation[/url]
[url=http://docs.cacti.net/manual:087:4_help.2_debugging#debugging]Gandalfs Official Debugging Help[/url]
[/size]
catcha8
Posts: 16
Joined: Thu May 20, 2010 8:58 am
Location: Switzerland

Post by catcha8 »

Hello,

Did you check your config.php, there's some additional changes for ubuntu, maybe this one will match with your config:
include($config["library_path"]."/adodb/adodb.inc.php");
change it to:
include("/usr/share/php/adodb/adodb.inc.php");
Regards
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Ubuntu is a debian fork. Therefore they put adodb in /usr/lib/adodb i think.

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?
Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

Post by Voiper99 »

Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests