Host Monitor can provide Memory Buffer and Cache metrics - How to do it


Article ID: 195297


Updated On:


CA Application Performance Management SaaS


Following these instructions will provide Memory Buffer and Cache metrics information in the Metric Tree.



APMIA Agent 20.x

Linux , Not Windows


1. You will need to create a couple of files, In this example we created and

Add this information in the


echo $( vmstat -SK 1 2 | tail -1 | awk '{print $5}' ) 

Add this information in the


echo $( vmstat -SK 1 2 | tail -1 | awk '{print $6}' ) 

I put both of these in a folder I create... don't forget to set permission on these files that will let you read and execute them. /root/Agents/apmia/extensions/SysEdge

2. Now we will need to edit the  I find this on my system in this folder /root/Agents/apmia/SystemEDGE/config/port1691.  

Add the following line in the bottom of the file.

#### Added July 14, 2020
extension 1 integer readonly '/root/Agents/apmia/extensions/SysEdge/'
extension 2 integer readonly '/root/Agents/apmia/extensions/SysEdge/'

Note these are the files we just created and their location.

3. We need to edit a file in this folder /root/Agents/apmia/extensions/HostMonitor/config.  We are going to edit the oid2metrics-linux.cnf

In this file we are going to add 3 lines at the top:

#OID    OpType   MetricPath:MetricName   Variable  HostName  LongCounter SystemEdge|{$HostName}|Memory:Buffer (KBytes)  LongCounter SystemEdge|{$HostName}|Memory:Cache (KBytes)

The first line   Variable  HostName is setting up to get the variable for the hostname.  The last 2 is formatting the data for the metrics tree.

4. Save the changes to the files and restart the APMIAgent and you should start seeing the metrics.