Syslog 1.05 in cacti 0.87g (PA 2.9) Problem

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
hnsmxjj
Posts: 11
Joined: Fri Aug 28, 2009 8:21 am

Syslog 1.05 in cacti 0.87g (PA 2.9) Problem

Post by hnsmxjj »

Hello,Every one !
I have installed syslog 1.05 in cacti 0.87g (PA 2.9),but I can't see any syslog messages in syslog tab page.
Print screen is bellow.
Who can help me?What shall I do?Thank you very much!
Attachments
image3.JPG
image3.JPG (82.67 KiB) Viewed 3610 times
image2.JPG
image2.JPG (120.75 KiB) Viewed 3610 times
image1.JPG
image1.JPG (78.25 KiB) Viewed 3610 times
User avatar
DeeL
Cacti User
Posts: 71
Joined: Thu May 14, 2009 5:12 pm
Location: Paris

Re: Syslog 1.05 in cacti 0.87g (PA 2.9) Problem

Post by DeeL »

did you use the cacti db ?
Did you install rsyslog-mysql to populate the database with syslog events?

Finally did you try this :
http://docs.cacti.net/plugin:syslog.config

Regards,

Deel
cockcut
Posts: 5
Joined: Wed Sep 09, 2009 2:00 am

Re: Syslog 1.05 in cacti 0.87g (PA 2.9) Problem

Post by cockcut »

Edit '/etc/rsyslog.conf' and add the following lines

$ModLoad imudp
$UDPServerRun 514

For example,

$ModLoad ommysql
$template cacti_syslog,"INSERT INTO syslog_incoming(facility, priority, date, time, host, message) values (%syslogfacility%, %syslogpriority%, '%timereported:::date-mysql%', '%timereported:::date-mysql%', '%HOSTNAME%', '%msg%')", SQL

$ModLoad imudp
$UDPServerRun 514


*.* >localhost,syslog,db_id,db_pass;cacti_syslog
mikayil1987
Posts: 2
Joined: Wed Apr 11, 2012 6:12 am

Re: Syslog 1.05 in cacti 0.87g (PA 2.9) Problem

Post by mikayil1987 »

Hi, I have the same problem. After reading your comments I've added:

$ModLoad ommysql
$template cacti_syslog,"INSERT INTO syslog_incoming(facility, priority, date, time, host, message) values (%syslogfacility%, %syslogpriority%, '%timereported:::date-mysql%', '%timereported:::date-mysql%', '%HOSTNAME%', '%msg%')", SQL
$ModLoad imudp
$UDPServerRun 514

*.* >localhost,syslog,cacti,cacti;cacti_syslog

But the same issue. And my syslog/config.php configuration:
$use_cacti_db = true;

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

Please give some advices
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest