Plugin Architecture v2.1 for Cacti v0.8.7b
Moderators: Developers, Moderators
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
There is likely a switch to show only "changed" files. Do a man on it.
TheWitness
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?
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?
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
Thanks gentlemen for a great piece of OSS.
m00t
- Attachments
-
- ubuntu804diffs.tar
- (310 KiB) Downloaded 718 times
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.
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
- pshankland
- Cacti User
- Posts: 247
- Joined: Fri Dec 31, 2004 7:07 am
- Location: UK
This blew up my Cacti install as well. Had to roll back.
The diff went nuts:
So much for easy on this one.
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
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.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.
I'll update this reply when I find that post.
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
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
Re: Plugin Architecture v2.1 for Cacti v0.8.7b
Dead Link!!
Who is online
Users browsing this forum: No registered users and 0 guests