Plugin Architecture v2.1 for Cacti v0.8.7b

Support for the Plugin Architecture

Moderators: Developers, Moderators

User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Plugin Architecture v2.1 for Cacti v0.8.7b

Post by fmangeant »

Available here.

No Changelog yet.
[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]
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

Any info on whether you can upgrade from 2.0 on a production system and how?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

I'll second that. Just tried it, and had to roll back...
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

MCutting, what were the issues that you experienced, and before you ask "where the hell have you been", just don't... ;)

Regards,

Larry
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?
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

I won't ask ! :D

I'll need to re-run this in test again, as I lost my screenshot I took !! (my bad) - will revert back asap.

Regds
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

niobe wrote:Any info on whether you can upgrade from 2.0 on a production system and how?
Hm, i used the already patched files that are contained within the archive to replace the ones in my PA 2.0 patched 0.8.7b cacti version. As far as I can see that worked.

Though I didn't import the pa.sql file (wonder If I should have done that hehe :roll: )
ben_c
Cacti User
Posts: 203
Joined: Mon May 14, 2007 8:12 pm
Location: Melbourne, Australia.

Post by ben_c »

Thanks guys!

Might be handy to add to the documentation how you import the sql tables into an existing db for newbs like myself.

I did it via mysql -u cactiuser -p cacti < pa.sql

Then logged into mysql : use cacti; and did a show tables; to make sure the import was successful.
mcutting
Cacti Guru User
Posts: 1884
Joined: Mon Oct 16, 2006 5:57 am
Location: United Kingdom
Contact:

Post by mcutting »

I got this to work in the end as well. Now running PIA 2.2 (Beta). The issue was that Cacti complained about an error in line 33 of plugins.php (don't have this to hand, as currently in transit - sorry).

To resolve this issue, I commented the line out. This allowed me to login to Cacti. I then set the URL path to "/cacti/" then saved the file.

Things returned to normal after this, so I went back to plugins.php, and uncommented line 33 again, and saved.

This had the desired effect.

Hope this helps someone else (I am running Windows).
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
jofficer
Posts: 35
Joined: Mon Feb 04, 2008 9:16 am

Post by jofficer »

Failed install...

Followed the directions from here:

http://cactiusers.org/forums/viewtopic.php?t=1432

but basically, extracted the archive, and copied the pre-patched files into my production directory. Modified the global.php file to include the correct path to the cacti URL. Fired up Firefox and received the following:

Code: Select all

Warning: include(/usr/share/webapps/cacti/0.8.7b/htdocs/lib/adodb/adodb.inc.php) [function.include]: failed to open stream: No such file or directory in /usr/share/webapps/cacti/0.8.7b/htdocs/include/global.php on line 201

Warning: include() [function.include]: Failed opening '/usr/share/webapps/cacti/0.8.7b/htdocs/lib/adodb/adodb.inc.php' for inclusion (include_path='.:/usr/share/php5:/usr/share/php') in /usr/share/webapps/cacti/0.8.7b/htdocs/include/global.php on line 201

Fatal error: Call to undefined function NewADOConnection() in /usr/share/webapps/cacti/0.8.7b/htdocs/lib/database.php on line 38
Checked for <cactidir>/htdocs/lib/adodb/* ... no files.

Now, I'm no PHP whiz and defining myself as a newb would be an understatement. But it seems I'm missing some files.

Cacti .0.8.7b
PIA 2.1

Any thoughts?
Last edited by jofficer on Mon Apr 14, 2008 12:28 pm, edited 1 time in total.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Looks like an RPM install that has moved the ADODB. You should reinstall Cacti and then apply the PIA. You might consider pinging the package maintainer and ask for a PIA patch.

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?
Leddy
Cacti User
Posts: 93
Joined: Sun May 15, 2005 6:55 pm

Re: Plugin Architecture v2.1 for Cacti v0.8.7b

Post by Leddy »

fmangeant wrote:No Changelog yet.
Any update on the changelog?
jofficer
Posts: 35
Joined: Mon Feb 04, 2008 9:16 am

Post by jofficer »

TheWitness wrote:Looks like an RPM install that has moved the ADODB. You should reinstall Cacti and then apply the PIA. You might consider pinging the package maintainer and ask for a PIA patch.

TheWitness
I should clarify a bit. I'm using Gentoo, so no RPMs are to blame, although admittedly it's still loosely based on a package system.

As for re-installing Cacti ... unless I'm missing something obvious, that is far from a reasonable request. Wouldn't I lose everything I've created in Cacti as it sits?
carpenike
Posts: 6
Joined: Mon Jun 19, 2006 8:05 am

Post by carpenike »

jofficer:

I had the same problem... If you've got slocate installed run the following:

updatedb
locate adodb.inc.php

It found mine at:

/usr/share/php5/adodb

I than created a symlink by running the following:

# ln -s /usr/share/php5/adodb /var/www/<SITENAME>/htdocs/lib/adodb

Fixed it for me.

Thanks for the updated!
ncariaga
Posts: 7
Joined: Fri Jun 27, 2008 8:38 pm
Contact:

Post by ncariaga »

Guys, I need your help. I am having problems installing it on a ubuntu 8.04 system. below is the error that occured:

dev@hardy:/usr/share/cacti/site$ patch -p1 -N --dry-run < /home/dev/cacti-plugin-arch/cacti-plugin-0.8.7b-PA-v2.1.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
Hunk #3 FAILED at 194.
1 out of 4 hunks FAILED -- saving rejects to file include/global.php.rej
patching file include/global_settings.php
Hunk #1 succeeded at 1084 (offset 1 line).
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/plugins.php
patching file lib/poller.php
patching file lib/rrd.php
patching file lib/variables.php
patching file plugins/index.php
patching file plugins.php
patching file poller.php
patching file user_admin.php
patching file utilities.php
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I would rather you perform an sdiff of the full files against what you have done (aka your patched environment) and post the differences.

Code: Select all

sdiff /var/www/html/cacti /pia2.1/files/cacti | more[code]

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?
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests