FedoraRHEL Based

How To Install Icinga on Fedora 38

Install Icinga on Fedora 38

In this tutorial, we will show you how to install Icinga on Fedora 38. Icinga, a powerful open-source monitoring solution, offers a robust platform to ensure the stability and performance of your IT infrastructure.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo‘ to the commands to get root privileges. I will show you the step-by-step installation of the Icinga on a Fedora 38.


  • A server running one of the following operating systems: Fedora 38.
  • It’s recommended that you use a fresh OS install to prevent any potential issues.
  • SSH access to the server (or just open Terminal if you’re on a desktop).
  • An active internet connection. You’ll need an internet connection to download the necessary packages and dependencies for Icinga.
  • A non-root sudo user or access to the root user. We recommend acting as a non-root sudo user, however, as you can harm your system if you’re not careful when acting as the root.

Install Icinga on Fedora 38

Step 1. Before we can install Icinga on Fedora 38, it’s important to ensure that our system is up-to-date with the latest packages. This will ensure that we have access to the latest features and bug fixes and that we can install Icinga without any issues:

sudo dnf update

Step 2. Installing Necessary Packages.

Icinga’s web interface relies on the Apache web server and PHP. Install these packages by running the following commands:

sudo dnf install httpd
sudo dnf install php php-cli php-xml php-json php-mbstring

Step 3. Installing Icinga on Fedora 38.

Icinga 2 is the core monitoring engine, while Icinga Web 2 provides the web-based front end. Install both of them with the following command:

sudo dnf install icinga2 icinga2-ido-mysql icingaweb2
Step 4. Configure the Database.
To store configuration and monitoring data, Icinga relies on a database. MariaDB is a suitable choice. Install it using the following command:
sudo dnf install mariadb-server
To secure your MariaDB installation, use the MySQL secure installation script:
sudo mysql_secure_installation
Next, create a database for Icinga by running these commands:
mysql -u root -p
You will be prompted to enter your MariaDB root password:
GRANT ALL PRIVILEGES ON icinga.* TO 'icinga'@'localhost' IDENTIFIED BY 'icinga_password';
Step 5. Configure Icinga 2.
Open the configuration file for Icinga 2:
sudo nano /etc/icinga2/features-available/api.conf
Find the following lines and enable the API feature:
object ApiListener "api" {
accept_config = true
accept_commands = true
Save the file, then enable the Icinga 2 service to start on boot and then start it:
sudo systemctl enable icinga2
sudo systemctl start icinga2
Step 6. Configure Icinga Web 2.
Use the setup script to configure the IDO database:
sudo icingacli setup config webserver apache
Create an Icinga Web 2 administrator account and enable the web interface:
sudo icingacli setup config webserver
Step 7. Configure SELinux and Firewall.
Modify SELinux settings to allow Icinga 2 and Icinga Web 2 to function correctly:
sudo setsebool -P httpd_can_connect_icinga 1
Open the required ports on your firewall:
sudo firewall-cmd --add-service=http
sudo firewall-cmd --add-service=https
sudo firewall-cmd --add-port=5665/tcp
sudo firewall-cmd --runtime-to-permanent
Step 8. Access Icinga Web 2.
With the setup complete, access the Icinga Web 2 interface by opening a web browser and navigating to:
Log in with the administrator credentials you created earlier.
Install Icinga on Fedora 38
Congratulations! You have successfully installed Icinga. Thanks for using this tutorial for installing Icinga on your Fedora 38 system. For additional help or useful information, we recommend you check the official Icinga website.

VPS Manage Service Offer
If you don’t have time to do all of this stuff, or if this is not your area of expertise, we offer a service to do “VPS Manage Service Offer”, starting from $10 (Paypal payment). Please contact us to get the best deal!


r00t is a seasoned Linux system administrator with a wealth of experience in the field. Known for his contributions to idroot.us, r00t has authored numerous tutorials and guides, helping users navigate the complexities of Linux systems. His expertise spans across various Linux distributions, including Ubuntu, CentOS, and Debian. r00t's work is characterized by his ability to simplify complex concepts, making Linux more accessible to users of all skill levels. His dedication to the Linux community and his commitment to sharing knowledge makes him a respected figure in the field.
Back to top button