Manually Remove Telegraf Agents from Endpoints
search cancel

Manually Remove Telegraf Agents from Endpoints

book

Article ID: 384995

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

These instructions will assist with the manual removal of the Telegraf Agent from endpoints without access to the Aria Operations Environment. 

Environment

Aria Operations 8.x

Resolution

For Linux:

  • Open an SSH session and login as root
  • To stop services, run the following commands:
    • systemctl stop ucp-minion
    • systemctl stop ucp-salt-minion
    • systemctl stop ucp-telegraf
  • To unregister the services: 
    • systemctl disable ucp-minion
    • systemctl disable ucp-salt-minion
    • systemctl disable ucp-telegraf
  • To remove the services:  
    • rm /etc/systemd/system/ucp-minion.service
    • rm /etc/systemd/system/ucp-salt-minion.service
    • rm /etc/systemd/system/ucp-telegraf.service
  • Restart systemd: 
    • systemctl daemon-reload
  • Once the services are stopped and removed, delete binaries
    • rm -r /opt/vmware/ucp

For Windows:

  • Open an elevated PowerShell prompt with Administrator rights
  • To stop services, run the following commands:
    • SC STOP ucp-minion
    • SC STOP ucp-salt-minion
    • SC STOP ucp-telegraf
  • To Remove the services: 
    • SC DELETE ucp-minion
    • SC DELETE ucp-salt-minion
    • SC DELETE ucp-telegraf
  • Once the services are stopped and removed, delete binaries from folder C:\VMware\UCP (Force delete the folder itself)