Uninstall Observium Ubuntu [better]

If an observium user was created during installation, remove it along with the observium group:

sudo apt --purge autoremove sudo apt autoclean

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.

sudo systemctl stop apache2 mysql snmpd; sudo rm -rf /opt/observium /var/log/observium /etc/cron.d/observium; sudo mysql -u root -p -e "DROP DATABASE IF EXISTS observium; DROP USER IF EXISTS 'observium'@'localhost';"; sudo a2dissite observium.conf; sudo rm -f /etc/apache2/sites-available/observium.conf; sudo systemctl restart apache2; sudo apt-get autoremove --purge -y uninstall observium ubuntu

First, disable the virtual host if it's still active:

sudo systemctl stop observium sudo systemctl disable observium sudo systemctl stop apache2 php7.4-fpm

Scroll through the file, delete any lines referencing /opt/observium/ , save the file, and exit the editor. Step 2: Remove the Web Server Configuration If an observium user was created during installation,

sudo mysql -u root -p

This public link is valid for 7 days and shares a thread, including any personal information you added. This link or copies made by others cannot be deleted. If you share with third parties, their policies apply. Can’t copy the link right now. Try again later.

sudo userdel observium

Nginx: Remove the symlink in /etc/nginx/sites-enabled/ and reload.

Warning: Double-check the path before hitting Enter. The rm -rf command deletes files permanently without a confirmation prompt. Step 5: Clean Up System Packages and Dependencies

sudo apt-get purge net-snmp net-snmp-utils rrdtool graphviz sudo apt-get autoremove --purge Use code with caution. Step 2: Remove the Web Server Configuration sudo

quit