Ubuntu | Uninstall Observium

sudo mysql -u root -p -e "SHOW DATABASES;" | grep observium

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
# Stop the Observium poller service (if configured as a systemd service)
sudo systemctl stop observium
sudo systemctl disable observium

Warning: Only perform this step if this server is not hosting other websites or PHP applications. uninstall observium ubuntu

If you installed Ubuntu solely for Observium and want to strip the server down to the basics, you can remove the web server and database server.

To remove Apache:

sudo apt-get purge apache2 apache2-utils apache2-bin apache2.2-common
sudo apt-get autoremove

To remove PHP and extensions:

sudo apt-get purge php.*
sudo apt-get autoremove

To remove MariaDB/MySQL:

sudo apt-get purge mariadb-server mariadb-client
sudo apt-get autoremove

sudo rm /etc/systemd/system/observium*.service sudo rm /etc/systemd/system/observium*.timer sudo systemctl daemon-reload