Uninstall Observium Ubuntu File

Observium usually requires specific Apache configuration changes or a VirtualHost file. You should remove the specific configuration to prevent Apache from trying to load a non-existent site.

If you created a specific site configuration file (e.g., observium.conf in /etc/apache2/sites-available/):


As with the package manager method, stop the Observium services:

sudo service observium-CollectD stop
sudo service observium-Poller stop
sudo service observium-Apache stop

Follow these steps to fully remove Observium and its related components from an Ubuntu system. Adjust service names, database names, paths, and usernames to match your installation. uninstall observium ubuntu

That’s fine. Just move to the next step.

  • Clean unused packages and cache:
  • Replace paths, PHP versions, and names to match your install.

    sudo systemctl stop observium sudo systemctl disable observium sudo systemctl stop apache2 php7.4-fpm As with the package manager method, stop the

    sudo tar -czf ~/observium-config-backup-$(date +%F).tgz /opt/observium/config.php /opt/observium/rrd /opt/observium/logs sudo mysqldump -u root -p observium > ~/observium-db-backup-$(date +%F).sql

    sudo rm -rf /opt/observium /var/www/observium /var/log/observium sudo mysql -u root -p -e "DROP DATABASE IF EXISTS observium; DROP USER IF EXISTS 'observium'@'localhost'; FLUSH PRIVILEGES;" sudo rm /etc/apache2/sites-available/observium.conf /etc/apache2/sites-enabled/observium.conf sudo a2dissite observium.conf || true sudo systemctl reload apache2

    sudo rm /etc/php/7.4/fpm/pool.d/observium.conf sudo systemctl restart php7.4-fpm Follow these steps to fully remove Observium and

    sudo rm /etc/cron.d/observium sudo userdel -r observium || true sudo find / -iname 'observium' -maxdepth 4

    Stop the Observium service, remove Observium files (usually /opt/observium or /usr/local/observium), drop the observium MySQL/MariaDB database and user, remove webserver virtual host and PHP config, delete cron jobs and monitoring users, and optionally remove RRDtool/Graphing data and dependencies.