For those who don’t know about Nagios, it’s software that is used to monitor networks, hardware, servers, and other devices connected to a network. A complete enterprise-grade network, server, and log monitoring system. This post will show you how to perform a basic configuration after installation. You’ll also be able to log on to the Nagios server once installed. For more about Nagios, please visit its homepage. When you’re ready, continue below with the steps:

Install Apache2

Before installing Nagios server packages, make sure the Apache2 HTTP server is installed. to do that on Ubuntu run the commands below.

Install PHP Packages

Nagios server also requires that PHP and related modules be installed. If you don’t have these already, it will automatically install them when you run the commands to install Nagios. The commands below install PHP and related packages.

Install Nagios Server Packages

To get Nagios on Ubuntu systems, run the commands below. the commands also include a basic plugin to monitor the Nagios server itself. When you run the above command. you’ll be prompted to create a password for nagiosadmin account. Create one a continue

Configure Nagios Server

Now that the Nagios server is installed, run the commands below to open its default configuration file. Then make the highlighted changes below and save the file. Next, run the commands below to open Nagios Apache2 config file. Then limit access from the localhost and local subnet only. Save the file and continue below. Next, run the commands below to adjust the Nagios folder permissions. After that restart Nagios2 and Apache2 Finally, open your browser and browse to the server hostname or IP address, and log on to the Nagios server. with username: nagiosadmin and the password you created above. That’s it! You may also like the post below: