cacti PIA on Ubuntu

Support for the Plugin Architecture

Moderators: Moderators, Developers

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

cacti PIA on Ubuntu

#1 Post by arvind » Thu May 13, 2010 11:54 am

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

#2 Post by Sirup » Mon May 17, 2010 3:07 am

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

#3 Post by arvind » Mon May 17, 2010 4:09 am

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

#4 Post by arvind » Mon May 17, 2010 8:45 am

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

#5 Post by Sirup » Tue May 18, 2010 2:11 am

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

#6 Post by catcha8 » Thu May 20, 2010 2:27 pm

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

#7 Post by TheWitness » Thu May 20, 2010 5:36 pm

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 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.

Voiper99
Cacti User
Posts: 276
Joined: Thu Mar 01, 2007 5:43 pm
Location: Melbourne, Australia

#8 Post by Voiper99 » Wed Aug 04, 2010 5:53 pm


Post Reply