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 Architecture v2.1 for Cacti v0.8.7b
Goto page 1, 2  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture
Author Message
fmangeant
Cacti Guru User


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

PostPosted: Fri Mar 28, 2008 5:54 am    Post subject: Plugin Architecture v2.1 for Cacti v0.8.7b Reply with quote

Available here.

No Changelog yet.
Back to top
niobe
Cacti User


Joined: 10 Mar 2008
Posts: 122
Location: Australia

PostPosted: Sat Mar 29, 2008 7:00 pm    Post subject: Reply with quote

Any info on whether you can upgrade from 2.0 on a production system and how?
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 957

PostPosted: Wed Apr 02, 2008 4:30 am    Post subject: Reply with quote

I'll second that. Just tried it, and had to roll back...
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9470
Location: MI, USA

PostPosted: Wed Apr 02, 2008 6:02 am    Post subject: Reply with quote

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

Regards,

Larry
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 957

PostPosted: Wed Apr 02, 2008 6:26 am    Post subject: Reply with quote

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
Back to top
phalek
Cacti User


Joined: 31 Jan 2008
Posts: 137
Location: Stuttgart, Germany

PostPosted: Fri Apr 04, 2008 8:59 am    Post subject: Reply with quote

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 )
Back to top
ben_c
Cacti User


Joined: 14 May 2007
Posts: 177
Location: Melbourne, Australia.

PostPosted: Tue Apr 08, 2008 12:40 am    Post subject: Reply with quote

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.
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 957

PostPosted: Tue Apr 08, 2008 1:31 am    Post subject: Reply with quote

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).
Back to top
jofficer



Joined: 04 Feb 2008
Posts: 33

PostPosted: Tue Apr 08, 2008 9:59 am    Post subject: Reply with quote

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:
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
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9470
Location: MI, USA

PostPosted: Tue Apr 08, 2008 6:45 pm    Post subject: Reply with quote

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
Back to top
Leddy
Cacti User


Joined: 15 May 2005
Posts: 67

PostPosted: Mon Apr 14, 2008 12:23 pm    Post subject: Re: Plugin Architecture v2.1 for Cacti v0.8.7b Reply with quote

fmangeant wrote:
No Changelog yet.


Any update on the changelog?
Back to top
jofficer



Joined: 04 Feb 2008
Posts: 33

PostPosted: Mon Apr 14, 2008 12:30 pm    Post subject: Reply with quote

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?
Back to top
carpenike



Joined: 19 Jun 2006
Posts: 6

PostPosted: Tue May 06, 2008 2:26 pm    Post subject: Reply with quote

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!
Back to top
ncariaga



Joined: 27 Jun 2008
Posts: 2

PostPosted: Fri Jun 27, 2008 8:51 pm    Post subject: Reply with quote

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
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9470
Location: MI, USA

PostPosted: Fri Jun 27, 2008 8:56 pm    Post subject: Reply with quote

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]sdiff /var/www/html/cacti /pia2.1/files/cacti | more[code]

TheWitness
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture All times are GMT - 5 Hours
Goto page 1, 2  Next
Page 1 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group