> First of all, I wonder where the screenlog.0 line comes from. I guess it is
> injected in the mknb stage, but I don't see how I can change that. Any idea ?
> I'd like to add a catchall line (*.* @192.168.132.2). It's working when I add
> it
> manually directory in the booted image after a reloading of the rsyslog
> configuration.
The screenlog line is added in the dhclient-script script of the genesis image :
(/opt/xcat/share/xcat/netboot/genesis/x86_64/fs/sbin/dhclient-script)
if [ ! -z "$new_log_servers" ]; then
head -n -1 /etc/rsyslog.conf > /etc/rsyslog.conf.new
cp /etc/rsyslog.conf.new /etc/rsyslog.conf
fi
for ls in $new_log_servers; do
echo *.* @$ls >> /etc/rsyslog.conf
done
I really don't know why the file is managed this way.
> Maybe something like :
>
> $ModLoad imfile
> $InputFileName /screenlog.0
> $InputFileTag screenlog:
> $InputFileStateFile stat-screenlog
>
> instead of the screenlog line ? I didn't try it though.
My current rsyslog.conf file is :
$ModLoad imuxsock
$ModLoad immark
$MarkMessagePeriod 1200
$ModLoad imfile
$InputFileName /screenlog.0
$InputFileTag screenlog:
$InputFileStateFile stat-screenlog
$InputRunFileMonitor
$InputFilePollInterval 2
*.emerg *
*.* @192.168.132.2
# keep the last comment line empty, because it is dynamically trimmed of
# at boot by dhclient-script
#
I'm not satisfied with hard-coding the ip address of the syslog server though...
The invalid line is still added by dhclient-script (where does the
new_syslog_servers variable comes from ? I didn't find anything), but I've got
everything I want : all syslog logs are forwarded and also the screenlog.0 file.
What do you think ?
Jean-Baptiste
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user