Cactiusers.org


It is currently Tue Feb 07, 2012 5:37 pm




Post new topic Reply to topic  [ 4 posts ] 
 Install Problem on Ubuntu 9.10 
Author Message
New User

Joined: Tue Nov 03, 2009 2:04 pm
Posts: 1
Post Install Problem on Ubuntu 9.10
Hello,

I install cacti on a new Ubuntu 9.10 Server over
Code:
apt-get install cacti-spine
. No problem cacti is running in the version
Code:
Version 0.8.7d 
.
Then I want to install the Plugin Architecture wgit this site http://cactiusers.org/wiki/PluginArchitectureInstall

The first problem comes after the
Code:
patch -p1 -N --dry-run < cacti-plugin-0.8.7e-PA-v2.5.diff


Code:
root@cactitemp:/usr/share/cacti/site# patch -p1 -N --dry-run < /home/cacti-plugin-0.8.7e-PA-v2.5.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/bottom_footer.php
patching file include/global_arrays.php
Hunk #2 succeeded at 642 (offset -1 lines).
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
Hunk #2 succeeded at 91 (offset -1 lines).
Hunk #3 FAILED at 194.
Hunk #4 succeeded at 219 with fuzz 2 (offset -1 lines).
1 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1186 (offset 1 line).
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #2 FAILED at 55.
1 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
Hunk #1 succeeded at 132 (offset -5 lines).
patching file lib/auth.php
patching file lib/functions.php
Hunk #1 succeeded at 1640 (offset 1 line).
Hunk #2 succeeded at 1653 (offset 1 line).
Hunk #3 succeeded at 1732 (offset 1 line).
patching file lib/html_form.php
Hunk #1 succeeded at 661 (offset 6 lines).
Hunk #2 succeeded at 678 (offset 6 lines).
Hunk #3 succeeded at 699 (offset 6 lines).
patching file lib/html.php
Hunk #4 succeeded at 263 (offset -6 lines).
Hunk #5 succeeded at 702 (offset -6 lines).
Hunk #6 succeeded at 713 (offset -6 lines).
Hunk #7 succeeded at 742 (offset -6 lines).
Hunk #8 succeeded at 763 (offset -6 lines).
patching file lib/plugins.php
patching file lib/poller.php
Hunk #1 succeeded at 324 (offset -2 lines).
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
root@cactitemp:/usr/share/cacti/site#



I then tried just once

Code:
root@cactitemp:/usr/share/cacti/site# patch -p1 -N < /home/cacti-plugin-0.8.7e-PA-v2.5.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/bottom_footer.php
patching file include/global_arrays.php
Hunk #2 succeeded at 642 (offset -1 lines).
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
Hunk #2 succeeded at 91 (offset -1 lines).
Hunk #3 FAILED at 194.
Hunk #4 succeeded at 219 with fuzz 2 (offset -1 lines).
1 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1186 (offset 1 line).
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #2 FAILED at 55.
1 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
Hunk #1 succeeded at 132 (offset -5 lines).
patching file lib/auth.php
patching file lib/functions.php
Hunk #1 succeeded at 1640 (offset 1 line).
Hunk #2 succeeded at 1653 (offset 1 line).
Hunk #3 succeeded at 1732 (offset 1 line).
patching file lib/html_form.php
Hunk #1 succeeded at 661 (offset 6 lines).
Hunk #2 succeeded at 678 (offset 6 lines).
Hunk #3 succeeded at 699 (offset 6 lines).
patching file lib/html.php
Hunk #4 succeeded at 263 (offset -6 lines).
Hunk #5 succeeded at 702 (offset -6 lines).
Hunk #6 succeeded at 713 (offset -6 lines).
Hunk #7 succeeded at 742 (offset -6 lines).
Hunk #8 succeeded at 763 (offset -6 lines).
patching file lib/plugins.php
patching file lib/poller.php
Hunk #1 succeeded at 324 (offset -2 lines).
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
root@cactitemp:/usr/share/cacti/site#


And import the sql file.
And I get this on the page

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


So what´s the problem?

Regards
Philipp

Soory for my not so good English


Tue Nov 03, 2009 2:39 pm
New User

Joined: Wed Nov 04, 2009 3:48 pm
Posts: 1
Post Re: Install Problem on Ubuntu 9.10
I'm also running into a similar issue.
Distro: Debian 5.0
Cacti: 0.8.7e
Plugin Arch: 0.8.7e ver 2.5

/usr/share/cacti$ patch -F3 -p1 -N --dry-run < cacti-plugin-0.8.7e-PA-v2.5.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/bottom_footer.php
patching file include/global_arrays.php
Hunk #2 succeeded at 642 (offset -1 lines).
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
Hunk #2 succeeded at 91 (offset -1 lines).
Hunk #3 succeeded at 194 (offset -1 lines).
Hunk #4 succeeded at 219 with fuzz 2 (offset -1 lines).
patching file include/global_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
Hunk #2 FAILED at 55.
1 out of 6 hunks FAILED -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
Hunk #1 succeeded at 132 (offset -5 lines).
patching file lib/auth.php
patching file lib/functions.php
Hunk #1 succeeded at 1640 (offset 1 line).
Hunk #2 succeeded at 1653 (offset 1 line).
Hunk #3 succeeded at 1732 (offset 1 line).
patching file lib/html_form.php
Hunk #1 succeeded at 661 (offset 6 lines).
Hunk #2 succeeded at 678 (offset 6 lines).
Hunk #3 succeeded at 699 (offset 6 lines).
patching file lib/html.php
Hunk #2 FAILED at 143.
Hunk #4 succeeded at 263 (offset -6 lines).
Hunk #5 succeeded at 702 (offset -6 lines).
Hunk #6 succeeded at 713 (offset -6 lines).
Hunk #7 succeeded at 742 (offset -6 lines).
Hunk #8 succeeded at 763 (offset -6 lines).
1 out of 8 hunks FAILED -- saving rejects to file lib/html.php.rej
patching file lib/plugins.php
patching file lib/poller.php
Hunk #1 succeeded at 324 (offset -2 lines).
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 ignored these hunk failures the first time (since I've never used this ver of Cacti) and then encountered numerous errors later during the actual use of Cacti via the webgui (i.e. I couldn't click on Graphs, ntop, Thold, etc - all resulted in page errors).

If anyone could help, it'd be much appreciated.

Cheers,
Brennan


Wed Nov 04, 2009 3:53 pm
New User

Joined: Wed Nov 11, 2009 7:47 am
Posts: 2
Post Re: Install Problem on Ubuntu 9.10
I have the same issue. I was running 9.04 with cacti 0.8.7b with the plugin Arch along with Settings and thold.
All was working fine. I upgraded to 9.10 and the plugins have stopped working.
Same response as first poster.
When I go to download the latest plugin Architecture I see that when you go to edit the files with Vi they all have MS carriage returns. Is there a unix version of the files?? only a ZIP is available on the download website.


Wed Nov 11, 2009 7:52 am
New User

Joined: Wed Nov 11, 2009 7:47 am
Posts: 2
Post Re: Install Problem on Ubuntu 9.10
I have solved the problem.. .-
I took a fresh restore from a backup made from the cacti 0.8.7.d which Ubuntu 9.10 upgraded to.
Then before launching cacti I installed the files from the plugin PA2.5.
I then used "fromdos" to fix the issue of the corrupted global.php which was saved in MS dos format. You'll see this if you use vi.
sudo apt-get install tofrodos
sudo fromdos global.php
Then I edited the global.php, adding the plugins and followed this trusty guide to getting cacti plugins working on ubuntu..
http://www.askaboutphp.com/tutorials/42 ... -path.html
All is still valid except for the comment at line 128... this is no longer present.
I started Cacti and all is working.

It is important to install the PA before Cacti is launched.
Rgds
Donal


Wed Nov 11, 2009 9:40 am
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


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: