I'm currently migrating the old cacti 0.8.8 environment to a new server on ubuntu 18.04.
I use the syslog plugin from github on version 2.1
Cacti version is 1.1.38
rsyslogd version is 8.32.0
I'm running into problems starting rsyslogd. The errormessage is
Code: Select all
error during parsing file /etc/rsyslog.d/cacti.conf, on or before line 15: errors occured in file '/etc/rsyslog.d/cacti.conf' around line 15 [v8.32.0 try http://www.rsyslog.com/e/2207 ]
The mentioned line in the config file is the last one of this snippet, i merely omitted some comments and newlines
contents of /etc/rsyslog.d/cacti.conf
Code: Select all
$ModLoad imudp
$UDPServerRun 514
$ModLoad ommysql
$template cacti_syslog,"INSERT INTO syslog_incoming(facility_id, priority_id, program,date, time, host, message) \
values (%syslogfacility%, %syslogpriority%, '%programname%', '%timereported:::date-mysql%', '%timereported:::date-mysql%', '%HOSTNAME%', TRIM('%msg%'))", SQL
# all > server, table, user, password; template
*.*>localhost,syslog,cacti,password;cacti_syslog
contents of config.php
Code: Select all
$syslogdb_type = 'mysql';
$syslogdb_default = 'syslog';
$syslogdb_hostname = 'localhost';
$syslogdb_username = 'cacti';
$syslogdb_password = 'password';
$syslogdb_port = 3306;