The Machine Agent collects hardware metrics using default extensions appropriate to specific operating systems. The following table lists the metric collection extension and its supported OS information. In some limited cases, you may want to change the default collection extension. The table also lists the most common reasons for changing the default extension. Supported environments, observation rates, configurability, some metric names, and definitions depend on the extension. To Customize Metrics for Virtual Disks and External Network Traffic To Customize Metrics for Virtual Disks and External Network Traffic SIGAR To Customize Metrics for Virtual Disks and External Network Traffic The JavaHardwareMonitor is based on SIGAR (System Information Gatherer And Reporter). SIGAR is a legacy method of collecting basic hardware metrics and is used in pre-4.1 versions and for machines running operating systems that are not supported by the ServerMonitoring extension. The following sections list scenarios where you might want to change the extension used to collect the machine metrics. By default, the Machine Agent reports metrics for network-mounted and local disks only. Additionally, only the external network traffic is aggregated (to ensure backward compatibility with previous versions of Splunk AppDynamics). For operating systems using the ServerMonitoring extension, you can change to the JavaHardwareMonitor to configure specific disks and network interfaces to be monitored. See Configure Metrics for Virtual Disks and External Network Traffic - JavaHardwareMonitor Extension Only to customize the behavior of the JavaHardwareMonitor metrics The JavaHardwareMonitor takes observations of metrics in two distinct ways: Linux and Windows machines use the ServerMonitoring extension by default to report basic metrics. However if you have Server Visibility enabled, falling back to the JavaHardwareMonitor only affects the collection of the basic hardware metrics. The extended Server Visibility metrics are still collected correctly by the ServerMonitoring extension. The HardwareMonitor extension is a collection of OS-specific scripts. SunOS and Solaris machines use this extension by default. For the operating systems that use the JavaHardwareMonitor by default, you may want to switch to an OS-specific monitor. You can switch to the OS-specific monitors when the JavaHardwareMonitor fails to report statistics and you see error logs similar to the following: If your Machine Agent installation is using an OS-specific HardwareMonitor for metric collection, then by default the agent reports free memory as the memory that is not used by any process nor in an I/O buffer or cache. It is more useful for the free memory metric to include memory that is in an I/O buffer or cache but can be available for new processes. To include the memory in I/O buffers or cache that can be made available to new processes, modify the HardwareMonitor configuration:OS Default Metric Collection Extension Metrics Collected Reason to Change the Default Extension Supported Environments Microsoft Windows Machine Agent Requirements and Supported Environments Linux ServerMonitoring Machine Agent Requirements and Supported Environments Solaris / SunOS Machine Agent Requirements and Supported Environments AIX SIGAR (System Information Gatherer And Reporter) is not supported for your OS or Linux Distribution HP-UX JavaHardwareMonitor Basic Metrics SIGAR is not supported for your OS or Linux Distribution SIGAR Mac OS X JavaHardwareMonitor Basic Metrics SIGAR is not supported for your OS or Linux Distribution SIGAR Solaris Machine Agent Requirements and Supported Environments Java Hardware Monitor
Customize Metrics for Virtual Disks and External Network Traffic
Metric Observation Rate
Collect Basic Metrics Using JavaHardwareMonitor
How to Change from ServerMonitoring to JavaHardwareMonitor
ServerMonitoring.yml
file from <machine_agent_home>/extensions/ServerMonitoring/conf/
.basicEnabled
to "false
".
The basicEnabled
setting controls whether the Machine Agent reports basic hardware metrics through the ServerMonitoring extension. Setting this to false
enables the JavaHardwareMonitor to report the basic hardware metrics using the legacy SIGAR-based reporting. monitor.xml
from <machine_agent_home>/monitors/JavaHardwareMonitor/
.<enable-override os-type="linux">false</enable-override>
.<enable-override os-type="windows">false</enable-override>
.Hardware Monitor
[Agent-Scheduler-1] 28 Nov 2013 13:13:55,435 ERROR SigarMinuteTask - Error fetching network statistics for interface [eth0:17]. Blocklisting it.
[Agent-Scheduler-1] 28 Nov 2013 13:13:55,435 ERROR SigarMinuteTask - Error fetching disk i/0 statistics for interface [eth0:17]. Blocklisting it.
Collect Basic Hardware Metrics using HardwareMonitor
How to Change from JavaHardwareMonitor to an OS-Specific Monitor
monitor.xml
from <machine_agent_home>/monitors/JavaHardwareMonitor/
.<enabled>true</enabled>
to <enabled>false</enabled>
.monitor.xml
from <machine_agent_home>/monitors/HardwareMonitor/.
<enabled>false</enabled>
to <enabled>true</enabled>
.Modify Free Memory Metric Configuration
<machine_agent_home>/monitors/HardwareMonitor/config.sh
.REPORT_MEMORY_FREE_AS_MEMORY_AVAILABLE
to 1.