Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cacti on pgsql in Laravel

Description

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.


Steps

I've downloaded it, and place it in my public/ directory.

Now, when I go to my http://localhost:8888/cacti/


I got

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 :(

enter image description here


Database

I've already created a cacti database on my localhost running on port 5432.

enter image description here

like image 530
code-8 Avatar asked Aug 10 '16 19:08

code-8


Video Answer


1 Answers

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

like image 176
jaysingkar Avatar answered Oct 03 '22 08:10

jaysingkar