Uninstall Observium | Ubuntu
You should remove the virtual host file created for Apache or Nginx. For Apache: sudo a2dissite observium.conf sudo rm /etc/apache2/sites-available/observium.conf sudo systemctl restart apache2 For Nginx: sudo rm /etc/nginx/sites-enabled/observium.conf sudo rm /etc/nginx/sites-available/observium.conf sudo systemctl restart nginx 5. Optional: Remove the Dedicated System User If you created a specific user during setup, you can safely remove it. sudo deluser observium sudo delgroup observium 6. Cleanup Dependencies (Caution) Observium requires packages like . Only remove these if they are being used by other applications. sudo apt purge rrdtool fping snmpd snmp sudo apt autoremove If you are running Observium in a Docker container
Apply your changes and quit the database console: FLUSH PRIVILEGES; EXIT; Use code with caution. Step 4: Clean Up Logs and Data Archives
Remove the dedicated user (usually named 'observium'): DROP USER 'observium'@'localhost'; . Exit: exit . uninstall observium ubuntu
Observium is accessed via a web interface powered by either Apache or Nginx. You need to remove the virtual host configuration. For Apache Users: Disable the Observium virtual host site: sudo a2dissite observium.conf Use code with caution. Delete the configuration file: sudo rm /etc/apache2/sites-available/observium.conf Use code with caution. Reload Apache to apply the changes: sudo systemctl reload apache2 Use code with caution. For Nginx Users: Remove the symlink from the enabled sites directory: sudo rm /etc/nginx/sites-enabled/observium Use code with caution. Delete the actual virtual host configuration file: sudo rm /etc/nginx/sites-available/observium Use code with caution. Reload Nginx to apply changes: sudo systemctl reload nginx Use code with caution. Step 3: Drop the Observium MySQL/MariaDB Database
Before deleting any files, you must ensure that no background tasks (like polling scripts or scheduled updates) are running, which could lock files or cause system errors. You should remove the virtual host file created
Are you planning to with another monitoring tool like LibreNMS or Zabbix , or are you decommissioning the server entirely?
Open the system cron directory or the specific Observium cron file: sudo rm /etc/cron.d/observium Use code with caution. sudo deluser observium sudo delgroup observium 6
Follow this comprehensive, step-by-step guide to completely uninstall and purge Observium from your Ubuntu server. Step 1: Stop Background Services and Scheduled Tasks
During a standard installation, a dedicated system user named observium is often created to run the poller scripts safely without root permissions.
To completely remove Observium and its associated components, follow these steps: Install Observium on Debian/Ubuntu