doc.overops.com

Install a Collector on Linux

Introduction

This section describes the OverOps Collector installation on Linux. There are two methods for installing a Collector on Linux:

Follow the steps below for the relevant solution.`

Prerequisites

  1. Before installing the Collector, verify that these software and hardware requirements are in place.
  2. Verify that Java is installed.
  3. You'll need an installation key for this procedure:
    • If you reached this article from the OverOps application, you were provided a key before reaching this document.
    • You can also get this key by going to the Settings page, clicking Manage Environments in the top right corner, and copying the installation key of the environment that you're installing.

Remember when copying and pasting the command lines from the Install the Collector procedure below to verify that all the characters are copied correctly.

Install a Collector with Root Privileges

Set the Collector Port

Select a TCP port to connect to the Collector port <COLLECTOR_PORT>.
Verify that the <COLLECTOR_PORT> is not blocked by any firewall.

Run the Installation Script

Use the fields below to generate the installation command for the Collector.

Verify Installation

Verify that the takipi-service is running:
ps -ef | grep takipi

Save the Collector Host and Port for the Next Steps

Save the IP address of the <COLLECTOR_HOST>, and the Collector listening port <COLLECTOR_PORT>. You will need them in the agent installation step.

Install the Collector without Root Privileges

Step 1: Download the Collector Installation TAR File

Follow the instructions for downloading the TAR file according to your deployment model: SaaS or On-Premises.

Downloading the TAR File for SaaS

  1. From the download site, download the Collector installation TAR file.
    wget --content-disposition https://app.overops.com/app/download?t=tgz
  2. Extract the files to your working folder:
    tar -xf takipi-latest.tar.gz
  3. This creates a ‘takipi’ folder on your machine.

Downloading the TAR File for On-Premises

  1. From the On-Premises server, download the Agent installation TAR file.
    wget -O takipi.tar.gz "$TAKIPI_HOST:8080/app/download?t=tgz"
  2. Extract the files to your working folder:
    `tar xvf takipi.tar.gz
  3. This creates a ‘takipi’ folder on your machine.

Step 2: Add the Installation Key to the Takipi Folder

  1. Copy and paste the installation key into a text file named installation.key.
  2. Go to the takipi directory on your machine (i.e.,<PATH>/takipi) and save the installation.key file there.

Step 3: Create a collector.properties File

Create a collector.properties file in the takipi directory. Use the templates below to create a file according to your deployment model (SaaS, Hybrid, On-Premises).

SaaS collector.properties File Template

jvmPath=${JAVA_HOME}/jre/lib/amd64/server/libjvm.so
libraryPath=<COLLECTOR_DIR>/lib

takipi.backend.url=https://backend.overops.com
takipi.storage.test.url=https://s3.amazonaws.com/app-takipi-com/ConnectionTest

# The internal JVM max heap size
takipi.jvm.heap.size=4G
# The TCP port to listen on
takipi.listen.port=<COLLECTOR_PORT>
# The server name of the Collector. Leave empty for HOSTNAME
takipi.server.name=<COLLECTOR_HOST>
...

Hybrid collector.properties File Template

jvmPath=${JAVA_HOME}/jre/lib/amd64/server/libjvm.so
libraryPath=<COLLECTOR_DIR>/lib

takipi.backend.url=https://backend.overops.com
takipi.storage.test.url=https://ec2-18-212-154-63.compute-1.amazonaws.com:8443/storage/v1/diag/ping

# The internal JVM max heap size
takipi.jvm.heap.size=1G
# The TCP port to listen on
takipi.listen.port=<COLLECTOR_PORT>
# The server name of the Collector. Leave empty for HOSTNAME
takipi.server.name=<COLLECTOR_HOST>
...

On-Premises collector.properties File Template

jvmPath=${JAVA_HOME}/jre/lib/amd64/server/libjvm.so
libraryPath=<COLLECTOR_DIR>/lib

takipi.backend.url=http://$TAKIPI_HOST:8080
takipi.storage.test.url=http://$TAKIPI_HOST:8080/service/png

# The internal JVM max heap size
takipi.jvm.heap.size=1G
# The TCP port to listen on
takipi.listen.port=<COLLECTOR_PORT>
# The server name of the Collector. Leave empty for HOSTNAME
takipi.server.name=<COLLECTOR_HOST>
...

Step 4: Run the Collector

Run the Collector using the following command:

nohup <PATH_TO_TAKIPI>/takipi/bin/takipi-service &

Remember to replace <PATH_TO_TAKIPI> with your directory path.
Alternatively, run the Collector as a service sudo using the systemd (daemon); for example: /opt/takipi/etc/init

Troubleshooting

For troubleshooting purposes, you can run the Collector in your terminal window and enable logging: <PATH_TO_TAKIPI>/takipi/bin/takipi-service -l

Optional: Run the Collector Using the Watchdog Option

The watchdog feature makes it possible to start the Collector by a user without root permissions using “watchdog” (i.e., if the Collector exits for any reason, it will be automatically restarted).

  1. Run the Collector with Watchdog with the script takipi-start --non_root_wd: starts according to the running takipi-start script location. Note that the Collector installation directory and its sub directories must have read and write permission for the user starting it.
  2. You can also stop the Collector using same flag, like: “takipi stop –non_root”.

Test the Installation

  1. Test the installation: From the OverOps web application (app.overops.com) Dashboard, click Add Server and then, from the dialog box, click Next and then click Test Installation.
    When the connection is established, the Collector status is 'Monitoring'.
  2. Verify that your application throws exceptions.
    Rootless installation does not enable the Collector to start automatically after a reboot.
  3. Run the Collector as a daemon according to your system.

Updated 3 months ago


Install a Collector on Linux


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.