icinga2 command not found

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

Introduction

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

icinga2: command not found

or when using sudo you get the following error message

sudo: icinga2: command not found

Solutions to icinga2: command not found

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

In Ubuntu icinga2 is provided by icinga2-bin package.

icinga2-bin is:

Icinga 2 is a general-purpose monitoring application to fit the needs of any size of network. Icinga 1.x was a Nagios fork; this new generation has been rewritten from scratch in C++, with multi-threading and cluster support.

Features:

  • all standard features of Icinga and Nagios;
  • much faster and more scalable than Icinga 1 and Nagios;
  • new, more intuitive, template-based configuration format;
  • monitoring services on ICMP (ping) or TCP ports (HTTP, NNTP, POP3, SMTP, etc.) by executing checks (see monitoring-plugins*);
  • any small script following the Nagios plugin API can be used as a check plugin;
  • notifications about alerts for any custom script (with examples);
  • native support for Livestatus and Graphite.

This package provides the Icinga 2 daemon.

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

sudo apt-get -y install icinga2-bin

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

You can also use apt command to install icinga2-bin.

sudo apt -y install icinga2-bin

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

sudo aptitude install icinga2-bin

Summary

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