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:

 

 

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).

Login URL

The login URL for Nagios is:

 

http://serversprivateIP/nagios

or

http://serverspublicIP/nagios

 

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.

 
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.
Avatar for Andrew Fitzgerald
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.

5 1 vote
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x