I have a laravel app, that I am trying to integrate that with Cacti : is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality.
I've downloaded it, and place it in my public/
directory.
Now, when I go to my http://localhost:8888/cacti/
First Try
FATAL: Cannot connect to MySQL server on 'localhost'. Please make sure you have specified a valid MySQL database name in 'include/config.php'
Then, I opened up 'include/config.php'. Since my goal is to try to connect it to pgsql
instead of mysql
, so I here is my current settings
$database_type = "pgsql";
$database_default = 'cacti';
$database_hostname = 'localhost';
$database_username = 'postgres';
$database_password = '';
$database_port = '5432';
$database_ssl = false;
As soon as I hit saved, and refresh the page http://localhost:8888/cacti/
Second Try
Now, I got : The localhost page isn’t working
:(
I've already created a cacti
database on my localhost running on port 5432
.
As given in this site, cacti is designed to work with only MySQL.
Cacti is written in PHP and supports MySQL only for storing the RRDTool data.
Though, there is this link to setup the cacti with pgsql
.
PostgreSQL Host Template
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With