Uninstall Observium Ubuntu !!top!! -
Observium stores device inventories, event logs, syslogs, and user credentials inside a MySQL or MariaDB database. We need to drop this database and delete the dedicated database user. Log into your MySQL/MariaDB terminal as root: sudo mysql -u root -p Use code with caution.
| Step | Action | Primary Commands | | :--- | :--- | :--- | | | Prepare | dpkg -l \| grep observium , grep db /opt/observium/config.php | | 1 | Core Removal | sudo apt purge observium (APT) OR sudo rm -rf /opt/observium (Manual) | | 2 | Database | Log into MySQL: DROP DATABASE observium; DROP USER 'observium'@'localhost'; | | 3 | Application Data | sudo rm -rf /opt/observium/rrd /opt/observium/logs | | 4 | Web Server Config | sudo rm -f /etc/apache2/sites-*/*observium* (or Nginx equivalent) | | 5 | Cron Jobs | sudo rm -f /etc/cron.d/observium , check crontab -l | | 6 | System User | sudo userdel -r observium | | 7 | Optional Cleanup | Use apt purge on dependencies, e.g., sudo apt purge apache2 |
To uninstall from Ubuntu, you must manually delete its installation directory, cron jobs, and database, as it is typically installed via a source archive rather than a standard package manager. Step 1: Stop Services and Remove Cron Jobs
Observium requires several system packages (like SNMP, RRDTool, and PHP modules). Unless these are no longer needed by any other application on your server, it is generally recommended to
Remove the file: sudo rm /etc/apache2/sites-available/observium.conf Restart Apache: sudo systemctl restart apache2 4. Drop the Database uninstall observium ubuntu
Remove the dedicated database and user created for Observium in MySQL or MariaDB. Log in to your database: sudo mysql -u root -p Run the following commands:
sudo systemctl stop observium-poller-wrapper sudo systemctl disable observium-poller-wrapper sudo rm /etc/systemd/system/observium-poller-wrapper.service sudo systemctl daemon-reload Use code with caution. Step 2: Drop the Observium MySQL/MariaDB Database
How to Completely Uninstall Observium from Ubuntu Observium is a powerful network monitoring platform, but you might need to remove it to free up resources, migrate to another server, or switch to an alternative tool like LibreNMS. Completely purging Observium requires removing its web files, cron jobs, database, and system dependencies.
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 | Step | Action | Primary Commands |
If you created a specific Apache virtual host configuration file for Observium, you need to delete it. Navigate to the Apache sites directory and remove it:
Because Observium integrates tightly with system services like Apache, MySQL/MariaDB, and Cron, a simple directory deletion will leave behind orphaned databases, configuration files, and system users.
Remove the dedicated Observium database user to maintain system security: DROP USER 'observium'@'localhost'; Use code with caution. Flush the privileges to apply the changes and exit: FLUSH PRIVILEGES; EXIT; Use code with caution. Step 3: Remove Web Server Configurations
Alternatively, check the full list:
provides a modern comparison of tools like Zabbix and LibreNMS. Review the Ubuntu documentation on package management
You need to remove the VirtualHost configuration so the web server stops trying to load the deleted directory.
. Use the following command to remove the entire directory and its contents (logs, RRD data, and configuration files): sudo rm -rf /opt/observium Step 3: Drop the MySQL/MariaDB Database



Post Comment