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 Archecture for Cacti 0.8.7

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5676
Location: Michigan, USA

PostPosted: Wed Oct 24, 2007 9:03 am    Post subject: Plugin Archecture for Cacti 0.8.7 Reply with quote

To download the latest PIA for Cacti 0.8.7 use the following URL:

http://www.cacti.net/downloads/pia/cacti-plugin-0.8.7-PA-v1.2.zip

Also, it MUST be noted that the changes to the config files in Cacti will break almost all plugins. Plugin developers will need to make some minor changes to allow their plugins to work with Cacti 0.8.7.


Last edited by rony on Thu Oct 16, 2008 7:41 pm; edited 2 times in total
Back to top
dpartow



Joined: 04 May 2006
Posts: 19

PostPosted: Wed Oct 24, 2007 4:54 pm    Post subject: Plugin arch not working Reply with quote

This is the error I get.

[root@ops-cacti01 cacti]# patch -p1 -N < cacti-plugin-0.8.7-PA-v1.2.diff
patching file auth_changepassword.php
patching file auth_login.php
patching file data_sources.php
patching file graph_image.php
patching file graph.php
patching file graphs_new.php
patching file graphs.php
patching file host.php
patching file include/auth.php
patching file include/global_arrays.php
patching file include/global_form.php
patching file include/global.php
patching file include/global_settings.php
patching file include/plugins.php
patching file include/top_graph_header.php
patching file include/top_header.php
patching file index.php
patching file lib/api_device.php
patching file lib/functions.php
patching file lib/html_form.php
patching file lib/html.php
patching file lib/html_tree.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file poller.php
Hunk #3 FAILED at 391.
1 out of 3 hunks FAILED -- saving rejects to file poller.php.rej
patching file user_admin.php
patching file utilities.php
[root@ops-cacti01 cacti]#
Back to top
cigamit
Developer


Joined: 07 Apr 2005
Posts: 1158
Location: B/CS Texas

PostPosted: Thu Oct 25, 2007 12:11 am    Post subject: Reply with quote

The released plugin architecture was built upon the latest SVN of Cacti. It seems the release build process has added a line break after the ?> in poller.php which breaks the patch. I have updated the package on my site to fix the patch, but the easiest fix for you is to use the files-0.8.7/poller.php already included in the archive and override yours.

Also, I have just released updated versions of my plugins to fix their compatibility with 0.8.7.
Back to top
rony
Developer/Forum Admin


Joined: 17 Nov 2003
Posts: 5676
Location: Michigan, USA

PostPosted: Thu Oct 25, 2007 9:03 am    Post subject: Reply with quote

The download has been updated an shouldn't fail like it was.
Back to top
fmangeant
Cacti Guru User


Joined: 19 Sep 2003
Posts: 2326
Location: Sophia-Antipolis, France

PostPosted: Tue Oct 30, 2007 2:34 am    Post subject: Reply with quote

Plugin architecture updated to 1.3 : http://cactiusers.org/downloads/patches/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group