Chapter 2. Installing Nagios 4
The previous chapter described what Nagios is, the basic concepts of monitoring, and types of objects in Nagios. This chapter describes how to install Nagios and the standard Nagios plugins.
We will cover multiple ways in which Nagios can be installed and how it can be run —using binary packages from various Linux distributions and building Nagios from source code. We will also discuss how to run Nagios in your machine, using Docker containers as well as run it inside a virtual machine.
We have provided an easy-to-run script that works on most popular Linux distributions including Debian, Ubuntu, CentOS, and Red Hat Enterprise Linux. For consistency, we recommend that you use this script for Nagios installation as it will also use the same paths for configuration files, binaries, and statuses that further chapters will refer to.
Also, this script will download and install the latest version of Nagios. Many Linux distributions do not ship latest...