problems with cacti and PIA v 2.8

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
veneno26
Posts: 27
Joined: Mon Jul 18, 2011 10:57 am

problems with cacti and PIA v 2.8

Post by veneno26 »

Hello

My problem is:

patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.8.diff

after applying the patch I have this error

[root@localhost cacti]# patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.8.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
Hunk #6 FAILED at 1323.
1 out of 6 hunks FAILED -- saving rejects to file data_sources.php.rej



database on import I pa.sql of cacti.sql, or go separately?

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

Re: problems with cacti and PIA v 2.8

Post by gandalf »

First, you should use PIA2.9 by now.
Then, please show us the contents of the rej file.
R.
veneno26
Posts: 27
Joined: Mon Jul 18, 2011 10:57 am

Re: problems with cacti and PIA v 2.8

Post by veneno26 »

Thaks

and upgrade to new version PIA v 2.9 now I have another error


patching file lib/poller.php
patching file lib/rrd.php
patching file lib/template.php
patching file lib/variables.php
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins/index.php.rej
The next patch would create the file plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins.php.rej
patching file poller.php
Hunk #1 succeeded at 108 with fuzz 2.
Hunk #2 succeeded at 306 (offset 1 line).
Hunk #3 FAILED at 432.
Hunk #4 FAILED at 451.
Hunk #5 succeeded at 500 (offset 1 line).
2 out of 5 hunks FAILED -- saving rejects to file poller.php.rej
patching file user_admin.php
patching file utilities.php
[root@localhost cacti]# patch -p1 -N < cacti-plugin-0.8.7g-PA-v2.9.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file cli/add_graph_template.php
patching file cli/add_tree.php
patching file cli/host_update_template.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
The next patch would create the file images/disable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/disable_icon.png.rej
The next patch would create the file images/enable_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/enable_icon_disabled.png.rej
The next patch would create the file images/enable_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/enable_icon.png.rej
The next patch would create the file images/install_icon_disabled.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/install_icon_disabled.png.rej
The next patch would create the file images/install_icon.png,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/install_icon.png.rej
The next patch would create the file images/uninstall_icon.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/uninstall_icon.gif.rej
The next patch would create the file images/view_none.gif,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file images/view_none.gif.rej
patching file include/auth.php
patching file include/bottom_footer.php
patching file include/config.php
Hunk #1 succeeded at 30 with fuzz 1.
patching file include/global_arrays.php
patching file include/global_constants.php
patching file include/global_form.php
patching file include/global.php
patching file include/global_settings.php
The next patch would create the file include/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/plugins.php.rej
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
The next patch would create the file lib/plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/plugins.php.rej
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/template.php
patching file lib/variables.php
The next patch would create the file plugins/index.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins/index.php.rej
The next patch would create the file plugins.php,
which already exists! Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file plugins.php.rej
patching file poller.php
Hunk #1 succeeded at 108 with fuzz 2.
Hunk #2 succeeded at 306 (offset 1 line).
Hunk #3 FAILED at 432.
Hunk #4 FAILED at 451.
Hunk #5 succeeded at 500 (offset 1 line).
2 out of 5 hunks FAILED -- saving rejects to file poller.php.rej

patching file user_admin.php
patching file utilities.php


how could I fix the problem with these files?

my url cacti does not work after applying this patch
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: problems with cacti and PIA v 2.8

Post by gandalf »

Did you apply the PIA 2.9 patches on top of PIA2.8???
Please try the full file replacements of PIA 2.9
R.
veneno26
Posts: 27
Joined: Mon Jul 18, 2011 10:57 am

Re: problems with cacti and PIA v 2.8

Post by veneno26 »

I did exactly as

patch -p1 -N --dry-run < cacti-plugin-0.8.7g-PA-v2.9.diff

but the error before, and I could not fix
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: problems with cacti and PIA v 2.8

Post by gandalf »

Which cacti version is your base version, please?
R.
veneno26
Posts: 27
Joined: Mon Jul 18, 2011 10:57 am

Re: problems with cacti and PIA v 2.8

Post by veneno26 »

yes

cacti-0.8.7g
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: problems with cacti and PIA v 2.8

Post by gandalf »

Then, please use pre-patched files from PIA2.9 and replace "old 087g files" by those found in PIA2.9
R.
veneno26
Posts: 27
Joined: Mon Jul 18, 2011 10:57 am

Re: problems with cacti and PIA v 2.8

Post by veneno26 »

thaks very much


mean that the file poller.php.rej

Hunk # 5 succeeded at 500 (offset 1 line).
2 out of 5 hunks FAILED - saving rejects to file poller.php.rej

I look in files-0.8.7g, and replace it in the root cacti?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: problems with cacti and PIA v 2.8

Post by gandalf »

veneno26 wrote:I look in files-0.8.7g, and replace it in the root cacti?
Yep.
In case you only have been running "--dry-run", all is fine, then.
In case you did a "real" patch, you may want to delete .rej files as they are superfluous, then.
R.
veneno26
Posts: 27
Joined: Mon Jul 18, 2011 10:57 am

Re: problems with cacti and PIA v 2.8

Post by veneno26 »

apparently does work, delete the file in the root directory poller.php cacti, and place the new folder that was in files-0.8.7g, now no longer get the error, now it comes from.

patching file poller.php
Reversed (or Previously applied) patch detected! Skipping patch.
5 out of 5 hunks ignore - saving rejects to file poller.php.rej
patching file user_admin.php

apparently the problem was solved,

How do I tell if VERSION OF PIA was installed?
veneno26
Posts: 27
Joined: Mon Jul 18, 2011 10:57 am

Re: problems with cacti and PIA v 2.8

Post by veneno26 »

I think what the problem is not the page load of cacti that files generated by the patch changed the permissions, according to the manual should I replace those who are in the folder files-0.8.7g,

is there a way to change permissions for command and not replace them one by one?
veneno26
Posts: 27
Joined: Mon Jul 18, 2011 10:57 am

Re: problems with cacti and PIA v 2.8

Post by veneno26 »

and solve the tube to replace the files that were modified with

patch-p1-N - dry-run <cacti-plugin-arch.diff

and replace those already in the folder had files-0.8.7g, thus opening page of cacti, but I see no change in the interface to import the database pa.sql?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests