Skip to content

Database Setup

Mark Brugnoli-Vinten edited this page Apr 17, 2018 · 1 revision

Configuring the database

There are two supported database configurations for using the syslog plugin. The internal database will use the main cacti configuration settings to obtain the database connection. The external database requires that all database parameters are edited and set though the database can reside on the same server as cacti's database.

Use the internal cacti database

In this setup you only need to make sure that the following is set within the syslog config.php file. Note, do not edit the cacti configuration file.

$use_cacti_db = true;

Use Syslog external database

To make use of an external database either local or remote, make sure you set $use_cacti_db to false and specify the database connection details. The default connection settings are shown below and should be edited within the syslog config.php

$use_cacti_db = false;

if (!$use_cacti_db) {
        $syslogdb_type     = 'mysql';
        $syslogdb_default  = 'syslog';
        $syslogdb_hostname = 'localhost';
        $syslogdb_username = 'cactiuser';
        $syslogdb_password = 'cactiuser';
        $syslogdb_port     = 3306;```

Again, do not edit the Cacti configuration file.