Check if the database still exists:
Use the apt purge command with the --dry-run option to see what would be removed and confirm it's safe.
Observium is a popular network monitoring and management platform that provides a comprehensive overview of network infrastructure, including device monitoring, alerting, and reporting. While Observium is a powerful tool, there may be instances where you need to uninstall it from your Ubuntu system. This could be due to various reasons such as upgrading to a newer version, switching to a different monitoring platform, or simply removing unused software.
⚠️ The following procedure removes Observium entirely. If you only want to disable it temporarily, consider stopping its services instead. uninstall observium ubuntu
To safely remove unneeded packages and dependencies that were automatically installed, run: sudo apt-get autoremove --purge Use code with caution.
Observium uses cron jobs for discovery and polling. If these aren't removed, they will continue to try (and fail) to run scripts that no longer exist.
| Component | Removed? | |-----------|----------| | Apache virtual host | ✅ | | PHP packages (extensions) | ✅ | | /opt/observium source code | ✅ | | /opt/observium/rrd data files | ✅ | | Observium MySQL database | ✅ | | Observium MySQL user | ✅ | | /etc/cron.d/observium | ✅ | | observium system user/group | ✅ | | Unused dependencies (apt autoremove) | ✅ | Check if the database still exists: Use the
sudo crontab -e
Remove the dedicated database user created for Observium (typically named observium ): DROP USER 'observium'@'localhost'; Use code with caution. Flush privileges and exit: FLUSH PRIVILEGES; EXIT; Use code with caution. Step 4: Delete the Observium Source Files and RRD Data
How to Uninstall Observium from Ubuntu: A Complete Step-by-Step Guide This could be due to various reasons such
💡 If you only want to stop the service without deleting data, just disable the Apache site and remove the cron file. If you'd like to:
By default, Observium is installed in /opt/observium . The RRD files (Round Robin Database files) are stored in /opt/observium/rrd and can be very large, as they store historical monitoring data. The logs are in /opt/observium/logs .
sudo apt-get purge fping rrdtool subversion whois mtr-tiny ipmitool graphviz imagemagick snmp snmpd Use code with caution.