version 2

For those who wish to use Nagios as a monitoring system, I have created an AMI optimized with Nagios 4 and NagiosGraph. This page shows both its features and its operation, configuration and use, so please read it carefully.

AMI Features

  • AMI based on Ubuntu Bionic Beaver
  • Nagios 4 installed and configured from source code (latest stable version)
  • NagiosGraph installed and configured from source code (latest stable version )
  • Optimized with: nginx, PHP 7.3

Installation and configuration


The installation follows the normal process of creating an instance in EC2. The recommended instance size is t3.medium.

The security group usually includes the following permissions:

TypeProtocolRange of portsSource
Custom TCP ruleTCP161 – 1620.0.0.0/0
(*) HTTPHTTP800.0.0.0/0
(*) HTTPSHTTPS4430.0.0.0/0
(*) Custom TCP ruleTCP5666 – 56670.0.0.0/0
Custom TCP ruleTCP56930.0.0.0/0

The fields marked with (*) are essential, either to access the web interface or for the normal operation of the server.

Once the instance is running, we can access using:

  • SSH: SSH: Using the .pem that we have selected when launching the instance.
  • HTTPS: HTTPS: Using the url https: //, with user nagiosadmin and key the ID of the instance that we just created.

SSL configuration valid with Let’s Encrypt

In order to configure a valid certificate we must first change the host name of the EC2 instance to allow us to generate the certificate. AWS does not allow certificates to be generated for the default name of the instance, because names (and IPs are volatile).

Personalization and support

If you need to customize the default options of the AMI, or have any questions or problems, you can write me at the address:

Last modified June 1, 2020