Oracle Fusion Middleware Administration Guide for Oracle Directory Server Enterprise Edition

Configuring the Operating System to Accept syslog Alerts

This section provides instructions on configuring the Solaris, Linux, and HP-UX operating systems to accept syslog alerts.

ProcedureTo Configure the Solaris OS to Accept syslog alerts

  1. Add the appropriate facility to the syslog configuration file.

    For example, to store all alerts using the USER facility, add the following line to /etc/syslog.conf:


    user.info       /var/adm/info

    Here /var/adm/info is an example local directory in which messages will be stored. Ensure that /var/adm/info exists before continuing.

  2. Restart the syslogd daemon.

    1. On Solaris 8 and 9, restart syslogd by typing this:


      $ /etc/init.d/syslog stop | start
    2. On Solaris 10, restart syslogd by typing this:


      $ svcadm restart system/system-log
  3. Verify that messages are logged in syslog.


    $ logger -p user.info "Test message"
    $ cat /var/adm/info
     Jun 19 17:18:38 host user: [ID 12345 user.info] Test message

ProcedureTo Configure Linux to Accept syslog Alerts

  1. Add the appropriate facility to the syslog configuration file.

    For example, to store all alerts using the USER facility, add the following line to /etc/syslog.conf:


    user.info       /var/adm/info

    Here /var/adm/info is an example local directory in which messages will be stored. Ensure that /var/adm/info exists before continuing.

  2. Configure the syslogd daemon to run with the -r option.

    This option allows syslogd to accept connections from the network. By default, the -r option is not set.

    To set the -r option, add the following line to /etc/sysconfig/syslog:


    SYSLOGD_OPTIONS="-m 0 -r"

    If /etc/sysconfig/syslog does not exist, add the same line to /etc/init.d/syslog.

  3. Restart the syslogd daemon.


    $ /etc/init.d/syslog stop | start
  4. Verify that messages are logged in syslog.


    $ logger -p user.info "Test message"
    $ cat /var/adm/info
     Jun 19 17:18:38 host user: [ID 12345 user.info] Test message

ProcedureTo Configure HP-UX to Accept syslog alerts

  1. Add the appropriate facility to the syslog configuration file.

    For example, to store all alerts using the USER facility, add the following line to /etc/syslog.conf:


    user.info       /var/adm/info

    Here /var/adm/info is an example local directory in which messages will be stored. Ensure that /var/adm/info exists before continuing.

  2. Restart the syslogd daemon.


    $ /sbin/init.d/syslogd stop | start
  3. Verify that messages are logged in syslog.


    $ logger -p user.info "Test message"
    $ cat /var/adm/info
     Jun 19 17:18:38 host user: [ID 12345 user.info] Test message