bwinfr-topDisclaimer_523x60_fr_3

Observium Ubuntu __exclusive__: Uninstall

Open the system cron file where Observium jobs are typically placed: sudo nano /etc/cron.d/observium Use code with caution.

Observium uses cron jobs for automated polling and discovery. You must delete these to prevent system errors. Locate and delete the Observium cron file: sudo rm /etc/cron.d/observium . 3. Delete the Installation Directory

sudo mysql -u root -p

Log in to your database server:

You need sudo privileges to remove system services, configuration files, and database entities.

To safely remove any orphaned PHP packages or software libraries that were automatically installed for Observium but are no longer needed, run: apt-get autoremove --purge apt-get clean Use code with caution. Step 6: Verify the Uninstallation

If you want a permanent removal, disable and remove the timer units so they don’t resurrect after a reboot. uninstall observium ubuntu

Delete the observium system user and its associated system group: sudo userdel -r observium Use code with caution.

Now, remove the Observium packages using the following command:

Check for the main cron file: sudo rm /etc/cron.d/observium . Open the system cron file where Observium jobs

Remove any lines referencing /opt/observium/ and save the file. Step 2: Delete the MySQL/MariaDB Database

Once inside the MySQL prompt, drop the database (assuming it is named observium ): DROP DATABASE observium; Use code with caution.

Remove the dedicated Observium database user to maintain system security: DROP USER 'observium'@'localhost'; Use code with caution. Flush the privileges to apply the changes and exit: FLUSH PRIVILEGES; EXIT; Use code with caution. Step 3: Remove Web Server Configurations Locate and delete the Observium cron file: sudo rm /etc/cron