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:
Type | Protocol | Range of ports | Source |
---|---|---|---|
(*) SSH | TCP | 22 | 0.0.0.0/0 |
Custom TCP rule | TCP | 161 – 162 | 0.0.0.0/0 |
(*) HTTP | HTTP | 80 | 0.0.0.0/0 |
(*) HTTPS | HTTPS | 443 | 0.0.0.0/0 |
(*) Custom TCP rule TCP | TCP | 5666 – 5667 | 0.0.0.0/0 |
Custom TCP rule | TCP | 5693 | 0.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.