Plugin Architecture v2.1 for Cacti v0.8.7b
Moderators: Developers, Moderators
- 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
[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]
[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]
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
MCutting, what were the issues that you experienced, and before you ask "where the hell have you been", just don't...
Regards,
Larry
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?
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?
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
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.niobe wrote:Any info on whether you can upgrade from 2.0 on a production system and how?
Though I didn't import the pa.sql file (wonder If I should have done that hehe )
-
- Cacti Guru User
- Posts: 1884
- Joined: Mon Oct 16, 2006 5:57 am
- Location: United Kingdom
- Contact:
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).
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
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:
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?
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
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.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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
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?
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?
Re: Plugin Architecture v2.1 for Cacti v0.8.7b
Any update on the changelog?fmangeant wrote:No Changelog yet.
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.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
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?
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!
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!
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
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
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
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?
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?
Who is online
Users browsing this forum: No registered users and 0 guests