Psion Teklogix 9160 G2 Network Card User Manual


 
Chapter 11: Maintenance And Monitoring
Log Relay Host For Kernel Messages
122
Psion Teklogix 9160 G2 Wireless Gateway User Manual
11.2.1.2 Setting Up The Log Relay Host
To use Kernel Log relaying, you must configure a remote server to receive the
syslog messages. This procedure will vary depending on the type of machine you
use as the remote log host. The following is an example of how to configure a
remote Linux server using the syslog daemon.
Example Of Using Linux syslogd
The following steps activate the syslog daemon on a Linux server. Make sure you
have
root
user identity for these tasks.
1. Log on as
root
to the machine you want to use as your syslog
relay host.
The following operations require
root
user permissions. If you are not
already logged on as root, type
su
at the command line prompt to become
root
(“super user”).
2. Edit
/etc/init.d/sysklogd
and add “
-r
to the variable
SYSLOGD
near the top of the file. The line you edit will look like this:
SYSLOGD= “-r”
Consult the man pages to get more information on syslogd command
options. (Type man
syslogd
at the command line.)
3. If you want to send all the messages to a file, edit
/etc/syslog.conf
.
For example you can add this line to send all messages to a log file called
AP_syslog
:
* . * -/tmp/AP_syslog
Consult the man pages to get more information on
syslog.conf
command
options. (Type man
syslog.conf
at the command line.)
4. Restart the syslog server by typing the following at the command line
prompt:
/etc/init.d/sysklogd restart
Note: The syslog process will default to use port 514. We recommend keeping
this default port. However; If you choose to reconfigure the log port,
make sure that the port number you assign to syslog is not being used by
another process.