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    


Instructions for PA 2.0?

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Architecture
Author Message
danwdoo



Joined: 26 Oct 2006
Posts: 38

PostPosted: Thu Mar 13, 2008 11:41 pm    Post subject: Instructions for PA 2.0? Reply with quote

Hello,
I am just checking to see if there have been any instructions created yet for installing the new PIA 2.0? I've installed Cacti with the Windows installer script (0.8.7b) but when I try to add the PIA 2.0 I get a bunch of SQL errors in my Cacti log. I've already imported the pa.sql (though was a little unsure of the process). Is there a way to very the import was successful? I assume some people must have gotten the new PIA working by now. If it is not ready yet, should I be using one of the earlier versions still for a new install?

Thanks!
Danny
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 12206
Location: Muenster, Germany

PostPosted: Sat Mar 15, 2008 1:19 pm    Post subject: Reply with quote

Please post failing SQL.
Yesterday, I added a patch to suppress my SQL errors. But patch is not yet published; time, you know
Reinhard
Back to top
danwdoo



Joined: 26 Oct 2006
Posts: 38

PostPosted: Sun Mar 16, 2008 11:22 pm    Post subject: SQL errors Reply with quote

Here are the steps I followed:

1) Fresh install of Cacti 0.8.7b using Windows install script. Set permissions, edited config.php only for SQL settings. Verified no errors in the cacti log.

2) Copied PIA files from folder files-0.8.7b to my cacti folder and overwrote existing files and folders.

3) Verified config.php still had correct SQL account information.

4) imported PIA sql fie with the following command:
Code:
mysql -u root -p cacti <pa.sql


After entering the command and then the password, it immediately dropped back to the command prompt with no messages displayed.

5) Rebooted machine

6) Logged into Cacti and checked the log and see the following error repeated over and over in the log:

03/17/2008 11:02:43 AM - CMDPHP: Poller[0] ERROR: A DB Exec Failed!, Error:'1064', SQL:"REPLACE INTO settings (name, value) VALUES ('url_path', '\cacti\')'

There is another thing I am unsure of. In the PA install instructions I see the following listed under the configuration section:

Code:
The other reason is that we now have a new config option which must be set in order for your Cacti install to function properly. When you edit your includes/global.php you will see this option

$config['url_path'] = "/";


I do not have this entry in my global.php so I assume this instruction is outdated. Cacti worked fine without it before installing the PIA so I am guessing this is not related to the issue.

Thanks!
Danny
Back to top
mcutting
Cacti Pro User


Joined: 16 Oct 2006
Posts: 974

PostPosted: Mon Mar 17, 2008 2:25 am    Post subject: Reply with quote

Danwoo - if you search the PIA forums, you will find a fix for your particular issue. The line you refer to was removed from global.php, and placed in a new file called plugins.php

There have been numerous posts detailing a fix for the error message above.

Hope this helps.

Regds
Back to top
danwdoo



Joined: 26 Oct 2006
Posts: 38

PostPosted: Mon Mar 17, 2008 3:23 am    Post subject: Reply with quote

I managed to get the errors to go away. I commented out the noted problematic code from plugins.php but still did not have the following line in my plugins.php
Code:
$config['url_path'] = "/";

I went ahead and added it and everything is working. Should I have had to add this line or was it supposed to already be in there, as it sounds like from your post?

Just want to make sure my install is good before I try adding any plugins (making sure they are for the right PIA version, of course

Thanks!
Danny
Back to top
saya
Cacti User


Joined: 16 Jan 2008
Posts: 57

PostPosted: Tue Apr 08, 2008 2:47 am    Post subject: Reply with quote

hi, I am curious about this. I looked through my /cacti/include/plugins.php but failed to find this line
Code:
 $config['url_path'] = "/";

It's not in /include/global.php either.

I'm using pia2.0.

you guys all with it???


btw, my cacti is upgraded from old versions and working fine.

thanks
Back to top
TheWitness
Developer


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

PostPosted: Tue Apr 08, 2008 6:44 am    Post subject: Reply with quote

Look at the PIA 2.2-beta and then edit global.php and setup this.

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
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group