amtool command not found

In this troubleshooting guide we learn how to fix amtool command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

amtool: command not found

or when using sudo you get the following error message

sudo: amtool: command not found

Solutions to amtool: command not found

How To Fix amtool: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu amtool is provided by prometheus-alertmanager package.

prometheus-alertmanager is:

The Alertmanager handles alerts sent by client applications such as the Prometheus server. It takes care of deduplicating, grouping, and routing them to the correct receiver integration such as email, PagerDuty, or OpsGenie. It also takes care of silencing and inhibition of alerts.

To fix this problem, we can install more using the command below.

sudo apt-get -y install prometheus-alertmanager

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install prometheus-alertmanager.

sudo apt -y install prometheus-alertmanager

Or if you have aptitude installed you can use the following command.

sudo aptitude install prometheus-alertmanager

Summary

In this tutorial we learn how to fix amtool command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.