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 relies on scheduled tasks (cron) to poll devices. These must be removed first to prevent background scripts from running during deletion. Remove Cron File : Delete the dedicated cron configuration, usually located at /etc/cron.d/observium Stop Web Server : If you no longer need Apache or Nginx, you can stop the service (e.g., sudo systemctl stop apache2 Step 2: Delete Installation Directory The default installation path for Observium is typically /opt/observium . 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 You must manually remove the database and the dedicated user account created during setup. Log into your database: sudo mysql -u root -p Identify the database name (default is usually Execute the following SQL commands: DROP DATABASE observium; DROP USER 'observium'@'localhost'; FLUSH PRIVILEGES; Step 4: Cleanup Web Server Configuration If you created a specific virtual host for Observium, you should remove it: : Disable the site and delete the config file: sudo a2dissite observium.conf sudo rm /etc/apache2/sites-available/observium.conf sudo systemctl restart apache2 Step 5: (Optional) Remove Dependencies If Observium was the only application using certain prerequisites (like PHP modules or SNMP utilities), you can remove them using . However, exercise caution as other system services may rely on these: sudo apt autoremove --purge (This will remove unused dependencies and their configuration files). Ask Ubuntu web server packages are safe to remove from your specific Ubuntu version? Install Observium on Debian/Ubuntu
How to Completely Uninstall Observium from Ubuntu Observium is a powerful network monitoring platform, but if you are migrating to a different tool (like LibreNMS or Zabbix) or simply cleaning up a server, you will need to remove it manually. Because Observium is typically installed manually (not via apt ), there is no single "uninstall" command. Here is the step-by-step process to completely remove Observium from an Ubuntu server. Prerequisites
Backups: Before proceeding, ensure you have backed up your RRD data and configuration if you plan to move to a new server. Root Access: You will need sudo or root privileges.
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. # Stop Apache (or Nginx if you used that) sudo systemctl stop apache2 sudo systemctl disable apache2 uninstall observium ubuntu
# Stop the Observium poller service (if configured as a systemd service) sudo systemctl stop observium sudo systemctl disable observium
Step 2: Remove the Observium Installation Directory By default, Observium is installed in /opt/observium . Removing this directory deletes the application logic and your collected RRD data. sudo rm -rf /opt/observium
Note: If you customized your RRD or log directories to different locations during installation, ensure you remove those manually as well. 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. To uninstall from Ubuntu, you must manually delete
Log in to the database server: sudo mysql -u root -p
Run the following SQL commands (replace observium if 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. For Apache: # Remove the config file sudo rm /etc/apache2/sites-available/observium.conf Remove Cron File : Delete the dedicated cron
# 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