sudo crontab -u observium -r
: 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
Before deleting any files, it is crucial to back up your data if you think you might need it in the future. Once deleted, this data cannot be recovered. 1. (Optional) Back Up Your Configuration and Database
First, check if the user exists:
: To prevent users from accessing the interface during the removal, stop your web server (e.g., sudo systemctl stop apache2 2. Remove Database and Users
Observium is a powerful, auto-discovering network monitoring platform. However, there may come a time when you need to migrate to a different solution (like LibreNMS, Zabbix, or PRTG), free up system resources, or perform a clean reinstallation. Simply deleting the Observium directory is not enough. A proper uninstall involves removing the web files, databases, cron jobs, web server configuration, and the associated system user.
sudo rm /etc/cron.d/observium
For Ubuntu, remove commonly used Observium PHP modules (example for PHP 8.1/8.2):
Step 6: Clean Up Leftover Dependencies and Packages (Optional)
if you are attempting a clean re-installation? Let me know how you want to proceed! uninstall observium ubuntu
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.
Ensure the directory is gone. Running ls /opt/observium should return a "No such file or directory" error.
Apache: sudo a2dissite observium.conf followed by sudo systemctl reload apache2 sudo crontab -u observium -r : If you