From 22cb84d3572709837bd4beb088d2584c75f9bb24 Mon Sep 17 00:00:00 2001 From: ligc Date: Tue, 21 Apr 2015 04:52:21 -0400 Subject: [PATCH] fix for bug 4478: setup syslog v8 on MN to receive syslog entries from remote hosts --- xCAT/postscripts/syslog | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT/postscripts/syslog b/xCAT/postscripts/syslog index d98339f96..bacb9ff45 100755 --- a/xCAT/postscripts/syslog +++ b/xCAT/postscripts/syslog @@ -168,6 +168,12 @@ config_rsyslog_V8() echo "# xCAT settings" >> $conf_file echo "*.debug /var/log/messages" >> $conf_file + # Need to uncomment the lines $ModLoad imudp.so and $UDPServerRun 514, + # to make the MN be able to receive syslog from remote hosts + if [ -f "$remoteconf" ]; then + sed -i 's/#\$ModLoad imudp.so/\$ModLoad imudp.so/' $remoteconf + sed -i 's/#\$UDPServerRun 514/\$UDPServerRun 514/' $remoteconf + fi else # not logging local, forward logging # backup the existing remote.conf file from the install