Plugin Archecture for Cacti 0.8.7

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Plugin Archecture for Cacti 0.8.7

Post by rony »

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

http://www.cacti.net/downloads/pia/cact ... A-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.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
dpartow
Posts: 19
Joined: Thu May 04, 2006 6:53 pm

Plugin arch not working

Post by dpartow »

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]#
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

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.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

The download has been updated an shouldn't fail like it was.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Plugin architecture updated to 1.3 : http://cactiusers.org/downloads/patches/
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests