Instructions for PA 2.0?

Support for the Plugin Architecture

Moderators: Developers, Moderators

Post Reply
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

Instructions for PA 2.0?

Post by danwdoo »

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
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Please post failing SQL.
Yesterday, I added a patch to suppress my SQL errors. But patch is not yet published; time, you know
Reinhard
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

SQL errors

Post by danwdoo »

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: Select all

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: Select all

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

Post by mcutting »

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
Cacti Version 0.8.8b
Cacti OS Ubuntu LTS
RRDTool Version RRDTool 1.4.7
Poller Information
Type SPINE 0.8.8b
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

Post by danwdoo »

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: Select all

$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
saya
Cacti User
Posts: 58
Joined: Wed Jan 16, 2008 10:56 pm

Post by saya »

hi, I am curious about this. I looked through my /cacti/include/plugins.php but failed to find this line

Code: Select all

 $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
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

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

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 2 guests