How can we help?

How to install the Auvik collector from a bash script

Follow

The following instructions are for advanced users. If you’d rather install the Auvik collector from an OVA file, please follow these steps.

  1. Register for a trial.
  2. Add a new client.
  3. Have a supported virtualization platform ready. Desktop virtualization platforms such as Oracle VirtualBox, VMware Fusion, or VMware Workstation are fine for quick use, but aren’t recommended or supported for enterprise implementations.

Virtualization Platforms

Host Operating Systems

Commercial cloud* (e.g., Amazon AWS EC2, Microsoft Azure)

N/A

Microsoft Hyper-V

Windows Server

Citrix Xen

N/A

VMware ESX / ESXi 5.5+ (Download here)

NA (barebones hypervisor)

  1. Sign into your Auvik account and access a new client.

To install the Auvik collector in a commercial cloud environment, such as Amazon AWS or Microsoft Azure, follow these steps first.

It’s assumed that you know how to set up and configure an Ubuntu server. All of this can be completed in four easy steps. 

  1. Download a Trusty Ubuntu iso
  2. Create a new Linux Ubuntu virtual machine
  3. Install and configure Ubuntu
  4. Run the collector bash installation script

1. Downloading the Trusty Ubuntu iso

Download a Trusty Ubuntu iso image from one of these two sources.

2. Create a Linux Ubuntu virtual machine

If you’re looking to deploy the Auvik collector in a commercial cloud environment like Amazon Web Services (AWS) or Microsoft Azure, follow these steps to deploy Ubuntu.

When creating the Linux Ubuntu virtual machine, here a few requirements to keep in mind. You’ll need:

  1. One virtual CPU
  2. At least 2GB of RAM
  3. At least 8GB of available disk space

Once your virtual machine is ready, continue to Step 3.

3. Installing and configuring Ubuntu

During Ubuntu installation, if you’re asked to provide an IP address for the virtual machine, this address will be the DHCP address associated with the Auvik collector If you like, you can change the address after the collector has been installed.

If you don’t set an IP address for the virtual machine during Ubuntu installation, locate the new machine’s IP address by running the following: ifconfig. Note the inet addr. You’ll need it in Step 4.

Make sure you install OpenSSH Server. You can do this during Ubuntu installation or afterwards. If doing it after the Ubuntu installation, log in as the Ubuntu server user, then run the following command:

sudo apt-get install openssh-server openssh-client

4. Run the Auvik collector bash script

To execute the script, you’ll need:

  • An email address and password for a user associated with the Auvik account
  • A domain prefix (e.g., sample.my.auvik.com) for the client where the collector is being installed
  1. From a window external to the virtual machine, connect via SSH:
    • Mac users: Open a terminal window and execute ssh UBUNTUUSER@IPADDRESS Accept the SSH key. When requested, enter the user’s password.
    • Windows users: Start PuTTY. In the host name field, enter the IP address for the virtual machine. Ensure the port is 22 and SSH is selected. Click Open. When requested, enter the username and password.
  2. Copy and paste the following command: 
    sudo bash -c "rm -rf ./auvik_installer install.sh && umask 0022 && curl --verbose --header \"Accept: text/plain\" --user EMAIL https://DOMAINPREFIX.my.auvik.com/agents/installer/ > install.sh && grep -wq __ARCHIVE_BELOW__ install.sh && chmod 0755 install.sh && bash -x ./install.sh 2>&1 | tee /tmp/install.log"

Be sure to edit the following parameters within the command:

      • EMAIL should be the email address associated with your Auvik account.
      • DOMAINPREFIX should be the Auvik domain prefix (e.g., sample is the prefix for https://sample.my.auvik.com/agents/installer) for the client where the collector is being installed.
  1. When requested, enter the password for the Ubuntu user, and then the password for the email address that was set in the command.
  2. Downloading and installing the Auvik collector takes about 10 minutes. After that’s done, reboot the Ubuntu virtual machine from the external command line by executing: sudo reboot
  3. Ensure the IP address of the collector remains static. There are two ways to ensure this:
    • Set up a DHCP reservation for the virtual machine’s MAC address in your DHCP server.
    • Configure the collector to use a static IP address that lies outside of your DHCP pool. Option 1 on the collector’s console window will help you configure a static IP.

 

Have more questions? Submit a request

Comments

Powered by Zendesk