Ubuntu

Setup your collectors!

Netsil collectors can be run in both containerized as well as non-containerized environments. Only one collector is needed per host (VM or bare metal OS). Please follow the environment specific installation instructions below.

About

  • If you are viewing this documentation outside of the AOC product, you may need to fill in untemplated variables in some of the steps below.
  • If you are running behind a load balancer, you will need to use the private IP address instead of the hostname ${host}.

Quickstart Installation

(Consult Supported Versions and Collector Requirements before installing.)

Run the command below as a root user on the target instance. This command will install and start the collectors. You can view the auto-templated version of this command from the in-product documentation in the AOC.

wget --no-check-certificate --header="userport: ${port}" \
     -O /usr/bin/install-netsil-collectors.sh ${host}/install_netsil_collectors \
     && chmod +x /usr/bin/install-netsil-collectors.sh \
     && NETSIL_SP_HOST=${your_netsil_ip} NETSIL_ORGANIZATION_ID=${organizationId} NETSIL_AUTOUPGRADE_COLLECTORS=no SAMPLINGRATE=100 /usr/bin/install-netsil-collectors.sh \
     && /etc/init.d/netsil-collectors restart

Tagging

Tagging the collectors is highly recommended in non-containerized environments. Tags help identify and group hosts in meaningful ways, e.g. Staging vs Production, DB vs Load Balancer vs App VM's etc. Refer Tagging Infrastructure

Manual Installation

This section provides instructions for manual installation of the collectors.

Run the commands below as a root user. Please remember to specify your AOC address and your organization ID.

  # Download the collectors with the command
  wget --no-check-certificate -q -O \
      netsil-collectors.deb \
      https://repo.netsil.com/stable/netsil-collectors-ubuntu-16.04-x64.deb

  # Install the collectors
  dpkg -i --force-overwrite netsil-collectors.deb

  # Configure the collectors.
  NETSIL_SP_HOST=${your_netsil_ip} NETSIL_ORGANIZATION_ID=${organizationId} NETSIL_AUTOUPGRADE_COLLECTORS=no SAMPLINGRATE=100 /opt/netsil/collectors/configure.sh

  # Start the collectors
  /etc/init.d/netsil-collectors start

Usage

# Start the collectors
/etc/init.d/netsil-collectors start

# Stop the collectors
/etc/init.d/netsil-collectors stop

Configuration

  • To reconfigure the collectors, first, stop the collectors. Then, re-run the configure.sh script with the variables you wish to update and restart the collectors. An example is given below:

    # First, stop the collectors
    /etc/init.d/netsil-collectors stop
    
    # Then, reconfigure
    NETSIL_SP_HOST=new.netsil.ip /opt/netsil/collectors/configure.sh
    
    # Now, restart the collectors
    /etc/init.d/netsil-collectors restart
    
  • Refer to the configuration section for a list of the other parameters you can configure.

Installing Integrations

Creating the Config File

Create the necessary yaml config file in the /etc/netsil-dd-agent/conf.d directory of your collectors.

You can use the Configuration section from the instructions page for your integration as reference for the name and contents of the config file.

Checking Configuration

Check to make sure that all yaml files are valid with the following command:

/etc/init.d/netsil-collectors configcheck

Running the Integration

Run the integration by restarting the collector as follows:

/etc/init.d/netsil-collectors restart

Checking Runtime

Check to make sure that the integration is working with following command:

/etc/init.d/netsil-collectors info

The output of the info command should contain a section similar to the following:

    Checks
    ======
      [...]
      <name-of-integration>
      ----------
          - instance #0 [OK]
          - Collected 8 metrics & 0 events

Reporting Troubleshooting Information

If you are having issues with your collectors, you can run an inspect command which will gather troubleshooting information about the collectors, as well as any necessary logs. Follow the steps below to do so.

First, run

/etc/init.d/netsil-collectors inspect

This will generate a tarball in the /tmp directory whose filename begins with netsil-collectors-inspection.

Please send this tarball to us, via email or slack.

Uninstallation

apt-get purge netsil-collectors