Problem with PIA 2.9 on cacti 0.8.7g

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
zeclad01
Posts: 9
Joined: Wed Feb 01, 2012 2:59 am

Problem with PIA 2.9 on cacti 0.8.7g

Post by zeclad01 »

Hi,

I try to install the Plugin Architecture (PIA) 2.9 on cacti 0.8.7g (on debian).
I follow this howto : http://docs.cacti.net/manual:087:1_installation.9_pia
I use this version : http://www.cacti.net/downloads/pia/cact ... 2.9.tar.gz

Code: Select all

root@srv2:/usr/share/cacti/site# patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.9.diff 
patching file auth_changepassword.php
patching file auth_login.php
Hunk #1 FAILED at 124.
1 out of 4 hunks FAILED -- saving rejects to file auth_login.php.rej
patching file cli/add_graph_template.php
Hunk #1 FAILED at 144.
1 out of 1 hunk FAILED -- saving rejects to file cli/add_graph_template.php.rej
patching file cli/add_tree.php
Hunk #1 FAILED at 33.
1 out of 1 hunk FAILED -- saving rejects to file cli/add_tree.php.rej
patching file cli/host_update_template.php
Hunk #1 FAILED at 136.
1 out of 1 hunk FAILED -- saving rejects to file cli/host_update_template.php.rej
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 images/disable_icon.png
patching file images/enable_icon_disabled.png
patching file images/enable_icon.png
patching file images/install_icon_disabled.png
patching file images/install_icon.png
patching file images/uninstall_icon.gif
patching file images/view_none.gif
patching file include/auth.php
patching file include/bottom_footer.php
patching file include/config.php
Hunk #1 succeeded at 26 with fuzz 2 (offset -4 lines).
patching file include/global_arrays.php
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
Hunk #2 succeeded at 195 with fuzz 2.
patching file include/global_settings.php
Hunk #1 succeeded at 1191 (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_automation_tools.php
patching file lib/api_device.php
patching file lib/api_graph.php
patching file lib/api_tree.php
patching file lib/auth.php
patching file lib/data_query.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/template.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
So I apply the patches on this link (http://www.cacti.net/download_patches.p ... ion=0.8.7g) :

Code: Select all

root@srv2:/usr/share/cacti/site# patch -p1 -N < graph_list_view.patch 
patching file graph_view.php
Reversed (or previously applied) patch detected!  Skipping patch.
9 out of 9 hunks ignored -- saving rejects to file graph_view.php.rej
root@srv2:/usr/share/cacti/site# patch -p1 -N < html_output.patch 
patching file lib/html_form.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/html_form.php.rej
patching file lib/data_query.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/data_query.php.rej
patching file data_sources.php
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file data_sources.php.rej
patching file graphs.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file graphs.php.rej
root@srv2:/usr/share/cacti/site# patch -p1 -N < ldap_group_authenication.patch 
patching file lib/ldap.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/ldap.php.rej
root@srv2:/usr/share/cacti/site# patch -p1 -N < script_server_command_line_parse.patch 
patching file script_server.php
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file script_server.php.rej
root@srv2:/usr/share/cacti/site# patch -p1 -N < ping.patch 
patching file lib/ping.php
root@srv2:/usr/share/cacti/site# patch -p1 -N < poller
poller_commands.php    poller_export.php      poller_interval.patch  poller.php             
root@srv2:/usr/share/cacti/site# patch -p1 -N < poller_interval.patch 
patching file lib/database.php
patching file poller.php
root@srv2:/usr/share/cacti/site#
And i retry to patch but with the same result.

I can't install 0.8.8 because the version on debian repository is 0.8.7g

Thanks for your help
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Problem with PIA 2.9 on cacti 0.8.7g

Post by gandalf »

It may happen, that on debian the ./cli directory was moved to a different place. Thus, the first set of patches will fail.

For the second set, I need the .rej files
R.
zeclad01
Posts: 9
Joined: Wed Feb 01, 2012 2:59 am

Re: Problem with PIA 2.9 on cacti 0.8.7g

Post by zeclad01 »

Hi, thanks for your reply.

On debian, the two directory are :

/usr/share/cacti/cli
/usr/share/cacti/site

What do you need to solve my problem ?
What can i do to solve it ?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: Problem with PIA 2.9 on cacti 0.8.7g

Post by gandalf »

Sorry, I can't help for debian. I know that there is a different file structure, but that's all
R.
zeclad01
Posts: 9
Joined: Wed Feb 01, 2012 2:59 am

Re: Problem with PIA 2.9 on cacti 0.8.7g

Post by zeclad01 »

Okay, thanks for your help.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests