Uninstall Observium Ubuntu -
Delete the configuration file from the available sites directory: sudo rm -f /etc/apache2/sites-available/observium.conf Use code with caution. Restart Apache to apply the changes: sudo systemctl restart apache2 Use code with caution. For Nginx Users: Remove the symbolic link from the enabled sites directory: sudo rm -f /etc/nginx/sites-enabled/observium.conf Use code with caution. Delete the actual configuration file: sudo rm -f /etc/nginx/sites-available/observium.conf Use code with caution. Restart Nginx to apply the changes: sudo systemctl restart nginx Use code with caution. Step 3: Drop the Observium MySQL/MariaDB Database
First, prevent Observium from running any more discovery or polling tasks. Remove Cron Jobs: Delete the Observium cron file usually located at /etc/cron.d/observium Stop the Web Server:
sudo rm -rf /var/lib/observium/rrd
DROP DATABASE IF EXISTS observium; DROP USER IF EXISTS 'observium'@'localhost'; DROP USER IF EXISTS 'observium'@'127.0.0.1'; FLUSH PRIVILEGES; EXIT; uninstall observium ubuntu
: sudo rm /etc/nginx/sites-available/observium.conf and then sudo systemctl reload nginx . 5. Optional: Remove Dependencies
Open the cron file for the observium user (often observium or root depending on your setup):
Remove the virtual host file created for the Observium web interface. sudo rm /etc/apache2/sites-available/observium.conf sudo rm /etc/nginx/sites-available/observium.conf Restart your web server to apply changes: sudo systemctl restart apache2 linuxhostsupport.com 5. (Optional) Remove Dependencies Delete the configuration file from the available sites
This command will remove the Observium packages, configuration files, and dependencies.
sudo rm /etc/nginx/sites-enabled/observium 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
You need to remove the database and the dedicated user created during setup. Stack Overflow Log in to your database: sudo mysql -u root -p Drop the database: DROP DATABASE observium; Remove the user: DROP USER 'observium'@'localhost'; Exit the prompt: Stack Overflow 4. Cleanup Web Server Configurations Delete the actual configuration file: sudo rm -f
Follow this step-by-step guide to cleanly and safely delete Observium from your Ubuntu system. Step 1: Stop and Disable Observium Services
for discussions on decommissioning servers and migration tips. For users looking for alternatives, the Reddit Sysadmin community
The web interface configuration files are stored in the /etc/observium directory. You can remove this directory by running the following command:
Do you also want to remove the installed with it, like Apache, PHP, or MySQL?