Enable/Disable
UniAgent Deployment Mode
Currently, disabling/enabling the Agent via the UniAgent deployment interface is not supported. If you need to disable the Agent, please configure the process blacklist.
- Windows OS
Modify the process blacklist at C:\Program Files\tingyun\monitor\conf\blacklist.txt.
For example, to disable the netcore application named app3, modify C:\Program Files\tingyun\monitor\conf\blacklist.txt as follows:
app3
- Linux OS
Modify the process blacklist at /opt/tingyun-oneagent/conf/blacklist.txt.
For example, to disable the netcore application named app3, modify /opt/tingyun-oneagent/conf/blacklist.txt as follows:
app3
Standard Installation Mode
Enable/Disable Agent via the Console
-
Advantage: No need to restart the application.
-
Disadvantage: The disabled Agent remains in the application process, but only the data collection logic is not executed.
-
Disable method: In the Agent management application list, set the "Operation" switch to the off state.
-
Enable method: In the Agent management application list, find the corresponding application and set the "Operation" switch to the on state.
Enable/Disable Agent Locally
-
Advantage: The Agent is completely disabled and not loaded.
-
Disadvantage: The application needs to be restarted.
Disable Method
-
Windows: Remove
call <installation_path>\tingyun-enable.batfrom the application startup script and restart the application. -
Linux: Remove
. tingyun-enablefrom the application startup script and restart the application.
Enable Method
-
Windows: Add
call tingyun-enable.batto the application startup script. -
Linux: Add
. tingyun-enable(root installation) or. /<installation_path>/bin/tingyun-enable(non-root installation) to the application startup script.