Skip to main content
Interania

Admin Guide: Install single-node Interana

After completing the tasks outlined in this document, you will have successfully installed the Interana software on a single node cluster, configured the Interana command line interface (CLI), and created an admin user account. 

The recommendations in these instructions are meant for a test environment installation. It is advised that you first use Interana in a test environment, and move to a production installation once you've successfully tested your data. Consult with your storage administrator regarding the production environment requirements for your site.

Before you begin

The node on which you will install Interana must be running Ubuntu 14.0.4 and must also meet the following minimum requirements:

  • 4 CPU cores
  • 8 GB RAM
  • 200 GB storage

Installation overview

The Interana installation includes the following tasks. Click a link to jump directly to the step-by-step instructions.

  1. Provision a node.
  2. Download the Interana software.
  3. Install MySQL.
  4. Install Interana.
  5. Install Nginx.
  6. Start Interana.
  7. Configure the Interana CLI.
  8. Create an admin user account.

1. Provision a node 

Before you can begin installing Interana, you must provision a node. 

To provision a node for an Interana cluster, do the following:

  1. Provision your node with Ubuntu 14.04.
  2. Make a note of the IP address. You will need it later.
  3. Verify that you have SSH connectivity to each node, with no TCP restrictions (such as iptables).
  4. Log into the node, and continue to download the Interana software. 

2. Download the Interana software

The the APT AWS S3 transport allows you to fetch files from the Interana private repository on AWS S3. You import a Gnu Privacy Guard (gpg) key so you can then securely download the Interana software from a trusted site.

To download the Interana software, do the following:

  1. Open a Terminal window and log into the VM. The following example uses the Ubuntu default username (ubuntu) and password (ubuntu). Use the login credentials established when you provisioned your VM. 
ssh ubuntu@<IP_address> 
password: ubuntu
  1. Install apt-transport-s3 with the following command, so you can fetch files from the Interana private repository on AWS S3. 
https://launchpad.net/ubuntu/+source/apt-transport-s3
  1. Go to /etc/apt/s3auth.conf and configure the AWS credentials Interana provided you with for access to the Interana private repository. The following is an example of the credentials to be added.
AccessKeyId = AKIAyouraccesskeyidUZBA
SecretAccessKey = W18sR/ZrAT0WyoursecretaccesskeyVjOkg0DMl
Token = ''
  1. Import the gpg key by entering the following command.
wget -qO - https://apt.interana.com/repo.key | sudo apt-key add -
  1. To add an apt repository, enter the following command.
echo "deb [arch=amd64] s3://interana-apt-prod.s3.amazonaws.com/ trusty main" | 
sudo tee/etc/apt/sources.list.d/interana.list
  1. To refresh your package index with information about the latest version of the Interana software, enter the following command.
sudo apt-get update

3. Install MySQL

Install MySQL 5.3 or newer.

You install MySQL to create a database for Interana metadata. This step is necessary for all single node clusters, but only required for the config node of a multi-node cluster. For more information, see Install multi-node Interana on VMware.

To install MySQL for Interana, do the following:

  1. Enter the following command in a terminal window.
sudo apt-get -y install mysql-server
  1. In the MySQL Package Configuration window, enter a password for the MySQL root user. We'll refer to this as the MySQL root password later on.

4. Install Interana

Now that MySQL is installed, you are ready to install the Interana software.

To install Interana, do the following:

  1. In a Terminal window, do one of the following:
  • To install the full Interana package that includes GPL-licensed software, enter the following command:
sudo apt-get -y install interana-cli interana
  • To install Interana without any GPL-licensed software, enter the following command:
sudo apt-get -y install --no-install-recommends interana-cli interana

If you already have interana fully installed and want to remove GPL-licensed software, use the following command:
sudo apt-get remove interana-python3-extra

 

  1. Enter the MySQL server address. Use localhost or 127.0.0.1 for a single node installation.

  1. Enter the MySQL server port. It's recommended that you keep the 3306 default.

  1. Enter the MySQL username, which was set to root when you installed MySQL.

  1. Next, enter the MySQL root password that you set when you  installed MySQL.

  1. Accept the default values for the node configuration (leave listener unselected), and then press Enter. The listener node is an optional node type that enables the "add_events" API for sending data to Interana via a direct HTTP request. 

You've successfully installed the main Interana software package. Next you need to install the software required for the user interface. 

5. Install Nginx

Nginx is used to run the Interana user interface. 

To install Nginx, type the following command in a Terminal window: 

sudo apt-get -y install nginx-extras

That's it! You've successfully completed the installation process. Now you can now start Interana. 

6. Start Interana

Now you’re ready to start Interana. 

To start the Interana service, do the following:

  1. In the terminal window, enter the following command. 
sudo service interana start
  1. Open a browser window, and enter the following in the URL field.

http://<interana-node-IPaddress>
  1. Log in to Interana using the default username root@localhost and the default passwordroot.

Workaround tip

If you did not see the Interana login prompt, the following workaround tip may help you resolve the issue.

If you see a Welcome to nginx! message, do the following:

  1. Go back to the Terminal window and type the following two commands to remove the file that's keeping Interana from starting correctly:
cd /etc/nginx/sites-enabled
rm default
  1. Now type ls -l and look for a file named default.something. Use the following command to rename the file to default(but change default.something to the actual name of the file):
mv default.something default
  1. Now restart Nginx (typesudo service nginx restart) and open your site’s URL from your browser again.

7. Configure the Interana CLI

You configure the Interana CLI for a (default) single-node cluster so you can use the CLI to create user accounts, with or without email authorization. 

You must have login credentials for the cluster and know the cluster URL. The HTTPS URL uses the fully qualified domain name (FQDN) of the instance to configure a connection with the cluster.

To configure the CLI to manage the default cluster, do the following:

  1. In a shell window, type the following command.
ia config http://<default-cluster-address.com>

You receive a response similar to the following:

Visit https://mycluster.interana.com/api/create_token and supply your new API token.
  1. Open a new browser window and enter the URL: https://mycluster.interana.com/api/create_token. You receive a generated token similar to the following.

  1. Enter the token value (in the terminal window) as it appears (between the "") when you are prompted for the API key, and then press Enter. You are notified that the credentials have been configured.
Enter API Key: <pasted token value is not visible>
 
Success! Credentials stored as default config

8. Create an admin user account

Now you are ready to create an admin account using the CLI. You specify a username and password for each new account you create. For security purposes, the password used to create the account is visible in the bash history. For this reason, it's important to advise the user change their password when they initially log into their account.

It is recommended that you make the first user an admin so you can use the import wizard to ingest data. Use a fully qualified domain name (FQDN) for the user name, such as your-name@company-name.com.  

The create user command has the following structure and options.

ia user create <username> <password> [--no-email] [--base-url <base_url>]
  • The username and password are required.
  • By default, Interana will send an e-mail notification to the user (we will treat their username as their e-mail address) welcoming them to Interana and asking them to verify their account. The --no-email option specifies that email confirmation by the user is not required to activate the account and no e-mail will be sent.
  • If you do not use the --no-email option, it is strongly recommended that you set the --base-url. If --base-url is not set, it defaults to the public IP of the first API node, which may not be user-friendly. 

The --base-url is set in the following example, requiring email authorization by the user to activate the account. 

To create an admin user account, do the following:

  1. Enter the following command in the terminal window, with the account username and password, and a valid URL for email authorization.
ia user create user-name@company.com admin-password --base-url example.company.com
  1. Enter the following command to give the user account admin privileges.
ia user update user-name@company.com --addrole-admin

What's next?

Congratulations! Now that you've installed Interana, configured the CLI, and created an admin user account, it's time to add your data.

  • Was this article helpful?