Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
on
03-03-2020
06:26 PM
- edited on
05-28-2020
09:47 PM
by
Claudia.Landiva
This article outlines the steps you need to follow to enable auto-remediation scripts to run when you have .NET agents configured on Windows.
The built-in machine agents that ship with our .NET agents don’t have the capability to run auto-remediation scripts. For each application, you’ll need to install a standalone Machine Agent without the .NET compatibility enabled that will run the auto-remediation scripts.
Assuming you already have a .NET agent installed and a Machine Agent installed gathering server metrics, the following procedure will allow you to configure another machine agent that will run the auto-remediation steps.
You must configure a separate Machine Agent with a unique application_name/unique_host_id pair, where the application_name and unique_host_id match. Each application you want to run auto-remediation scripts for will require its own Machine Agent.
If you have ONLY one .NET application running on a single host (i.e., a 1:1 mapping of application:host), you may use your existing Machine Agent with sim enabled and dotnet-compatibility set to true alongside an application name, tier name, and node name.
Unique-host-id is not required in this case.
Use the following steps to configure a Machine Agent for each application.
<agent install directory>\conf\controller-info.xml
unique-host-id = {application_name}
sim-enabled = false
application-name = {application_name}
node-name = {node_name}
tier-name = {tier_name}
NOTE:
- unique-host-id and application-name must match identically
- dotnet-compatibility-mode = false / doesn’t exist in this config file
You can configure the machine agent as a service or background task according to your company’s best practices. The steps below show how to start the machine agent in the foreground:
Give the agent a minute to come up and you should see “Started AppDynamics Machine Agent Successfully.”
Verify that the new node appears under your application.
Notice how the app agent status is down and 0% and the machine agent status is up and healthy.
Note:
- Make sure you are creating a policy for a .NET application (not server, etc)
- Make sure your policy is enabled
In the <agent install directory>\logs\machineagent.log
, you'll be able to see the script is executing.
Configure Multiple Machine Agents for One Machine
Machine Agent Installation Scenarios
In the past, you may have read about a "Standalone Machine Agent." Recently, we've discontinued that term in favor of simply "Machine Agent".
Claudia Landivar
Community Manager & Editor
AppDynamics
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form