Hitachi

JP1 Version 12 Integrated Management: Getting Started


3.4.2 Verifying that records can be converted to events by the log file trap

After you create a log file trap action-definition file according to 3.4.1 What is log file trapping for JP1/Base?, you must verify that the log file trap runs normally. To check the operation, output a pseudo record on an agent that is running the log file trap. Before you attempt to start the log file trap, make sure that a pseudo record can be output to the log file.

Prerequisites

Setting of the log file trap must be completed according to 3.4.1 What is log file trapping for JP1/Base?.

Procedure

  1. From the command prompt for the agent (host1) on which the log file trap is running, execute the following command:

    echo "System Error">>log-file-name#

    #: In this example, the echo command is used to monitor a test file. For the actual operation, monitor a log file output by an application.

    For example, if a log file named logfile1.log is stored in C:\log in Windows, specify C:\log\logfile1.log for log-file-name.

  2. Verify that the event converted from log data is displayed in the central console.

    In this example, confirm that an event was issued whose severity level was Error, source host was host1, and message was System Error.

    [Figure]

Related topics