Observium stores all device metrics, user accounts, and historical alerts in a SQL database. You need to drop this database and remove the dedicated database user. Log into your MySQL/MariaDB server as root: sudo mysql -u root -p Use code with caution.
all lines related to discovery.php and poller.php . 3. Remove the Web Configuration
DROP DATABASE IF EXISTS observium; DROP USER IF EXISTS 'observium'@'localhost'; FLUSH PRIVILEGES; EXIT; uninstall observium ubuntu
# Remove the config file sudo rm /etc/apache2/sites-available/observium.conf
sudo rm /etc/nginx/sites-enabled/observium.conf sudo rm /etc/nginx/sites-available/observium.conf Use code with caution. Restart Nginx to apply changes: sudo systemctl restart nginx Use code with caution. Step 5: Clean Up System Users and Log Files Observium stores all device metrics, user accounts, and
Observium is a powerful, low-maintenance network monitoring platform. However, if you are migrating to a different monitoring solution or freeing up server resources, you need to remove it completely.
Your Ubuntu system is now clean of Observium. If you are looking for a replacement, many users transition to LibreNMS—which is a fork of Observium—as it offers a similar feel with a more community-driven, open-source model. all lines related to discovery
| Step | Action | Primary Commands | | :--- | :--- | :--- | | | Prepare | dpkg -l \| grep observium , grep db /opt/observium/config.php | | 1 | Core Removal | sudo apt purge observium (APT) OR sudo rm -rf /opt/observium (Manual) | | 2 | Database | Log into MySQL: DROP DATABASE observium; DROP USER 'observium'@'localhost'; | | 3 | Application Data | sudo rm -rf /opt/observium/rrd /opt/observium/logs | | 4 | Web Server Config | sudo rm -f /etc/apache2/sites-*/*observium* (or Nginx equivalent) | | 5 | Cron Jobs | sudo rm -f /etc/cron.d/observium , check crontab -l | | 6 | System User | sudo userdel -r observium | | 7 | Optional Cleanup | Use apt purge on dependencies, e.g., sudo apt purge apache2 |
Use sudo apt-get purge for specific tools like fping , snmp , or rrdtool if no other applications are using them.