1. Disable the IDO MySQL Feature
First, it’s a good practice to disable the feature before deleting any configuration files associated with it. You can disable the IDO MySQL feature by running:
sudo icinga2 feature disable ido-mysqlsudo systemctl stop icinga2sudo rm /etc/icinga2/features-available/ido-mysql.confsudo apt-get purge icinga2-ido-mysql # This removes the package and its configuration filessudo apt-get purge icinga2-ido-mysqlsudo apt-get cleansudo apt-get autoremove
This command disables the IDO MySQL module, stopping Icinga2 from attempting to use it for database output.
2. Restart Icinga2
After disabling the feature, you should restart Icinga2 to apply the changes:
sudo systemctl restart icinga2
3. Remove the Configuration File
Once the feature is disabled and the service is restarted, you can safely remove the configuration file. By default, the IDO MySQL configuration file is located at /etc/icinga2/features-available/ido-mysql.conf. To remove it:
sudo rm /etc/icinga2/features-available/ido-mysql.conf
4. Check for Any Remaining Dependencies
If you’ve customized your Icinga2 installation, check for any other scripts, cron jobs, or configuration snippets that might depend on the IDO MySQL configuration.
5. Optional: Clean Up Database and User
If you are sure that you won’t be using IDO MySQL again and want to clean up the MySQL database and user created for Icinga2, you can do so using the MySQL command line:
/opt/lampp/bin/mysql -u root -p
Then run:
DROP DATABASE icinga2;DROP USER 'icinga'@'localhost';
Replace 'icinga'@'localhost' with the actual user and host if different.
6. Verify the Service Status
After making these changes, ensure that Icinga2 is still functioning correctly:
sudo systemctl status icinga2
7. Backup Considerations
If you might need to revert these changes later, consider backing up the configuration file instead of deleting it:
sudo cp /etc/icinga2/features-available/ido-mysql.conf /etc/icinga2/features-available/ido-mysql.conf.backup
This step allows you to retain the original configuration settings which can be restored easily if required.
I’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked at Cotocus and regularly write about technology, travel, investing, health, product reviews, and digital marketing through my various platforms.
I publish technical articles at DevOps School, travel stories at Holiday Landmark, stock market insights at Stocks Mantra, health and fitness guidance at My Medic Plus, product reviews at TrueReviewNow, and SEO and digital marketing strategies at Wizbrand.
Find Trusted Cardiac Hospitals
Compare heart hospitals by city and services — all in one place.
Explore Hospitals