Prerequisites
1
Ubuntu
Ubuntu
v18.04
or above2
AWS Instances
For AWS EC2 instances, Amazon Linux, Ubuntu, or Debian is required. For AWS instances using Red Hat, please install the Docker Infra Agent
3
Operating System
MacOS Linux is not supported
Install
Step 1: Access Linux Installation
Log in to Middleware, navigate to the Installation Page in the bottom left corner and select Linux-Based from the Infrastructure section
Step 2: Run Linux Install Command
Copy the appropriate installation command based on your machine’s operating system. Copying the command directly from the Installation page ensures your API key and UID are inserted accurately.DEB
: Compatible with Debian or Debian-based operating systems. For AWS instances this includes Ubuntu and Debian.Shell
Step 3: Add Host Tags [Optional]
Create filterable custom tags by adding theMW_HOST_TAGS
environment variable to the installation command as comma-separated key-value pairs. Use the tag name
to create an alias for the host (e.g. production).
Check your host tags have been embedded by navigating to Infrastructure -> Your Desired Host -> System Information
Shell
Step 4: Verify Installation
Run the following command to verify the status of the Infra Agent:Shell
If your Infra Agent is older than
v1.6.4
, use the below command to check the installation status. Shell

Troubleshooting
Run only one Infra Agent per node per host. Multiple agents will cause unexpected behavior.
Uninstall
To uninstall the MW agent, use one of the following commands:Shell
Need assistance or want to learn more about Middleware? Contact us at support[at]middleware.io.