Observium Ubuntu | Uninstall

Remove the dedicated database user created during the installation (usually observium ): DROP USER 'observium'@'localhost'; Use code with caution. Flush privileges and exit the MySQL prompt: FLUSH PRIVILEGES; EXIT; Use code with caution. Step 4: Delete the Core Observium Files and RRD Data

sudo apt purge libapache2-mod-php* php* php-mysql php-gd php-snmp php-pear php-mbstring php-memcached

Observium may not have been installed as a standard package repository, but there are several ways to uninstall the software and its dependencies. The most common approach is to the relevant packages.

By default, Observium is installed in the /opt/observium directory. Deleting this folder removes the application code, MIBs, and RRD (historical graph) data. Run the command: sudo rm -rf /opt/observium . 4. Drop the Database and User uninstall observium ubuntu

Log in to your database server:

# Search for observium-related files (preview only) sudo find /etc -name "*observium*" sudo find /var -name "*observium*"

sudo systemctl stop apache2 sudo systemctl disable apache2 Remove the dedicated database user created during the

sudo rm -rf rrd logs

The default installation path for Observium is /opt/observium . This directory contains the PHP source files, your configuration file ( config.php ), and all historical Round Robin Database (RRD) metrics.

For Ubuntu, remove commonly used Observium PHP modules (example for PHP 8.1/8.2): The most common approach is to the relevant packages

Run df -h to verify that the storage space previously occupied by the /opt/observium/rrd directory has been successfully reclaimed. Your Ubuntu system is now completely free of Observium!

This command will remove the Observium package and its dependencies.