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.


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.

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.


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

chmod +x
sudo ./

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.

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.


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.

Hey TecMint readers,

Exciting news! Every month, our top blog commenters will have the chance to win fantastic rewards, like free Linux eBooks such as RHCE, RHCSA, LFCS, Learn Linux, and Awk, each worth $20!

Learn more about the contest and stand a chance to win by sharing your thoughts below!

Ravi Saive
I am an experienced GNU/Linux expert and a full-stack software developer with over a decade in the field of Linux and Open Source technologies

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

Join the TecMint Weekly Newsletter (More Than 156,129 Linux Enthusiasts Have Subscribed)
Was this article helpful? Please add a comment or buy me a coffee to show your appreciation.

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.