ubuntu 8.04 install problem

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
urban
Posts: 29
Joined: Thu Aug 04, 2005 6:33 am

ubuntu 8.04 install problem

Post by urban »

Hi,

i have a fresh install of a ubuntu 8.04 server. Ubuntu comes with cacti packages. I use this.

cacti 0.8.7b-2ubuntu1
cacti-cactid 0.8.6i-2build2

I have problem to install the cacti-plugin-ach. (Plugin Architecture - v2.1)

at the first time, i want use the patch file.

patch -p1 -N --dry-run < cacti-plugin-arch/cacti-plugin-0.8.7b-PA-v2.1.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/global_arrays.php
patching file include/global_form.php
patching file include/global.php
Reversed (or previously applied) patch detected! Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1084 (offset 1 line).
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file lib/html_tree.php
patching file lib/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php

I get an error. When i use the pre-patched files, i run also in a lot of errors.

I think, it is the better way to fix the patch file. But i have no idea, how can i fix it.

Have any one here the same problems? And how can i fix it.

best regards and sorry for my terrible english,
urban
urban
Posts: 29
Joined: Thu Aug 04, 2005 6:33 am

Post by urban »

I have found a solution for me.

I have change the adobe line to:

include($config["library_path"] . "/adodb/adodb.inc.php");

now, the patiching process works.

Then i have create a link to the real place of adodb.inc.php

That all

regards,
urban
filid
Posts: 1
Joined: Mon Jul 07, 2008 8:36 am

Applied patch, used this fix, still not working

Post by filid »

Hi,

I just read this post and the fix. I used the fix, and managed to get the patch to run with out error.

But afterwards the system was not usable at all.

Error message on 127.0.0.1/cacti/ looks like:

Code: Select all

Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620
Any hint?

system used is: Ubuntu 8.04.1 LTS with cacti installed from system
anbrutog
Posts: 1
Joined: Tue Jul 29, 2008 9:23 am

Re: Applied patch, used this fix, still not working

Post by anbrutog »

filid wrote:Hi,

I just read this post and the fix. I used the fix, and managed to get the patch to run with out error.

But afterwards the system was not usable at all.

Error message on 127.0.0.1/cacti/ looks like:

Code: Select all

Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620
Any hint?

system used is: Ubuntu 8.04.1 LTS with cacti installed from system
I'm having a simliar problem installing PA , getting the following from my dry run...

patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/global_arrays.php
patching file include/global_form.php
patching file include/global.php
Hunk #3 FAILED at 194.
1 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1084 (offset 1 line).
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file lib/html_tree.php
patching file lib/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php


Any ideas ??
zackR
Posts: 1
Joined: Thu Aug 14, 2008 5:09 am

Post by zackR »

Hi,

I'm new to ubuntu, and also had problems with installing 8.04, i got some help.

http://www.fixya.com/support/t914746-ub ... ll_problem

I think they will be able to help you, they have some good info.

Good luck with your problem.
Zack.
MorbidDK
Posts: 11
Joined: Thu Apr 28, 2005 8:11 am

Post by MorbidDK »

zackR, looks like that link is for installing Ubuntu, not in regards to this Plugins Archetecture install.

I should note I'm having the very same problem on a freshly installed cacti setup.
darkness
Posts: 1
Joined: Tue Aug 19, 2008 10:32 pm

Post by darkness »

I am having the same problem.

I have a successfully running Cacti 0.8.7b on Ubuntu 8.04.

But when I install the plugin architecture 2.1 by patching or direct file replace I get:

Fatal error: Call to undefined function api_plugin_hook() in /usr/share/cacti/site/include/global_arrays.php on line 620

it seems that global_arrays is not picking up the includes from the global.php?

Has anyone managed to fix this?
thanks for the help.

Regards
James
nationals
Cacti User
Posts: 76
Joined: Wed Aug 27, 2008 5:21 am
Location: China
Contact:

Post by nationals »

nationals
Cacti User
Posts: 76
Joined: Wed Aug 27, 2008 5:21 am
Location: China
Contact:

Post by nationals »

User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

After nationals advice my plugin works well.
BUT, spine not work...
does anybody achive this?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests