Cacti 1.1.9 + syslog 1.21 from remote rsyslog .log file

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
itkroplis
Posts: 20
Joined: Sun Jun 04, 2017 6:25 am

Cacti 1.1.9 + syslog 1.21 from remote rsyslog .log file

Post by itkroplis »

Hi!

I use cacti 1.1.9 (Debian7) + syslog plugin(syslog-ng). And collects different .log files from same linux(debian) servers by rsyslog.

-------------------------
$ModLoad imfile #Load the imfile input module
$InputFilePollInterval 10
$InputFileName \usr\local\apache-tomcat-7.0.64-kre-be\logs\catalina.out.log
$InputFileTag tomcat7-catalina:
$InputFileStateFile stat-tomcat7-catalina
$InputFileSeverity Info
$InputRunFileMonitor

$template cas_log, " %msg% "

if $programname == 'tomcat7-catalina' then @10.10.10.7:514;cas_log
if $programname == 'tomcat7-catalina' then stop
--------------------------
This work well. But!
In cacti syslog webpage, column "Program" is containing not valid text. How is possible configured rsyslog for my.log file options, so that program cell is for example "tomcat7out".
In order to filter the different log files, from one server.
Attachments
syslog.program.png
syslog.program.png (68.98 KiB) Viewed 808 times
itkroplis
Posts: 20
Joined: Sun Jun 04, 2017 6:25 am

Re: Cacti 1.1.9 + syslog 1.21 from remote rsyslog .log file

Post by itkroplis »

I find resolving for my:
Elementary change:
$template cas_log, " %msg% "
to:
$template cas_log, " MyNameLog %msg% "
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest