Adding steps to reduce RNGD syslog entries (starting with Raspian buser

This commit is contained in:
2019-12-16 13:39:54 +01:00
parent 4dd128d00f
commit d5274f159e
2 changed files with 16 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ toolConfig="/etc/rsyslog.conf"
WDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >>/dev/null 2>&1 && pwd )"
CONFIG_SNMP="$WDIR/${toolName}/10-snmp.conf"
CONFIG_CRON="$WDIR/${toolName}/10-cron.conf"
CONFIG_RNGD="$WDIR/${toolName}/10-rngd.conf"
CONFIG_REMOTE="$WDIR/${toolName}/90-remote.conf"
step_1_info() { echo "Install $toolName"; }
@@ -51,9 +52,20 @@ step_12() {
}
CONFIG_CRON_DEST="/etc/rsyslog.d/$(basename $CONFIG_CRON)"
step_14_info() { echo "Send syslog messages to remote syslog server <REMOTE_IP:PORT>"; }
step_14_alias() { ALIAS="remote"; }
step_14_info() { echo "Reduce rngd syslog messages"; }
step_14_alias() { ALIAS="rngd"; }
step_14() {
addConf -s -f "$CONFIG_RNGD" "$CONFIG_RNGD_DEST"
endReturn -o $?
step checkconf
exe service rsyslog restart
}
CONFIG_RNGD_DEST="/etc/rsyslog.d/$(basename $CONFIG_RNGD)"
step_16_info() { echo "Send syslog messages to remote syslog server <REMOTE_IP:PORT>"; }
step_16_alias() { ALIAS="remote"; }
step_16() {
local rex='^[0-9\.]+\:[0-9]+$'
local remoteHost=""
# Check if string is a ipv4 address and port
@@ -74,4 +86,4 @@ step_14() {
CONFIG_REMOTE_DEST="/etc/rsyslog.d/$(basename $CONFIG_REMOTE)"
VERSION_SEQREV=8
. sequencer.sh
. /usr/local/bin/sequencer.sh

View File

@@ -0,0 +1 @@
if $programname == 'rngd' and re_match($msg, "^stats:.*") then stop