Hi all,
When i try to install the syslog plugin in cacti the web page says 'Can not connect'.
really hope someone can help me out or point me in the right direction, casue ive been stuck at this for about a week now
I'm using the following;
Ubuntu Server 15.04
Cacti v0.8.8b
Syslog plugin v1.22
So far here is what ive done :
1. created a database called syslog in mysql.
2. imported the syslog.sql tables into my newly created database.
3. changed my /usr/share/cacti/site/plugins/syslog/config.php to
/* 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 = 'cacti';
$syslogdb_password = 'letmein';
$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 */
4. my rsyslog.conf file is as follows;
# /etc/rsyslog.conf Configuration file for rsyslog.
#
# For more information see
# /usr/share/doc/rsyslog-doc/html/rsyslog_conf.html
#
# Default logging rules can be found in /etc/rsyslog.d/50-default.conf
$ModLoad ommysql
$template cacti_syslog,"INSERT INTO syslog_incoming(facility, priority, date, time, host, message) values (%syslogfacility%, %syslogpriority%, '%timereported:::date-mysql%', '$
*.* >localhost,syslog,cacti,letmein;cacti_syslog
#################
#### MODULES ####
#################
$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog # provides kernel logging support
$ModLoad immark # provides --MARK-- message capability
# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514
# provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514
# Enable non-kernel facility klog messages
$KLogPermitNonKernelFacility on
###########################
#### GLOBAL DIRECTIVES ####
###########################
#
# Use traditional timestamp format.
# To enable high precision timestamps, comment out the following line.
#
$ActionFileDefaultTemplate RSYSLOG_TraditionalFileFormat
# Filter duplicated messages
$RepeatedMsgReduction on
#
# Set the default permissions for all log files.
#
$FileOwner syslog
$FileGroup adm
$FileCreateMode 0640
$DirCreateMode 0755
$Umask 0022
$PrivDropToUser syslog
$PrivDropToGroup syslog
#
# Where to place spool and state files
#
$WorkDirectory /var/spool/rsyslog
#
# Include all config files in /etc/rsyslog.d/
#
$IncludeConfig /etc/rsyslog.d/*.conf
5. my /usr/share/cacti/site/include/config.php
/* make sure these values refect your actual database/host/user/password */
$database_type = "mysql";
$database_default = "cacti";
$database_hostname = "localhost";
$database_username = "cacti";
$database_password = "letmein";
$database_port = "";
$database_ssl = false;
/*
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/
Debian addition:
If used together with a http deamon, it should be configured
consistently. Using an empty path makes all links relative.
*/
//$url_path = "/cacti/";
/* Default session name - Session name must contain alpha characters */
//$cacti_session_name = "Cacti";
?>
hope someone can help me.
Thanks,
Kevin
Cacti Syslog Plugin installation & configuration
Moderators: Developers, Moderators
-
- Posts: 5
- Joined: Mon Jul 04, 2016 9:14 am
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Cacti Syslog Plugin installation & configuration
did you also execute the GRANT statement to allow the cacti user to connect to your newly created syslog database ?
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
-
- Posts: 5
- Joined: Mon Jul 04, 2016 9:14 am
Re: Cacti Syslog Plugin installation & configuration
Hi Phalek,
No, how would i do that?
pls give me exact steps cause im still learning my way around ubuntu.
thanks,
Kevin
ran the following ;
grant all on syslog.* to cacti@localhost identified by 'letmein';
flush privileges;
quit;
No, how would i do that?
pls give me exact steps cause im still learning my way around ubuntu.
thanks,
Kevin
ran the following ;
grant all on syslog.* to cacti@localhost identified by 'letmein';
flush privileges;
quit;
Who is online
Users browsing this forum: No registered users and 0 guests