I wanted to add a Monitor plugin, so I downloaded PIA, followed the instructions and got to the point where I needed to replace all the files Using the Pre-Patched Files from the download of PIA to the install directory of my cacti /usr/share/cacti.
The tutorial on the wiki suggested an FTP program to move the files over, so I did (in the process had to change all the permissions of files to 777 so I could overwrite in the FTP program so I did. After this it said I had to Edit “include/config.php” with the database information.
Now I am confused, because when I installed cacti I let it use the default information and I am pretty sure config.php wasn't overwritten so it should be the same. I did add this part to my existing file though..
Code: Select all
/* 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/";
Code: Select all
mysql cacti < pa.sql -u root -p
I also made changes to global.php as mentioned in the thread I linked earlier. Now when trying to load cacti I get - FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
Now I am stumped, because I did make all the changes to config.php like the wiki said, and made the changes to global.php like that thread said
For ref these are the changes
Code: Select all
Take care of the configuration part (include/global.php), there is some additional changes needed under Ubuntu, make them correct for your configuration, here is mine:
Quote:
$config["rra_path"] = $config["base_path"]."/rra";
change it to:
$config["rra_path"] = "/var/lib/cacti/rra";
include($config["library_path"]."/adodb/adodb.inc.php");
change it to:
include("/usr/share/php/adodb/adodb.inc.php");
//I couldn't find this line with these symbols but I assumed it meant "/" to "/cacti/"
$config[’url_path’] = ‘/’;
to:
$config[’url_path’] = ‘/cacti/’;