Whatever the reason, uninstalling Observium isn't as simple as running a single apt-get remove command. Because Observium relies on a LAMP stack (Linux, Apache, MySQL/MariaDB, and PHP) and has specific cron jobs and configuration files, a complete uninstallation requires a few manual steps.
sudo rm /etc/nginx/sites-available/observium sudo rm /etc/nginx/sites-enabled/observium Use code with caution. Restart Nginx to apply the changes: sudo systemctl restart nginx Use code with caution. Step 4: Delete Observium Directories and Files
sudo nginx -t sudo systemctl reload nginx
Run df -h to verify that the storage space previously occupied by the /opt/observium/rrd directory has been successfully reclaimed. Your Ubuntu system is now completely free of Observium! uninstall observium ubuntu
sudo systemctl restart apache2
sudo rm /etc/cron.d/observium sudo userdel -r observium || true sudo find / -iname ' observium ' -maxdepth 4
If Observium was the only application on this server, you may want to remove the packages it installed (like PHP modules or FPN). However, : only do this if no other services on your Ubuntu machine require them. Whatever the reason, uninstalling Observium isn't as simple
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:
Next, delete the dedicated database user created during installation. Replace 'observium' with your actual Observium DB username if you customized it: 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 4: Delete the Observium Installation Files
id observium
Run the following SQL commands to drop the database and the user (replace observium with your actual database name if you changed it during installation):
He watched the directories scroll by: rrd/ , logs/ , includes/ , html/ . All those custom alerts he’d written. All those graphs he’d tweaked. All gone.
The default installation path is /opt/observium . This guide assumes that location. If you installed it elsewhere (e.g., /var/www/html/observium ), adjust the paths accordingly. Restart Nginx to apply the changes: sudo systemctl