Syslog: Duplicate Message

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
tippyp
Posts: 5
Joined: Mon Sep 15, 2014 10:50 am

Syslog: Duplicate Message

Post by tippyp »

Hi All,

Wondering if anyone is experiencing this issue with syslog displaying duplicate messages.

Ex.
2015-02-24 14:31:00 high RX Power alarm, port 2/2/3 1 2
2015-02-24 14:31:00 high RX Power warning, port 2/2/3 1 0
2015-02-24 14:31:00 high RX Power warning, port 2/2/3 1 0
2015-02-24 14:31:00 high RX Power alarm, port 2/2/3 1 2
2015-02-24 14:31:00 No license present for port 1/2/4 1 6
2015-02-24 14:31:00 No license present for port 1/2/2 1 6
2015-02-24 14:31:00 No license present for port 1/2/4 1 6
2015-02-24 14:31:00 No license present for port 1/2/2 1 6
2015-02-24 14:31:00 No license present for port 1/2/4 1 6
2015-02-24 14:31:00 No license present for port 1/2/4 1 6
2015-02-24 14:31:00 No license present for port 1/2/2 1 6
2015-02-24 14:31:00 No license present for port 1/2/2 1 6


Example of my /etc/rsyslog.conf
#################
#### MODULES ####
#################

$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

*.* >localhost,syslog,syslog,S@day;cacti_syslog

$ModLoad imuxsock # provides support for local system logging
$ModLoad imklog # provides kernel logging support (previously done by rklogd)
$ModLoad immark # provides --MARK-- message capability

# provides UDP syslog reception
$ModLoad imudp
$UDPServerRun 514

# provides TCP syslog reception
$ModLoad imtcp
$InputTCPServerRun 514


###########################
#### 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

Cacti Version 0.8.8c
OS is Debian 3.2.65-1 x86_64
Syslog Version 1.22-2
MySQL V5.5
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests