Prerequisites

  1. Create a Middleware account
  2. Keep logging into your account

Use our one-step easy installation

To install a Middleware agent on a host, copy the Installation command and paste it into the command prompt. Your command will look like the following example, and it will include your API key.

For DEB (Debian Packages : Compatible for Debian and derivative operating systems)

MW_API_KEY=xxxxxxxxxxxxxxx TARGET=https://uid.middleware.io:443 bash -c "$(curl -L https://install.middleware.io/scripts/deb-install.sh)"

For RPM (Package supported by RedHat Package Manager, Compatible for systems like RedHat/CentOS etc.)

MW_API_KEY=xxxxxxxxxxxxxxxxx TARGET=https:/uid.middleware.io:443 bash -c "$(curl -L https://install.middleware.io/scripts/rpm-install.sh)"
Replace the MW_API_KEY value with your API key or directly copy the full command with the API key from the installation menu.
Replace “uid” with the text in the URL (ex URL is “s05zpimz.middleware.io” , here s05zpimz is uid.)

Adding Tags to your host

If you want to add tags to your host, you can do it by adding MW_HOST_TAGS environment variable to your installation command.

MW_HOST_TAGS=key1:value1,key2:value2

MW_HOST_TAGS can be comma seperated key value pairs as shown above

Special Tags

KeyDescription
name”name” tag will be considered as an alias for the host.

Verify the status of agent

Run the agent’s status command to verify the installation.

Shell
sudo systemctl status mwservice

A successful installation returns an Agent Status report that begins with Agent information like following

Uninstall the Middleware agent

To uninstall the middleware agent, please use the following command.

Shell
bash -c "$(curl -L https://install.middleware.io/scripts/apt-uninstall.sh)"