Installation

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
(*) SSHTCP220.0.0.0/0
Custom TCP ruleTCP161 – 1620.0.0.0/0
(*) HTTPHTTP800.0.0.0/0
(*) HTTPSHTTPS4430.0.0.0/0
(*) Custom TCP rule TCPTCP5666 – 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. Despite the fact we use here 0.0.0.0/0 to allow access to all sources as an example, we recomend block access only to your networks or bastion hosts.

Once the instance is running, we can access using:

  • SSH: Using the .pem that we have selected when launching the instance, and user ubuntu
  • HTTP: Using the url https://ip.of.nagios.instance/nagios4/, with user nagiosadmin and password the ID of the instance that we just created.