Plugin Architecture v2.1 for Cacti v0.8.7b

Support for the Plugin Architecture

Moderators: Developers, Moderators

User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

There is likely a switch to show only "changed" files. Do a man on it.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
m00tpoint
Posts: 29
Joined: Mon Jul 07, 2008 11:03 pm
Location: Chicago, IL, USA

Post by m00tpoint »

Well, since I have the very same problem ... the attached .tar includes a directory diff, with subdirectories. For each file in cacti-plugin-arch/files-0.8.7b, I ran sdiff filename /usr/share/cacti/site/filename (this is the default website location for the Ubuntu package). Hoping this will help. I can play guinea pig for any patched patch files. ;-) I'm a better Cisco jockey than Linux guru, but I can follow directions well enough.

Thanks gentlemen for a great piece of OSS.

m00t
Attachments
ubuntu804diffs.tar
(310 KiB) Downloaded 718 times
MorbidDK
Posts: 11
Joined: Thu Apr 28, 2005 8:11 am

Post by MorbidDK »

Month and a half later, any updates or resolution to this Ubuntu error with global.php line 194 hunk?
Exo7
Cacti User
Posts: 136
Joined: Wed Jul 13, 2005 4:50 pm

Post by Exo7 »

I made a custom patch for plugin architecture 2.1 / Cacti 0.8.7b on a Debian Lenny system. It solves the global.php patching part on my Debian systems. It might work on Ubuntu too, but in either case you should do a dry run and backup your site/ directory.

After patching, edit the global.php file and add your own plugins (note that thold is enabled)

I only tested the patch on a couple of virtual machine, I will do more testing when I have time.
Attachments
cacti-plugin-debian-0.8.7b-PA-v2.1.zip
plugin architecture 2.1 for Debian Lenny Cacti 0.8.7b
(16.18 KiB) Downloaded 1233 times
MorbidDK
Posts: 11
Joined: Thu Apr 28, 2005 8:11 am

Post by MorbidDK »

I ended up just applying the patch using the pre-patched files manually, rather than using the diff to patch the files.
User avatar
pshankland
Cacti User
Posts: 247
Joined: Fri Dec 31, 2004 7:07 am
Location: UK

Post by pshankland »

Have just tried the .diff file on a brand new cacti installation and was getting problems when I moved away from the main page. Restored my directory and then used the pre-patched files and this worked fine - maybe a problem with the .diff?
ceyounger
Posts: 44
Joined: Fri Feb 10, 2006 2:59 pm
Location: Orange County, CA
Contact:

Post by ceyounger »

This blew up my Cacti install as well. Had to roll back.

The diff went nuts:

Code: Select all

patching file auth_changepassword.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file auth_changepassword.php.rej
patching file auth_login.php
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file auth_login.php.rej
patching file data_sources.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file data_sources.php.rej
patching file graph_image.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file graph_image.php.rej
patching file graph.php
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file graph.php.rej
patching file graphs_new.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file graphs_new.php.rej
patching file graphs.php
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file graphs.php.rej
patching file host.php
Reversed (or previously applied) patch detected!  Skipping patch.
5 out of 5 hunks ignored -- saving rejects to file host.php.rej
patching file include/auth.php
Reversed (or previously applied) patch detected!  Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file include/auth.php.rej
patching file include/global_arrays.php
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/global_arrays.php.rej
patching file include/global_form.php
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file include/global_form.php.rej
patching file include/global.php
Hunk #1 succeeded at 65 with fuzz 2 (offset 24 lines).
Hunk #2 FAILED at 113.
Hunk #3 FAILED at 218.
Hunk #4 FAILED at 244.
3 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file include/global_settings.php.rej
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
Reversed (or previously applied) patch detected!  Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file include/top_graph_header.php.rej
patching file include/top_header.php
Reversed (or previously applied) patch detected!  Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file include/top_header.php.rej
patching file index.php
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file index.php.rej
patching file lib/api_device.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/api_device.php.rej
patching file lib/functions.php
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/functions.php.rej
patching file lib/html_form.php
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/html_form.php.rej
patching file lib/html.php
Reversed (or previously applied) patch detected!  Skipping patch.
8 out of 8 hunks ignored -- saving rejects to file lib/html.php.rej
patching file lib/html_tree.php
Reversed (or previously applied) patch detected!  Skipping patch.
3 out of 3 hunks ignored -- saving rejects to file lib/html_tree.php.rej
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
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/poller.php.rej
patching file lib/rrd.php
Hunk #1 succeeded at 1246 (offset 762 lines).
Hunk #2 FAILED at 1952.
Hunk #3 FAILED at 1967.
2 out of 3 hunks FAILED -- saving rejects to file lib/rrd.php.rej
patching file lib/variables.php
Reversed (or previously applied) patch detected!  Skipping patch.
1 out of 1 hunk ignored -- saving rejects to file lib/variables.php.rej
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
Reversed (or previously applied) patch detected!  Skipping patch.
4 out of 4 hunks ignored -- saving rejects to file poller.php.rej
patching file user_admin.php
Reversed (or previously applied) patch detected!  Skipping patch.
6 out of 6 hunks ignored -- saving rejects to file user_admin.php.rej
patching file utilities.php
Reversed (or previously applied) patch detected!  Skipping patch.
2 out of 2 hunks ignored -- saving rejects to file utilities.php.rej
So much for easy on this one. :)
incudie
Posts: 21
Joined: Thu Mar 06, 2008 12:03 pm

Post by incudie »

Damn I've had the same problem using the stock PIA 2.1 Diff file on Ubuntu 8.04 Server.

The Cacti install is 0.8.7b from the Ubuntu repository.
ceyounger
Posts: 44
Joined: Fri Feb 10, 2006 2:59 pm
Location: Orange County, CA
Contact:

Post by ceyounger »

incudie wrote:Damn I've had the same problem using the stock PIA 2.1 Diff file on Ubuntu 8.04 Server.

The Cacti install is 0.8.7b from the Ubuntu repository.
Well, I found another post about upgrading from PIA 2.0 to 2.1 by just seeing which files are changing and just copying them over. This worked well for me and is a better option since I have modified cacti core files.

I'll update this reply when I find that post.
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

Ubuntu 8.04 and PIA now work well. BUT!!
Spine does not work with these couple..
Any idea about that?
chet
Posts: 41
Joined: Mon Feb 09, 2009 12:49 pm

Post by chet »

Just jumping on the back of this if you don't mind.

I'm looking for the files that replace version 0.8.7b, I have ran XXXXXX which went OK so I just need to replace the files now

I looked in http://www.cacti.net/downloads/patches/0.8.6b/ but that did not give me the files that go in to the includes and lib directory.

Hope you can help

Thanks

Chet
chet
Posts: 41
Joined: Mon Feb 09, 2009 12:49 pm

Re: Plugin Architecture v2.1 for Cacti v0.8.7b

Post by chet »

fmangeant wrote:Available here.

No Changelog yet.
Dead Link!!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests