How to setup Nagios Core Monitoring on Linux in Azure/AWS/GCP

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.

Getting Started


Once your Nagios Core server has been deployed, the following links explain how to connect to a Linux VM:



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 – 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:


If you have any issues with installing Nagios on any of the cloud platforms contact us and we will assist as much as possible.

Disclaimer: Nagios® Core™ is a registered trademark owned by Nagios Enterprises, LLC and is licensed under GNU General Public License V 2. No warrantee of any kind, express or implied, is included with this software. Use at your risk, responsibility for damages (if any) to anyone resulting from the use of this software rest entirely with the user. The author is not responsible for any damage that its use could cause.
Andrew Fitzgerald

Cloud Solution Architect. Helping customers transform their business to the cloud. 20 years experience working in complex infrastructure environments and a Microsoft Certified Solutions Expert on everything Cloud

0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x