mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-04 13:22:36 +00:00 
			
		
		
		
	fix for bug 4478: setup syslog v8 on MN to receive syslog entries from remote hosts
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user