problem with plugin architecture

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Kev179
Posts: 1
Joined: Thu Feb 09, 2006 7:35 am

problem with plugin architecture

Post by Kev179 »

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
User avatar
N3NCY
Cacti User
Posts: 260
Joined: Thu Sep 22, 2005 7:50 pm
Location: Landenberg, PA
Contact:

Post by N3NCY »

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.
Thank you,

Ernie
http://www.NMSWorld.com
[b]Dual Zeon Dual Core 2.6Ghz / 8GB RAM / 4x15k RPM SATA RAID5[/b]
[b]Cacti Version[/b] - 0.8.7b
[b]Poller Type[/b] - cactid 0.8.7 with Boost v1.7
[b]Server Info[/b] - FreeBSD 7.0-RELEASE
[b]Web Server[/b] - Apache/2.2.6 (Unix) mod_ssl/2.2.6 OpenSSL/0.9.8g DAV/2 PHP/5.2.5 mod_perl/2.0.3 Perl/v5.8.8
[b]PHP[/b] - 5.2.6
[b]MySQL[/b] - 5.0.51b Mod: poller_output ENGINE = MEMORY
[b]RRDTool[/b] - 1.3.0
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b] - Host Info (hostinfo - v0.2), Update Checker (update - v0.3), Network Tools (tools - v0.2), FlowView (flowview - v0.3), Read-only Devices Tab (devices - v0.4), Network Discovery (discovery - v0.8.3), Syslog Monitoring (syslog - v0.5.2), Thresholds (thold - v0.3.9), Device Monitoring (monitor - v0.8.2), PHP Network Weathermap (weathermap - v0.941), SuperLinks (superlinks - v0.72), Report Creator (reports - v0.1b)
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Re: problem with plugin architecture

Post by cigamit »

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!)
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests