Uninstall Observium Ubuntu Upd -
Since Observium usually runs through Apache or Nginx, you need to remove the virtual host configuration.
If Observium was the only application on this server using certain packages (like SNMP tools or specific PHP modules), you might want to remove them to save space.
sudo rm -f /etc/php/*/cli/conf.d/observium.ini sudo rm -f /etc/php/*/apache2/conf.d/observium.ini
If you configured a virtual host for Observium in Apache or Nginx, you should remove those configuration files to fully clean the system. uninstall observium ubuntu
# Stop Apache (or Nginx if you used that) sudo systemctl stop apache2 sudo systemctl disable apache2
Delete any lines referencing /opt/observium/discovery.php or /opt/observium/poller.php . Step 3: Delete the Observium Installation Directory
How to Completely Uninstall Observium from Ubuntu Whether you are migrating to a different monitoring solution or simply cleaning up your server, uninstalling Observium requires more than just removing a few files. Because Observium relies on a stack of dependencies—including a web server, a database, and several PHP modules—a proper cleanup ensures no orphan processes or security holes are left behind. Since Observium usually runs through Apache or Nginx,
Observium typically runs on Apache2 or nginx . You need to know which one you used to remove the correct virtual host configuration.
Uninstalling Observium from Ubuntu requires a manual cleanup because it is typically installed from source or a tarball into the /opt directory rather than through a standard package manager.
sudo rm -rf /var/log/observium
sudo userdel observium
He checked for leftovers. Configuration files? sudo find / -name "*observium*" -type f 2>/dev/null . A few old logrotate snippets in /etc/logrotate.d/ . He deleted those too. He checked PHP modules he’d installed specifically for Observium— php7.4-mysqlnd , php7.4-snmp . He left them for now. No need to break other things.
If you installed specific packages solely for Observium (like fping , net-snmp , or specific PHP modules) and no longer need them, you can remove them using apt . sudo apt purge fping snmp snmpd sudo apt autoremove --purge Use code with caution. Copied to clipboard # Stop Apache (or Nginx if you used
Note: If you customized your RRD or log directories to different locations during installation, ensure you remove those manually as well.
Drop the Observium database (replace observium with your actual database name if you customized it during setup): DROP DATABASE observium; Use code with caution.


