Install Probs

Support for the Plugin Architecture

Moderators: Developers, Moderators

L0cayta1
Posts: 18
Joined: Mon Oct 03, 2011 4:51 am

Install Probs

Post by L0cayta1 »

Hi All.

Getting the following:

Installing the Arch Pulggin. Running into a couple of failures on the check.

patching file include/config.php
Hunk #1 succeeded at 48 with fuzz 2 (offset 16 lines).
Hunk #2 FAILED at 84.
Hunk #3 succeeded at 89 with fuzz 2 (offset 7 lines).
Hunk #4 succeeded at 208 (offset 16 lines).
1 out of 4 hunks FAILED -- saving rejects to file include/config.php.rej


Ok ot exclude the config.php error?

One other i could do with some advice on?

patching file lib/poller.php
Hunk #1 succeeded at 234 (offset 6 lines).
Hunk #2 FAILED at 308.
1 out of 2 hunks FAILED -- saving rejects to file lib/poller.php.rej
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Install Probs

Post by TheWitness »

Use the full files....

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?
L0cayta1
Posts: 18
Joined: Mon Oct 03, 2011 4:51 am

Re: Install Probs

Post by L0cayta1 »

Ok.

Installed the full files:

/var/www/html/cacti-plugin-arch/files-0.8.6j

Apache has ful rights to this directory. Below is my config.php

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cactipia";
$database_hostname = "localhost";
$database_username = "root";
$database_password = "********";
$database_port = "3306";

$plugins = array();
//$plugins[] = 'thold';

/* Do not edit this line */
$config = array();


/*
This is full URL Path to the Cacti installation
For example, if your cacti was accessible by http://server/cacti/ you would user '/cacti/'
as the url path. For just http://server/ use '/'
*/

$config['url_path'] = "/cacti-plugin-arch/files-0.8.6j/";

I can browse to the dir in my browser but nothing showing at all?

http://servername/cacti-plugin-arch/files-0.8.6j/
L0cayta1
Posts: 18
Joined: Mon Oct 03, 2011 4:51 am

Re: Install Probs

Post by L0cayta1 »

I should mention.

I have setup a new instance of this as to not effect my live cacti. So i did a dump of the current cacti mysql database and attempted the import to a newly created db.

mysqldump -uroot -******** cactipia < cactipia.sql
-- MySQL dump 10.9
--
-- Host: localhost Database: cactipia
-- ------------------------------------------------------
-- Server version 4.1.20

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

Doesn't look like the import is working as there are no tables in my new db after it has run.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Install Probs

Post by TheWitness »

Sorry, my bad. You are not running the correct 'import' routine:

mysql cacti < pa.sql

is correct.

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?
L0cayta1
Posts: 18
Joined: Mon Oct 03, 2011 4:51 am

Re: Install Probs

Post by L0cayta1 »

The import ran ok. Tables are there now.

So i'm importing a dump of the original database renamed to cactipia.

mysql -uroot -p cactipia < pa.sql

Restarted apache, mysql and attempted to browse: Nothing coming up. Blank screen. I've checked my config.php and the username and db credentials are correct:

http://server/cacti-plugin-arch/files-0.8.6j/

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cactipia";
$database_hostname = "localhost";
$database_username = "root";
$database_password = "********";
$database_port = "3306";

$plugins = array();
//$plugins[] = 'thold';

/* Do not edit this line */
$config = array();


/*
This is full URL Path to the Cacti installation
For example, if your cacti was accessible by http://server/cacti/ you would user '/cacti/'
as the url path. For just http://server/ use '/'
*/

$config['url_path'] = '/cacti-plugin-arch/files-0.8.6j/';
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Install Probs

Post by TheWitness »

Apache Error Log.
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?
L0cayta1
Posts: 18
Joined: Mon Oct 03, 2011 4:51 am

Re: Install Probs

Post by L0cayta1 »

Poor show, should have leapt in there.

Showing fatar error on db connection:

PHP Fatal error: Call to undefined function: db_connect_real() in /var/www/html/cacti-plugin-arch/files-0.8.6j/include/config.php on line 181

Line 181
/* connect to the database server */
db_connect_real($database_hostname, $database_username, $database_password, $database_default, $database_type, $database_port);

mysql username and assword are correct.
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Install Probs

Post by TheWitness »

Your PHP Apache configuration does not include the mysql/mysqli modules. You need to insure that they are enabled moving forward. You can place this file in your webroot, and then access it to find which modules are installed for apache:

Code: Select all

<?php print php_info();?>
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?
L0cayta1
Posts: 18
Joined: Mon Oct 03, 2011 4:51 am

Re: Install Probs

Post by L0cayta1 »

Will do and reply.

Having a look at the install notes. I have created a second instance of my cacti using the new files and a copy of my cacti db.

To do so i had to export and impoirt my current cacti db. I had errors that i showed earlier doing so and could only get it to import by renaming it to pa.sql.

mysql -uroot -p < pa.sql

Regarding the pa.sql file. I did not have this in my PIA v1.1 download?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Install Probs

Post by TheWitness »

PIA 1.1 is way too old. You should be able to re-import the 3.0 pa.sql file I think though. You may have to work through a few errors, but I doubt it.

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?
L0cayta1
Posts: 18
Joined: Mon Oct 03, 2011 4:51 am

Re: Install Probs

Post by L0cayta1 »

I'm running Cacti v0.8.6j. Will the latest version of PIA work with this and is the pa.sql file included?
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Install Probs

Post by TheWitness »

I don't think so. You should be able to find the old PIA pa.sql on the forum somewhere.

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?
L0cayta1
Posts: 18
Joined: Mon Oct 03, 2011 4:51 am

Re: Install Probs

Post by L0cayta1 »

So i've downloaded the latest files. Re-created my original database under a new name:

mysql -uroot -p cactipia < originaldb.sql

imported pq.sql

mysql -uroot -p cactipia < pa.sql

Renamed config.php.dist to config.php

Edited config.php to hold new database and url path:

/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cactipia
$database_hostname = "localhost";
$database_username = "root";
$database_password = "********";
$database_port = "3306";

/* load up old style plugins here */
$plugins = array();
//$plugins[] = 'thold';

/*
Edit this to point to the default URL of your Cacti install
ex: if your cacti install as at http://serverip/cacti/ this
would be set to /cacti/
*/
$url_path = "/cacti-plugin-arch/files-0.8.7g/";

tailing the logs i am receiving the following error in apache:

PHP Parse error: parse error, unexpected T_STRING in /var/www/html/cacti-plugin-arch/files-0.8.7g/include/config.php on line 28
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Re: Install Probs

Post by TheWitness »

I'm sure you found the error in your ways by now...
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