Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


ubuntu 8.04 install problem

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture
Author Message
urban



Joined: 04 Aug 2005
Posts: 21

PostPosted: Wed Jun 25, 2008 7:05 am    Post subject: ubuntu 8.04 install problem Reply with quote

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
Back to top
urban



Joined: 04 Aug 2005
Posts: 21

PostPosted: Thu Jun 26, 2008 9:47 am    Post subject: Reply with quote

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
Back to top
filid



Joined: 07 Jul 2008
Posts: 1

PostPosted: Mon Jul 07, 2008 8:46 am    Post subject: Applied patch, used this fix, still not working Reply with quote

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:

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
Back to top
anbrutog



Joined: 29 Jul 2008
Posts: 1

PostPosted: Tue Jul 29, 2008 9:28 am    Post subject: Re: Applied patch, used this fix, still not working Reply with quote

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:

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 ??
Back to top
zackR



Joined: 14 Aug 2008
Posts: 1

PostPosted: Thu Aug 14, 2008 5:12 am    Post subject: Reply with quote

Hi,

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

http://www.fixya.com/support/t914746-ubuntu_install_problem

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

Good luck with your problem.
Zack.
Back to top
MorbidDK



Joined: 28 Apr 2005
Posts: 11

PostPosted: Tue Aug 19, 2008 12:17 am    Post subject: Reply with quote

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.
Back to top
darkness



Joined: 19 Aug 2008
Posts: 1

PostPosted: Tue Aug 19, 2008 10:38 pm    Post subject: Reply with quote

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
Back to top
nationals



Joined: 27 Aug 2008
Posts: 13

PostPosted: Wed Aug 27, 2008 5:26 am    Post subject: Reply with quote

http://cactiusers.org/forums/topic1631.html
Back to top
nationals



Joined: 27 Aug 2008
Posts: 13

PostPosted: Mon Sep 08, 2008 1:30 am    Post subject: Reply with quote

http://forums.cacti.net/viewtopic.php?t=28848&highlight=
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 610
Location: Izmir/Turkey

PostPosted: Fri Oct 31, 2008 3:54 am    Post subject: Reply with quote

nationals wrote:
http://forums.cacti.net/viewtopic.php?t=28848&highlight=

After nationals advice my plugin works well.
BUT, spine not work...
does anybody achive this?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group