Uninstall Observium Ubuntu
How to Uninstall Observium from Ubuntu: A Step-by-Step Guide
If you’ve decided to move away from Observium to another monitoring tool—or just need to clean up your Ubuntu server—you’ll quickly notice there isn’t a single "uninstall" button. Because Observium is usually installed manually into a directory like /opt/observium
, removing it involves a few manual steps to clean up the files, the database, and the background services.
Here is a clean, safe way to completely remove Observium while keeping the rest of your server intact. 1. Stop the Background Services
Before deleting files, you need to stop the automated tasks and services that keep Observium running. Remove Cron Jobs:
Observium uses cron for polling and discovery. Open the crontab and remove any lines pointing to /opt/observium sudo nano /etc/cron.d/observium # (If it's a file, just delete the file) sudo rm /etc/cron.d/observium Use code with caution. Copied to clipboard Disable the Systemd Service:
If you are using the SNMP trap or other persistent services:
sudo systemctl stop observium sudo systemctl disable observium Use code with caution. Copied to clipboard 2. Drop the Database
All your monitoring data, device history, and user accounts are stored in MySQL (MariaDB). You’ll want to drop the database to free up space. Log in to MySQL: sudo mysql -u root -p Use code with caution. Copied to clipboard List databases to find the correct name (usually DATABASES; Use code with caution. Copied to clipboard Drop the database: observium; EXIT; Use code with caution. Copied to clipboard 3. Remove the Web Server Configuration
Observium likely has a virtual host file in Apache or Nginx. You should remove this to prevent errors when restarting your web server. For Apache:
sudo a2dissite observium.conf sudo rm /etc/apache2/sites-available/observium.conf sudo systemctl reload apache2 Use code with caution. Copied to clipboard For Nginx:
sudo rm /etc/nginx/sites-enabled/observium sudo rm /etc/nginx/sites-available/observium sudo systemctl reload nginx Use code with caution. Copied to clipboard 4. Delete the Application Files By default, Observium lives in /opt/observium
. This folder contains the PHP code, logs, and RRD files (the actual graph data).
This will permanently delete all your historical graph data. sudo rm -rf /opt/observium Use code with caution. Copied to clipboard 5. Cleanup the User (Optional)
If you created a specific system user for Observium during installation, you can remove it now: sudo deluser observium sudo delgroup observium Use code with caution. Copied to clipboard 6. Do You Need to Remove Dependencies? Observium requires several packages to run, such as mariadb-server If you are switching to another monitoring tool (like
remove these packages. Most network monitoring tools rely on the same stack. If you want a totally clean slate, you can use
, but be careful not to remove packages that other apps might need. Further Exploration Check out the official Observium community
for discussions on decommissioning servers and migration tips. For users looking for alternatives, the Reddit Sysadmin community uninstall observium ubuntu
provides a modern comparison of tools like Zabbix and LibreNMS. Review the Ubuntu documentation on package management
for general advice on keeping your system clean after manual uninstalls. Are you planning to migrate your data to another monitoring platform, or are you looking for alternative lightweight tools for your Ubuntu setup?
How to Completely Uninstall Observium from Ubuntu Whether you are migrating to a different monitoring solution or simply cleaning up your server, uninstalling Observium requires more than just removing a few files. Because Observium relies on a stack of dependencies—including a web server, a database, and several PHP modules—a proper cleanup ensures no orphan processes or security holes are left behind.
This guide will walk you through the process of stopping the services, removing the application files, and dropping the associated databases. Step 1: Stop the Observium Cron Jobs
Observium relies heavily on cron jobs for polling and discovery. If you don't disable these first, the system will continue trying to run scripts that you are about to delete, leading to a flood of local error logs. Open the cron configuration: sudo nano /etc/cron.d/observium Use code with caution.
If the file exists, delete its contents or simply remove the file entirely: sudo rm /etc/cron.d/observium Use code with caution. Step 2: Remove the Web Server Configuration
You likely have an Apache or Nginx virtual host pointing to your Observium directory. You should disable and remove this to prevent the web server from throwing errors. For Apache: Disable the site: sudo a2dissite observium.conf Use code with caution. Restart Apache: sudo systemctl restart apache2 Use code with caution. Delete the configuration file: sudo rm /etc/apache2/sites-available/observium.conf Use code with caution. For Nginx: Remove the symbolic link: sudo rm /etc/nginx/sites-enabled/observium Use code with caution. Restart Nginx: sudo systemctl restart nginx Use code with caution. Remove the site config: sudo rm /etc/nginx/sites-available/observium Use code with caution. Step 3: Drop the MySQL/MariaDB Database
Observium stores all your historical data and device information in a database. To remove it: Log into your database server: sudo mysql -u root -p Use code with caution. Identify the database name (usually observium) and drop it: DROP DATABASE observium; Use code with caution.
(Optional) Remove the specific database user created for Observium: DROP USER 'observium'@'localhost'; FLUSH PRIVILEGES; EXIT; Use code with caution. Step 4: Delete the Observium Files
Now that the services are disconnected, you can remove the actual application directory. By default, Observium is installed in /opt/observium. sudo rm -rf /opt/observium Use code with caution.
Warning: This command is permanent. Ensure you have backed up any custom templates or configurations if you plan to use them elsewhere. Step 5: Clean Up Dependencies (Optional)
If Observium was the only application on this server using certain packages (like SNMP tools or specific PHP modules), you might want to remove them to save space.
Note: Be careful with this step if you have other websites or tools running on the same Ubuntu instance.
sudo apt-get purge snmp snmpd fping ImageMagick sudo apt-get autoremove Use code with caution. Step 6: Verify Removal
Finally, check that no Observium-related processes are still running: ps aux | grep observium Use code with caution.
If the output is empty (aside from your grep command), the uninstallation is successful. Summary Checklist Cron jobs deleted Apache/Nginx virtual host removed MySQL database and user dropped /opt/observium directory deleted Unused packages purged
Are you planning to replace Observium with another monitoring tool like LibreNMS or Zabbix, or are you decommissioning the server entirely? How to Uninstall Observium from Ubuntu: A Step-by-Step
Moving On: How to Completely Uninstall Observium from Ubuntu
Observium is a fantastic low-maintenance auto-discovering network monitoring platform, but sometimes your infrastructure needs change. Whether you are migrating to another tool like Zabbix or LibreNMS or simply cleaning up an old server, uninstalling it isn't as simple as a single command. Because Observium is often installed manually via a web stack (Apache/PHP/MySQL), you have to dismantle several layers to ensure a clean removal.
Here is your step-by-step guide to purging Observium and its data from your Ubuntu system. 1. Back Up Your Data (Optional)
Before you start deleting, decide if you need your historical monitoring data. If so, back up the RRD files and the database.
Database: mysqldump -u root -p observium > observium_backup.sql RRD Files: These are located in /opt/observium/rrd. 2. Stop the Cron Jobs
Observium relies heavily on cron jobs for discovery and polling. If you don't stop these first, the system will continue trying to run scripts that you are about to delete, filling your logs with errors. Open the cron file: sudo nano /etc/cron.d/observium
Alternatively, if they were added to the system crontab: sudo crontab -e
Delete or comment out all lines related to discovery.php and poller.php. 3. Remove the Web Configuration
Since Observium usually runs through Apache or Nginx, you need to remove the virtual host configuration. For Apache:
Identify the config file (usually /etc/apache2/sites-available/observium.conf). Disable the site: sudo a2dissite observium.conf
Remove the file: sudo rm /etc/apache2/sites-available/observium.conf Restart Apache: sudo systemctl restart apache2 4. Drop the Database
Observium stores its configuration and device metadata in a MySQL/MariaDB database. You should remove the database and the associated user to free up resources. Log into MySQL: sudo mysql -u root -p Run the following commands:
DROP DATABASE observium; DROP USER 'observium'@'localhost'; FLUSH PRIVILEGES; EXIT; Use code with caution. Copied to clipboard 5. Delete the Application Files
The default installation directory for Observium is /opt/observium. Deleting this folder will remove the PHP files, the RRD data (graphs), and any logs stored there. Run: sudo rm -rf /opt/observium 6. Clean Up Dependencies (Cautiously)
If you installed a specific PHP version or extra packages solely for Observium, you can remove them using the APT package manager.
Use sudo apt-get purge for specific tools like fping, snmp, or rrdtool if no other applications are using them.
Run sudo apt autoremove to clear out any orphaned dependencies that are no longer needed by the system. Conclusion Administrative access : You need to have administrative
Your Ubuntu system is now clean of Observium. If you are looking for a replacement, many users transition to LibreNMS—which is a fork of Observium—as it offers a similar feel with a more community-driven, open-source model.
Uninstall Observium on Ubuntu: A Step-by-Step Guide
Observium is a popular network monitoring and management platform that provides a comprehensive overview of network infrastructure. While it is a powerful tool, there may be instances where you need to uninstall it from your Ubuntu system. This could be due to various reasons such as upgrading to a newer version, switching to a different monitoring tool, or simply removing unused software.
In this article, we will walk you through the process of uninstalling Observium on Ubuntu. We will cover the steps for both the Community and Enterprise editions of Observium.
Before You Begin
Before you start the uninstallation process, make sure you have the following:
- Administrative access: You need to have administrative privileges to uninstall Observium.
- Ubuntu version: This guide is applicable to Ubuntu 18.04, 20.04, and later versions.
- Observium version: This guide covers Observium Community and Enterprise editions.
Method 1: Uninstall Observium using the Package Manager
Observium can be installed using the package manager on Ubuntu. To uninstall it, you can use the same package manager.
Step 2: Disable and Remove Systemd Timers (If Used)
If you want a permanent removal, disable and remove the timer units so they don’t resurrect after a reboot.
sudo systemctl disable observium_discovery.timer observium_poller.timer
sudo systemctl disable observium_discovery.service observium_poller.service
Step 3: Remove Database
"Database observium doesn’t exist" when dropping
That’s fine. Just move to the next step.
Example commands (consolidated)
Replace paths, PHP versions, and names to match your install.
sudo systemctl stop observium
sudo systemctl disable observium
sudo systemctl stop apache2 php7.4-fpm
sudo tar -czf ~/observium-config-backup-$(date +%F).tgz /opt/observium/config.php /opt/observium/rrd /opt/observium/logs
sudo mysqldump -u root -p observium > ~/observium-db-backup-$(date +%F).sql
sudo rm -rf /opt/observium /var/www/observium /var/log/observium
sudo mysql -u root -p -e "DROP DATABASE IF EXISTS observium; DROP USER IF EXISTS 'observium'@'localhost'; FLUSH PRIVILEGES;"
sudo rm /etc/apache2/sites-available/observium.conf /etc/apache2/sites-enabled/observium.conf
sudo a2dissite observium.conf || true
sudo systemctl reload apache2
sudo rm /etc/php/7.4/fpm/pool.d/observium.conf
sudo systemctl restart php7.4-fpm
sudo rm /etc/cron.d/observium
sudo userdel -r observium || true
sudo find / -iname 'observium' -maxdepth 4
Prerequisites
- Root or sudo access to your Ubuntu server
- The path where Observium was installed (default:
/opt/observium)
- Database credentials (stored in
config.php)
Conclusion
You have now successfully uninstalled Observium from your Ubuntu server. You have removed the cron jobs, deleted the installation files, dropped the database, and cleaned up the web server configuration. Your system is now clean and ready for a fresh installation of another monitoring tool or a clean slate for a new project.