Uninstall Observium Ubuntu _best_ -
How to Completely Uninstall Observium from Ubuntu: A Step-by-Step Guide
Observium is a powerful network monitoring platform, but there may come a time when you need to remove it entirely — perhaps migrating to LibreNMS, Prometheus, or simply reclaiming resources. Because Observium isn’t installed from standard Ubuntu repositories, a simple apt remove won’t suffice. This guide walks through a complete manual removal, including the web interface, database, RRD files, and cron jobs.
Step 3: Remove the Database
Observium uses a MySQL or MariaDB database. You should drop the database to free up space and remove old credentials.
-
Log in to the database server:
sudo mysql -u root -p -
Run the following SQL commands (replace
observiumif you named your database differently):DROP DATABASE observium; DROP USER 'observium'@'localhost'; FLUSH PRIVILEGES; EXIT;
Step 4: Remove Web Server Configuration
You need to remove the VirtualHost configuration so the web server stops trying to load the deleted directory. uninstall observium ubuntu
For Apache:
# Remove the config file
sudo rm /etc/apache2/sites-available/observium.conf
# If you created a symbolic link in sites-enabled, remove it:
sudo rm /etc/apache2/sites-enabled/observium.conf
# Restart Apache to apply changes
sudo systemctl restart apache2
For Nginx:
sudo rm /etc/nginx/sites-available/observium.conf
sudo rm /etc/nginx/sites-enabled/observium.conf
sudo systemctl restart nginx
Step 8: Remove Observium User and Group
Observium often runs under www-data, but some setups create a dedicated observium user. If present:
sudo userdel observium
sudo groupdel observium
Step 1: Stop and Disable Services
First, stop the web server and the poller services to prevent data corruption or processes interfering with the removal. How to Completely Uninstall Observium from Ubuntu: A
# Stop Apache (or Nginx if you used that)
sudo systemctl stop apache2
sudo systemctl disable apache2
# Stop the Observium poller service (if configured as a systemd service)
sudo systemctl stop observium
sudo systemctl disable observium
Nginx (if used):
sudo rm -f /etc/nginx/sites-available/observium
sudo rm -f /etc/nginx/sites-enabled/observium
sudo systemctl reload nginx