Skip to main content

Disable UniAgent

There are several ways to disable UniAgent:

  • Disable via service
  • Disable via control console
  • Disable automatic agent loading

Disable via Service

Linux

  • Enable service: sudo systemctl enable tingyun-oneagent && sudo systemctl start tingyun-oneagent
  • Disable service: sudo systemctl stop tingyun-oneagent && sudo systemctl disable tingyun-oneagent

Windows

  • Enable service: Go to Windows Service Manager, find TingYun Monitor, and click Start.
  • Disable service: Go to Windows Service Manager, find TingYun Monitor, and click Stop.

Disable via Control Console

On the UniAgent list page, toggle the switch for the target process to the off state. After disabling, UniAgent will not inject code into the process. You must restart the process for the change to take effect.

Note: Currently, disabling .NET and .NET Core applications via the UniAgents Management page is not supported. To disable, modify the blacklist.txt on the agent server.

image

To disable all processes on a host, toggle the switch for the host to the off state. After disabling, UniAgent will not inject code into any process on the host, but will still maintain a heartbeat.

image-20210609161026713

Disable Automatic Agent Loading

  • Linux: Edit /opt/tingyun-oneagent/conf/interceptor.conf and set the loading switches for each language agent to false. After saving the configuration file, the agents for each language will not be loaded. You must restart the process for the change to take effect.
  • Windows: Edit C:\Program Files\tingyun\monitor\conf\interceptor.conf and set the loading switches for each language agent to false. After saving the configuration file, the agents for each language will not be loaded. You must restart the process for the change to take effect.
# Enable PHP agent injection
# Currently in Beta
# default: false
php_enabled=false

# Enable Java agent injection
# default: true
java_enabled=false

# Enable .NET Core agent injection
# default: true
netcore_enabled=true

# Enable .NET agent injection
# default: false
dotnet_enabled=true
#--------------------