Installing a monitoring agent on Linux or UNIX computers

Before you begin

Keep the following guidelines in mind:

The following table provides an overview of what you need to for installation:

Table 1. Overview of installing a monitoring agent on Linux or UNIX computers
Steps Where to find information
Install the monitoring agent. Procedure: Installing the agent
Change the file permissions for files on the computer where you installed the agent, if you used a non-root user to install a monitoring agent Procedure: Changing file permissions
Configure the monitoring agent.

Configuring Client Response Time from the GUI (UNIX and Linux)

Configuring Application Management Console from the GUI (UNIX and Linux)

Configuring Robotic Response Time from the GUI (UNIX and Linux)

Configuring Web Response Time from the GUI (UNIX and Linux)

Some agents require additional, agent-specific configuration parameters. See the agent documentation for the specific agents that you are configuring.

Start the monitoring agent. Starting and stopping monitoring agents

Procedure: Installing the agent

  1. In the directory where you extracted the installation files, run the following command: ./install.sh.
  2. When prompted for the IBM Tivoli Monitoring home directory, press Enter to accept the default (/opt/IBM/ITM) or type the full path to a different directory.
  3. You are given a list of processes currently running. You are warned that these processes will be stopped and restarted during the installation. Type 1 and press Enter to continue the installation.
    A prompt similar to the following is displayed:
    Select one of the following: 
    1) Install products to the local host. 
    2) Install products to depot for remote deployment (requires TEMS).
    3) Exit install. 
    
    Please enter a valid number:
  4. Type 1 to start the installation and press Enter.
  5. Type the number that corresponds to the language in which you want to display the software license agreement in and press Enter. (In some cases, you might not be prompted for this step. so you can skip it.)
  6. Press Enter to display the agreement.
  7. Type 1 to accept the agreement and press Enter.
    Note: Step 8 applies to agents installed from the IBM Tivoli Monitoring installation image, if the agent is installed from the agent installation, you can skip the step.
  8. Type a 32 character encryption key and press Enter. This key was specified during the installation of the monitoring server to which this monitoring agent connects.
  9. Type the number for the operating system on which you are installing and press Enter. The default value is your current operating system.
  10. Type 1 to validate your selection and press Enter.
  11. A list of available products for installation is provided. Type the number that corresponds to the monitoring agent or agents that you want to install and press Enter. To install more than one agent, use a comma (,) or a space to separate the numbers for each agent.
  12. Type 1 to validate your selection and press Enter to start the installation.
  13. When prompted to install additional products or product support packages, type 2 for no and press Enter.

Procedure: Changing file permissions

If you used a non-root user to install a monitoring agent on a UNIX computer, the file permissions are initially set to a low level. Run the following procedure to change these file permissions:
  1. Log in to the computer as root, or become the root user by running the su command.
  2. Create a new group (such as itmusers) to own all of the files in the IBM Tivoli Monitoring installation directory.

    For Linux, Solaris, and HPUX computers, run the following command: groupadd itmusers

    For an AIX® computer, run the following command: mkgroup itmusers

  3. Run the following command so that the CANDLEHOME environment variable correctly identifies IBM Tivoli Monitoring installation directory: export CANDLEHOME = <ITM_Install_Directory>
    CAUTION:
    Running the following steps in the wrong directory can change the permissions on every file in every file system on the computer.
  4. Run the following command to change to the directory returned by the previous step: cd $CANDLEHOME
  5. Run the following command to confirm that you are in the correct directory: pwd
  6. Run the following commands:
    chgrp -R itmusers 
    chmod -R o-rwx 
  7. Run the following command to change the ownership of additional agent files: bin/SetPerm
  8. (Optional) To run the agent as a particular user, add the user to the itmusers group by editing the /etc/group file and adding the user to the itmusers group.

    For example, to run the agent as user test1, add following line is in the /etc/group file: itmusers:x:504:test1

  9. Run the su command to switch to the user that you want to run the agent as or log in as that user.
  10. Start the monitoring agent.

Installing multiple Web Response Time agents on the same Linux or UNIX host

On supported Linux and UNIX systems, multiple Web Response Time agents can run on the same system, as long as the agents are installed in different file systems (for example, /opt/IBM/ITM and /var/IBM/ITM2). Some configuration customization is also required.

Complete the following steps to achieve this setup:
  1. Install multiple instances of the Web Response Time (WRT) agent in different file systems. These path names must not be subsets of each other. For example, for an installation deploying two WRT agents on the same box:
    • Correct:
      /opt/IBM/ITM
      /var/IBM/ITM2
    • Incorrect:
      /opt/candle
      /opt/candle/itcam_wrt/ServPoint
  2. In the <ITM_HOME>/tmaitm6/wrm directory, add the following line to the kfcmenv file for each WRT agent, where <port> is an open port for the machine:
    KFC_API_MEDIASERVER_LISTEN_PORT=<port>;
    export KFC_API_MEDIASERVER_LISTEN_PORT

    Use port 12121 for the first agent, port 12122 for the second agent, port 12123 for the third agent, and so on.

  3. In <ITM_HOME>/config, add this same line to the t5.ini and t5.config files for each WRT agent.
  4. In <ITM_HOME>/config, add the following line to the t5.config and t5.ini files for each WRT agent. In <ITM_HOME>/tmaitm6/wrm, add the following line to the kfcmenv file for each WRT agent, where <port> is an open port on the system:
    KT5ERRORMESSAGEPORT=<port>

    Ensure that the port is unique for each agent.

  5. In <ITM_HOME>/config, set the CTIRA_HOST variable in the t5.config and t5.ini files for each WRT agent to define the node name that the Tivoli Enterprise Portal (TEP) uses to identify each agent.
Avoid monitoring identical data: To avoid having each agent monitoring identical data, you must satisfy either of the following conditions:
  • Each agent monitors a different NIC.
  • In the <ITM_HOME>/tmaitm6/wrm/kfcmenv file for each WRT agent, use the following option to define which servers each WRT agent monitors:
    KFC_RESTRICT_HOST=<ip1>:<port1>,<ip2>:<port2>,...

Follow-up or related tasks