Machine Agent and App Agent on the Same Machine, but Report to Different Nodes

Issue

A machine has a Machine Agent and an App Server Agent running together, but the agents report to different nodes. When you look in the Metric Browser, for example, application metrics appear under node abc but machine metrics appear under node abc.mydomain.com

Resolution

First, check to see if the hostnames match. If they don't:

  1. Set the <unique-host-id> for the Machine Agent to the same <unique-host-id> as the App Server Agent.
  2. Restart the Machine Agent to apply the previous changes.

The <unique-host-id> on the Machine Agent and the <unique-host-id> for the App Server Agent must match exactly. These settings are case-sensitive and ensure that both agents report metrics to the same node. 

To verify that the hostnames match:

  1. Click the gear icon () in the Controller menu and choose AppDynamics Agents.
  2. Select the Machine Agents tab.
  3. Check the Applications field for the agent name. 

    In addition, for consistency in naming in the Servers tab, use the <machine path> attribute to set the hostname. By using the machine path, you don't have to use the fully qualified domain name (FQDN) for some agents, and the hostname for others. The reported hostname is still available to view by checking the option in the Agents Admin view. 

  4. Check the ID for the App Server Agent:
    1. Go to the App Server Agents tab.
    2. Search for the App Server Agent to which you want to associate the Machine Agent.
    3. Check the Unique Host ID field for the App Server Agent installed on that machine.  
  5. Set the <unique-host-id> for the Machine Agent to the same <unique-host-id> as the App Server Agent.
  6. Restart the Machine Agent to apply the previous changes. Your Agents will appear as associated after a few minutes

Identify the Machine Agent Process

Linux and Unix-like systems
To identify which process is running the machine agent, use the following command:

ps -ef | grep machine
CODE

Windows systems

In the Windows Services Application, look for the AppDynamics Machine Agent service.

Metric Values for Disk and Network are Zero

When a 32-bit JRE is used with a 64-bit operating system, you may see values of zero for disk and network metrics. To solve this problem, use a 64-bit JRE with the 64-bit operating system.

Flow Maps and the Machine Agent

The Machine Agent monitors a particular machine (also called "host server") and not a particular application server. The machine agent can, therefore, report to multiple nodes running on the same machine. A flow map, on the other hand, displays the communication between different nodes during application execution, or the business transaction flow from tier to tier. A Machine Agent cannot be a part of the flow and therefore is not shown in the flow map.

Server Health Indicator

Health rule violations based on metrics monitored by the machine agent are included in the health indicator on the various application, tier, and node dashboards. The health indicator is driven by health rule violations in the given time period configured on hardware metrics collected by the Machine Agent. Some health rules are configured by default. To configure additional health rules, see Configure Health Rules. For more details on Server Availability and health rules, see Configure Health Rules to Monitor Servers.