
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
.
Then I want to install the Plugin Architecture wgit this site
http://cactiusers.org/wiki/PluginArchitectureInstallThe 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