To install or setup Nagios Core monitoring on Ubuntu and run in Azure/AWS/GCP, the best way is to deploy the template from the marketplace. It setups Ubuntu and automatically installs and fully configures Nagios Core for you and installs and the required pre reqs and plugins. Click on the links below to deploy to your preferred cloud environment.
Once your Nagios Core server has been deployed, the following links explain how to connect to a Linux VM:
- How to connect to a Linux VM on Azure
- How to connect to a Linux VM on AWS
- How to connect to a Linux VM on GCP
Once connected and logged in via your SSH terminal, the following section explains how to start using Nagios
Using Nagios Core
Create nagiosadmin User Account
You’ll first need to create an Apache user account to be able to log into Nagios.
The following command will create a user account called nagiosadmin and you will be prompted to provide a password for the account.
sudo htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
When adding additional users in the future, you need to remove -c from the above command otherwise it will replace the existing nagiosadmin user (and any other users you may have added).
The login URL for Nagios is:
For example – http://10.25.5.143/nagios or you can use the servers DNS name
Nagios Firewall Rules
Nagios Core requires the following firewall ports to be open:
- SSH: 22 TCP
- HTTP: 80 TCP
- HTTPS: 443 TCP
- SNMP: 161/162 TCP/UDP
To setup AWS firewall rules refer to – AWS Security Groups
To setup Azure firewall rules refer to – Azure Network Security Groups
To setup Google GCP firewall rules refer to – Creating GCP Firewalls
Nagios Documentation / Support
Full Nagios Core documentation can be found on: https://library.nagios.com/library/products/nagios-core/manuals//
If you have any issues with installing Nagios on any of the cloud platforms contact us and we will assist as much as possible.