How to Install Nagios XI on Ubuntu 22.04

Nagios XI is a powerful monitoring tool used to monitor IT infrastructure and ensure the smooth operation of networks, servers, applications, and services.

In this guide, we’ll walk you through the steps to install Nagios XI on Ubuntu 22.04, making monitoring your systems easier and more efficient.

Prerequisites

Before you begin the installation process, make sure you have:

  • An instance of Ubuntu 22.04 LTS (or later) is installed and accessible with root or sudo privileges.
  • A minimum of 4GB RAM and 20GB of disk space.
  • Basic knowledge of Linux command-line interface.
TecMint Weekly Newsletter
Get the Learn Linux 7 Days Crash Course free when you join 34,000+ Linux professionals reading every Thursday.
Check your email for a magic link to get started.
Something went wrong. Please try again.

Step 1: Install Required Dependencies

It’s essential to start by updating the system packages to ensure that you have the latest versions and security patches installed.

sudo apt update
sudo apt upgrade

Next, we need to install several dependencies that are necessary for Nagios XI to run smoothly.

sudo apt install apache2 php mysql-server php-mysql libapache2-mod-php php-gd php-ldap php-pear php-xml php-soap php-intl php-json php-mbstring php-cli php-curl
Install Dependencies for Nagiox XI
Install Dependencies for Nagiox XI

After installing the required dependencies, you need to secure your MySQL using a script called mysql_secure_installation that helps you secure your installation.

sudo mysql_secure_installation

Follow the prompts to configure the security options such set a root password, removing anonymous users, disallowing remote root login, and removing the test database. Answer ‘Y' for yes or ‘N' for no as per your preference.

Step 2: Download Nagios XI

Next, download the Nagios XI installation script from the official Nagios website or you can use the wget command to download the script directly to your server.

wget https://assets.nagios.com/downloads/nagiosxi/install.sh

Once the download is complete, you need to make the script executable and run it with root privileges.

chmod +x install.sh
sudo ./install.sh

The installation script will guide you through the installation process, prompting you to provide necessary information such as the MySQL root password, Nagios XI administrator password, and other configuration details.

Nagios XI Installation Progress
Nagios XI Installation Progress

Step 3: Access Nagios XI Web Interface

Once the installation is complete, you can access the Nagios XI web interface by opening a web browser and navigating to the following url.

http://your-server-ip/nagiosxi/
Nagios XI Settings
Nagios XI Settings
Nagios XI Admin Settings
Nagios XI Admin Settings

Log in with the username “nagiosadmin” and the password you created during setup.

Nagios XI Login
Nagios XI Login

After logging in, you’ll need to perform some initial configuration tasks such as adding hosts, services, and configuring alerts. The Nagios XI web interface provides a user-friendly interface to perform these tasks.

Nagios XI Dashboard
Nagios XI Dashboard

With Nagios XI successfully installed and configured, you can now start monitoring your infrastructure. Add hosts and services to monitor, configure notification preferences, and customize dashboards according to your requirements.

Conclusion

In this guide, we’ve walked you through the process of installing Nagios XI on Ubuntu 22.04. By following these steps, you can set up a powerful monitoring solution to keep track of your infrastructure’s health and performance.

Nagios XI offers a wide range of features and capabilities to help you effectively manage your IT environment and ensure maximum uptime for your critical systems.

If this article helped, with someone on your team.

TecMint Weekly Newsletter
Get the Learn Linux 7 Days Crash Course free when you join 34,000+ Linux professionals reading every Thursday.
Check your email for a magic link to get started.
Something went wrong. Please try again.
TecMint has been free for 14 years. Help keep it that way.
Google AI Overviews and tools like ChatGPT have cut into search traffic for independent tech sites like TecMint. Running this site costs over $2,000 every month for hosting, infrastructure, and paying authors to keep the content accurate and tested.

If this article helped you solve a problem, consider buying a coffee. It helps keep TecMint free, supports the authors, and keeps the project going.
☕ Buy Me a Coffee
Ravi Saive
I'm Ravi Saive, an award-winning entrepreneur and founder of several successful 5-figure online businesses, including TecMint.com, GeeksMint.com, UbuntuMint.com, and the premium learning hub Pro.Tecmint.com.

Each tutorial at TecMint is created by a team of experienced Linux system administrators so that it meets our high-quality standards.

Got Something to Say? Join the Discussion...

Thank you for taking the time to share your thoughts with us. We appreciate your decision to leave a comment and value your contribution to the discussion. It's important to note that we moderate all comments in accordance with our comment policy to ensure a respectful and constructive conversation.

Rest assured that your email address will remain private and will not be published or shared with anyone. We prioritize the privacy and security of our users.

Free Course
Get a free Linux course before you go.
Subscribe to TecMint Weekly and get the Learn Linux 7 Days Crash Course free. Read by 34,000+ Linux professionals every Thursday.
Something went wrong. Please try again.
Check your email for a magic link to get started.