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. Great open source monitoring tool to monitor servers, networks and applications.
Nagios Core Cloud
Table of Contents
Nagios Core Monitoring Server Features
- One of the main feature of Nagios Core is that it is a monitoring (disk usage, memory usage, processor load,) and also altering service when a critical error occurs and gets resolved.
- Powerful monitoring engine which can scale and manage 1000s of hosts and servers.
- It has multi-tenant capabilities.
- Extendable architecture which can easily integrate with third-party applications with multiple APIs.
- Fast alerting system when service or host problems occur and get resolved (via email, pager, or user-defined method).
- Identifies network issues such as HTTP, POP3, SMTP, SSH.
- Multiple plugins with custom coded plugins.
- Configuration via Web GUI.
Getting Started with Nagios Core
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 User Account
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 Core 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.