Activity Feed
- Posted How to Deploy Database Agent Via Smart Agent with the **Latest OpenJDK Version** on AppDynamics Knowledge Base. 02-18-2025 10:43 AM
- Got Karma for How to Enable the http listener on a Windows Machine agent. 02-14-2025 01:40 PM
- Posted How to Enable the http listener on a Windows Machine agent on AppDynamics Knowledge Base. 02-14-2025 01:37 PM
- Karma Monitoring URLs with AppDynamics Machine Agent on Linux for Abhi_Bajaj1. 01-16-2025 11:22 AM
- Karma How to send Severity Levels of CUSTOM events in http request Template to Incident Management Apps for Sunil_Agarwal. 04-03-2023 04:57 PM
- Karma Re: Triggering script on Health rule violation - Real time use cases for Sunil_Agarwal. 04-03-2023 02:25 PM
Topics I've Started
Subject | Karma | Author | Latest Post |
---|---|---|---|
0 | |||
1 |
02-18-2025
10:43 AM
How to Deploy the Database Agent via Smart Agent (Using OpenJDK 17)
Step-by-Step Guide:
1. Download the Smart Agent
Go to AppDynamics Downloads.
Download the Smart Agent ZIP file.
2. Extract & Install the Smart Agent
Unzip the downloaded file into C:\appdynamics\appdsmartagent (or your preferred directory).
Open an Administrator command prompt and run: appdsmartagent-service.bat
This creates and starts the AppDynamics SmartAgent service on Windows.
3. Confirm the Service is Running
Open services.msc and verify the AppDynamics SmartAgent service is running.
4. Configure the Smart Agent
In C:\appdynamics\appdsmartagent , edit the config.ini file with your Controller details, such as: ControllerURL = https://ces-controller.saas.appdynamics.com
FMServicePort = 443
AgentType = <agent_type>
AccountAccessKey = <your_access_key>
AccountName = <your_account_name>
EnableSSL = true
5. Restart the Smart Agent service for changes to take effect.
6. Validate Smart Agent in the Controller
In the Controller UI, go to Agents → Manage Agents → Smart Agents and look for your host name.
Once it appears, you can install a Database Agent on the same machine directly from the UI.
7. Attach a Database Agent to the Smart Agent
If the Database Agent isn’t associated with a Smart Agent, you won’t see a Smart Agent ID in the UI.
Install or attach the DB Agent using the UI on the same machine where the Smart Agent is running.
8. Using the Latest OpenJDK (Example: JDK 17)
If you need OpenJDK 17 on your Linux machine, for example, run as below: sudo apt update
sudo apt install -y openjdk-17-jdk
The Database Agent works fine with JDK 17 (tested on local machine IP address ip-172-31-9-203 ).
9. Upgrade or Downgrade the Database Agent
If your Database Agent is attached to a Smart Agent, you can easily upgrade or downgrade it from the Controller UI.
10. Successfully Created MySQL Collector with the latest JDK 17 and Latest Database Agent version 25.1.0
Troubleshooting & Tips
Smart Agent Not Found? Ensure the Smart Agent is installed and running before installing a Database Agent via the UI.
Verifying Smart Agent ID Check Agent Management → Smart Agents in the Controller to see if the ID is displayed. If it’s missing, the Database Agent won’t be able to attach it.
JDK Compatibility If you’re running on Windows, Linux, or another OS, ensure you have OpenJDK 17 (or your desired version) installed. The Database Agent is compatible with modern JDK versions but always verify in AppDynamics’ compatibility matrix.
... View more
Labels:
02-14-2025
01:37 PM
1 Karma
Machine Agent HTTP Listener - How to Enable the http listener on a Windows Machine agent
You can send metrics to the Machine Agent using its HTTP listener. You can report metrics through the Machine Agent by making HTTP calls to the Agent.
The HTTP listener is not enabled by default. To activate the HTTP listener, restart the Machine Agent and set the metric.http.listener system property as mentioned below.
Step-by-step guide:
There are two ways to enable this property via the Command line with Java Arguments or add the parameters in the VMOPTIONs file if you’re running machine agent as a services.
Option 1: Running machine agent as a services
Assuming the Machine agent is installed under this directory then go to this path For Example
C:\Program Files\AppDynamics\Machine Agent\bin
2. Add the below properties under VMOPTIONS File which is located under Machine Agent\bin folder.
metric.http.listener: Required. Set to true .
metric.http.listener.port: Optional. Set to the port to be used, defaults to 8293.
metric.http.listener.host : Optional. This describes which interface to accept requests on.
You can set it as follows
-Dmetric.http.listener=true
-Dmetric.http.listener.port=8293
-Dmetric.http.listener.host=0.0.0.0
Sending a custom metric to the AppDynamics Machine Agent running locally (on port 8293) using the built-in HTTP listener.
C:\Users\Administrator>curl -v "http://localhost:8293/machineagent/metrics?name=Custom%20Metrics%7CTest%7CMy%20Metric&value=42&type=average"
* Host localhost:8293 was resolved. IPv6: ::1 *IPv4: 127.0.0.1 *Trying [::1]:8293... *Connected to localhost (::1) port 8293
> GET /machineagent/metrics?name=Custom%20Metrics%7CTest%7CMy%20Metric&value=42&type=average HTTP/1.1 > Host: localhost:8293 > User-Agent: curl/8.9.1 > Accept: */* > * Request completely sent off < HTTP/1.1 204 No Content < Date: Wed, 12 Feb 2025 05:01:08 GMT < Content-Type: application/xml < Server: Jetty(9.4.56.v20240826) < * Connection #0 to host localhost left intact
Option 2: Machine Agent Running as a Runtime via Command line
Run the below command and give the path where Java Agent has been installed for example here Machine Agent is installed under C:\Program Files\AppDynamics directory so change the path based on your machine agent has been installed.
Please add the HTTP listener property during runtime
<machine_agent_home>/bin/machine-agent -Dmetric.http.listener=true -Dmetric.http.listener.port=<port_number> -Dmetric.http.listener.host=0.0.0.0
For example:
C:\Program Files\AppDynamics\Machine Agent\jre\bin\Java -Xmx256m -Dlog4j.configuration=file:C:\Program Files\AppDynamics\Machine Agent\conf/logging/log4j.xml -Dmetric.http.listener=true -Dmetric.http.listener.port=8293 -Dmetric.http.listener.host=0.0.0.0 -jar C:\Program Files\AppDynamics\Machine Agent\machineagent.jar &
Note: Ensure that you place the options/parameters before the JAR name in your start-up command.
Validation Check
Once the Property has been added you can see the details under the logs file as mentioned below and also can see the custom metric under the metric browser UI.
Check in AppDynamics Controller UI under Metric Browser
Sample Metric -"My Metric" and "You Metric"
... View more
Labels: