Plugin Architecture 2.2 Beta

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

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

Plugin Architecture 2.2 Beta

Post by TheWitness »

Hi all. I have created a new Plugin Architecture (PIA) 2.2-beta that I would like a few people to try.

This version of the Plugin Architecture address two issues that are fairly significant to the Cacti community:

1) Remote plugin polling processes exit with Invalid PHP_SELF error messages. Affects boost and mactrack for sure.
2) With Superlinks, you recieve an error related to the "reset()" function.

Currently, I have removed the cross site scripting vulnerability patch as it causes the issue identified in item 1). If your site is Internet facing, I would not apply this patch.

Feeback appreciated. If on Linux/UNIX, unzip using the -a flag. Sorry, no diff.

Regards,

Larry
Attachments
cacti-plugin-arch-2.2-beta.zip
(174.74 KiB) Downloaded 1634 times
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?
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Here are some (unverified) diff's of PIA2.2 when coming from PIA2.0 or PIA2.1
Reinhard
Attachments
pia2.0_to_pia2.2.patch
PIA2.0 to PIA2.2 diff
store in cacti folder and run
patch -p1 < pia2.0_to_pia2.2.patch
(8.6 KiB) Downloaded 958 times
pia2.1_to_pia2.2.patch
PIA2.1 to PIA2.2 diff
store in cacti folder and run
patch -p1 < pia2.1_to_pia2.2.patch
(6.98 KiB) Downloaded 729 times
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Did i miss something. I just installed this under linux, and i am not seeing the Plugin-Management area.

I know i probably missed something, but i dont know where.

thanks

app
[b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.2 Beta
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.9-78.0.1.ELsmp
[b]Web Server[/b] - Apache/2.0.52 (Red Hat)
[b]PHP[/b] - 4.3.9
[b]MySQL[/b] - 4.1.22
[b]RRDTool[/b] - 1.2.23
[b]SNMP[/b] - 5.1.2
[b]Plugins[/b][list]Global Plugin Settings (settings - v0.5)
SuperLinks (superlinks - v0.72)
Host Info (hostinfo - v0.2)
Report Creator (reports - v0.3)
Update Checker (update - v0.4)
Realtime for Cacti (realtime - v0.35)
Cacti Log View (clog - v1.1)
RRD File Cleaner (rrdclean - v0.36)
Network Discovery (discovery - v0.9)
Uptime (uptime - v0.4)[/list]
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Did you source the "pa.sql" file?

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?
apperrault
Cacti User
Posts: 379
Joined: Fri Feb 16, 2007 11:37 am
Location: Emeryville, CA
Contact:

Post by apperrault »

Oh, yeah, i forgot to post back here. I had to download the original PIA2 from Cactiusers, and then i found it. It wasn't in the download here, but eventually i found it.

Thanks for the help.

app
sickofme
Posts: 5
Joined: Thu Nov 06, 2008 9:26 pm

Post by sickofme »

i'v get this error when i patch my PA from 2.1 to 2.2, use "pia2.1_to_pia2.2.patch" from Gandalf, help me please. thx.

Code: Select all

patching file include/auth.php
patching file include/global_arrays.php
patching file include/global.php
Hunk #1 succeeded at 124 (offset 2 lines).
Hunk #3 FAILED at 209.
1 out of 3 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/top_graph_header.php
patching file include/top_header.php
patching file lib/functions.php
patching file lib/plugins.php
[quote][b]Cacti Version[/b] - 0.8.7b
[b]Plugin Architecture[/b] - 2.1
[b]Poller Type[/b] - CMD.php
[b]Server Info[/b] - Linux 2.6.23.1-42.fc8
[b]Web Server[/b] - Apache/2.2.6 (Fedora)
[b]PHP[/b] - 5.2.4
[b]PHP Extensions[/b] - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, SPL, shmop, standard, Reflection, pspell, posix, iconv, hash, gmp, gettext, ftp, filter, exif, date, curl, ctype, calendar, bz2, zlib, openssl, apache2handler, dbase, json, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, zip
[b]MySQL[/b] - 5.0.45
[b]RRDTool[/b] - 1.2.99907080300
[b]SNMP[/b] - 5.4.1
[b]Plugins[/b][list]Device Monitoring (monitor - v0.8.2)
Host Info (hostinfo - v0.2)
uptime[/list][/quote]
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests