Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Plugin Architecture v2.1 for Cacti v0.8.7b
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture
Author Message
TheWitness
Developer


Joined: 14 May 2002
Posts: 9697
Location: MI, USA

PostPosted: Fri Jun 27, 2008 8:57 pm    Post subject: Reply with quote

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

TheWitness
Back to top
m00tpoint



Joined: 07 Jul 2008
Posts: 8

PostPosted: Mon Jul 07, 2008 11:22 pm    Post subject: Reply with quote

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



ubuntu804diffs.tar
 Description:

Download
 Filename:  ubuntu804diffs.tar
 Filesize:  310 KB
 Downloaded:  102 Time(s)

Back to top
MorbidDK



Joined: 28 Apr 2005
Posts: 11

PostPosted: Tue Aug 19, 2008 12:22 am    Post subject: Reply with quote

Month and a half later, any updates or resolution to this Ubuntu error with global.php line 194 hunk?
Back to top
Exo7
Cacti User


Joined: 13 Jul 2005
Posts: 124

PostPosted: Tue Aug 19, 2008 7:11 am    Post subject: Reply with quote

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.



cacti-plugin-debian-0.8.7b-PA-v2.1.zip
 Description:
plugin architecture 2.1 for Debian Lenny Cacti 0.8.7b

Download
 Filename:  cacti-plugin-debian-0.8.7b-PA-v2.1.zip
 Filesize:  16.18 KB
 Downloaded:  139 Time(s)

Back to top
MorbidDK



Joined: 28 Apr 2005
Posts: 11

PostPosted: Tue Aug 19, 2008 12:03 pm    Post subject: Reply with quote

I ended up just applying the patch using the pre-patched files manually, rather than using the diff to patch the files.
Back to top
pshankland
Cacti User


Joined: 31 Dec 2004
Posts: 225
Location: UK

PostPosted: Sun Sep 28, 2008 1:45 pm    Post subject: Reply with quote

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?
Back to top
ceyounger



Joined: 10 Feb 2006
Posts: 35
Location: San Jose, CA USA

PostPosted: Fri Oct 10, 2008 12:47 pm    Post subject: Reply with quote

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

The diff went nuts:

Code:

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.
Back to top
incudie



Joined: 06 Mar 2008
Posts: 21

PostPosted: Tue Oct 21, 2008 5:07 pm    Post subject: Reply with quote

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.
Back to top
ceyounger



Joined: 10 Feb 2006
Posts: 35
Location: San Jose, CA USA

PostPosted: Thu Oct 23, 2008 2:55 am    Post subject: Reply with quote

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.
Back to top
TFC
Cacti Pro User


Joined: 09 Apr 2003
Posts: 612
Location: Izmir/Turkey

PostPosted: Wed Nov 05, 2008 3:52 am    Post subject: Reply with quote

Ubuntu 8.04 and PIA now work well. BUT!!
Spine does not work with these couple..
Any idea about that?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group