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!
Syslog 1.05 in cacti 0.87g (PA 2.9) Problem
Moderators: Developers, Moderators
Syslog 1.05 in cacti 0.87g (PA 2.9) Problem
- Attachments
-
- image3.JPG (82.67 KiB) Viewed 3609 times
-
- image2.JPG (120.75 KiB) Viewed 3609 times
-
- image1.JPG (78.25 KiB) Viewed 3609 times
Re: Syslog 1.05 in cacti 0.87g (PA 2.9) Problem
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
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
Re: Syslog 1.05 in cacti 0.87g (PA 2.9) Problem
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
$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
-
- Posts: 2
- Joined: Wed Apr 11, 2012 6:12 am
Re: Syslog 1.05 in cacti 0.87g (PA 2.9) Problem
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
$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
Who is online
Users browsing this forum: No registered users and 0 guests