|
|
| Author |
Message |
Kev179
Joined: 09 Feb 2006 Posts: 1
|
Posted: Thu Feb 09, 2006 8:09 am Post subject: problem with plugin architecture |
|
|
I work currently on Cacti 0.8.6g and I wish to install plugins.
I downloaded architecture plugin and when I use the order :
patch -p1 -N --dry-run < cacti-plugin-arch.diff
to install architecture plugin, that posts me the following error :
patching file data_sources.php
patching file graphs_new.php
patching file include/config_arrays.php
patching file include/config_form.php
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 succeeded at 178 (offset 3 lines).
1 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/config_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 lib/api_device.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.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
patching file poller.php
Hunk #1 succeeded at 35 with fuzz 1.
Hunk #2 succeeded at 231 (offset -3 lines).
You can help me, thanks |
|
| Back to top |
|
 |
N3NCY Cacti User
Joined: 22 Sep 2005 Posts: 242 Location: Landenberg, PA
|
Posted: Sat Feb 18, 2006 2:00 am Post subject: |
|
|
I just upgraded to the newest plug-in architecture after I upgraded from Cacti g to h.
I would use the correct "pre-patched" files rather than patch your existing stuff. You can just copy the correct version of a pre-patched file replacing your old files. (back up your old files first)
Head over to:
http://cactiusers.org
and get the latest plug-in architecture and plug-ins. |
|
| Back to top |
|
 |
cigamit Developer
Joined: 07 Apr 2005 Posts: 946 Location: B/CS Texas
|
Posted: Sat Feb 18, 2006 6:13 pm Post subject: Re: problem with plugin architecture |
|
|
| Kev179 wrote: | I work currently on Cacti 0.8.6g and I wish to install plugins.
I downloaded architecture plugin and when I use the order :
patch -p1 -N --dry-run < cacti-plugin-arch.diff
to install architecture plugin, that posts me the following error :
patching file data_sources.php
patching file graphs_new.php
patching file include/config_arrays.php
patching file include/config_form.php
patching file include/config.php
Hunk #1 FAILED at 26.
Hunk #2 succeeded at 178 (offset 3 lines).
1 out of 2 hunks FAILED -- saving rejects to file include/config.php.rej
patching file include/config_settings.php |
You seem to have already modified your config.php (ex: you added the database / username / password). The patch will only work on config.php if you haven't modified it at all. Replace it with the prepatched one, and then reconfigure your config file.
| Kev179 wrote: |
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 |
Seems that this isn't your first attempt to install the Plugin Architecture, otherwise this file wouldn't exist.
| Kev179 wrote: |
patching file include/top_graph_header.php
patching file include/top_header.php
patching file lib/api_device.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.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 |
Same as above.
| Kev179 wrote: |
patching file poller.php
Hunk #1 succeeded at 35 with fuzz 1.
Hunk #2 succeeded at 231 (offset -3 lines).
You can help me, thanks |
I would recommend using a prepatched files (and also upgrading to Cacti v0.8.6h!) |
|
| Back to top |
|
 |
|