Cacti graph doesn't populate after installing syslog plugin

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
cenizarohar2
Posts: 2
Joined: Mon Mar 03, 2014 11:19 pm

Cacti graph doesn't populate after installing syslog plugin

Post by cenizarohar2 »

Hi, I am new to cacti so please understand me. I tried to install the plugin syslog into my Cacti 0.8.8b by following the instructions given to this post by luisma75111 (http://forums.cacti.net/viewtopic.php?f=14&t=48283).

Here is my config.php on the syslog plugin:


<?php


global $config, $database_type, $database_default, $database_hostname;
global $database_username, $database_password, $database_port;

/* revert if you dont use the Cacti database */
$use_cacti_db = false;

if (!$use_cacti_db) {
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = '******';
$syslogdb_password = '******';
$syslogdb_port = 3306;
}else{
$syslogdb_type = $database_type;
$syslogdb_default = $database_default;
$syslogdb_hostname = $database_hostname;
$syslogdb_username = $database_username;
$syslogdb_password = $database_password;
$syslogdb_port = $database_port;
}

/* field in the incomming table */
$syslog_incoming_config['dateField'] = 'date';
$syslog_incoming_config['timeField'] = 'time';
$syslog_incoming_config['priorityField'] = 'priority';
$syslog_incoming_config['facilityField'] = 'facility';
$syslog_incoming_config['hostField'] = 'host';
$syslog_incoming_config['textField'] = 'message';
$syslog_incoming_config['id'] = 'seq';

?>

Now, whenever I turn "$use_cacti_db = false;" to true, I can connect to cacti but my graphs doesn't populate and if I turn it to false cacti gives me an error displaying "Can not connect to cacti" . I didn't edit anything on the config.php file of cacti. What seems to be the problem here?
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests