How to correct data inaccuracies for metrics - Utilization in CPU cores and CPU Entitlement Utilization (%) in LPAR CPU stats for the AIX Monitor

How to correct data inaccuracies for metrics - Utilization in CPU cores and CPU Entitlement Utilization (%) in LPAR CPU stats for the AIX Monitor

By default, 20 samples are taken in order to obtain the values for both metrics from the remote machine. If the values of these two metrics do not match, you can modify the sampling value in hostresource.xml from 20 to 60.
NOTE: One sampling is equal to one second.

Steps:

1) Stop Applications Manager.

2) Go to hostresource.xml file under <AppManger_Home>/working/conf/application/ directory and search for the text CPU Entitlement Usage. Then change the sampling value from 20 to 60 in three places.
Eg. Change 
lparstat 1 20 > /tmp/apm_physc.txt && awk '/^..[0-9]/{sum+=$5}END{printf "UtilizationCPUCore: %.2f\n" ,sum/20}' /tmp/apm_physc.txt && awk '/^..[0-9]/{sum+=$6}END{printf "EntitledCPUUtilization: %.2f\n" ,sum/20}' /tmp/apm_physc.txt
to
lparstat 1 60 > /tmp/apm_physc.txt && awk '/^..[0-9]/{sum+=$5}END{printf "UtilizationCPUCore: %.2f\n" ,sum/60}' /tmp/apm_physc.txt && awk '/^..[0-9]/{sum+=$6}END{printf "EntitledCPUUtilization: %.2f\n" ,sum/60}' /tmp/apm_physc.txt

3) Once you've changed it, save the file.

4) Now that we are using 60 samplings, the above command must be executed in at least 60 seconds. So the timeout for all AIX monitors added via SSH mode needs to be updated. Using the query below, we can update the timeout for all AIX SSH monitoring:
update am_hostinfo set timeout=70 where resourceid in (select resourceid from am_managedobject where type='AIX') and mode='SSH'
To be on the safer side, it is better to add 10 seconds and set the timeout as 70 seconds for all AIX SSH mode of monitors.

5) start Applications Manager.

6) Check the value for the metrics.

                  New to ADSelfService Plus?

                    • Related Articles

                    • Monitoring Capacity Entitlement in Applications Manager

                      Applications Manager is equipped to monitor processor capacity entitlement issues. To measure the average entitlement value during peak production times with a higher workload, you can use the following command: lparstat 1 20 > /tmp/apm_physc.txt && ...
                    • How to troubleshoot when having error 'No data available' for LPAR CPU Stats in AIX?

                      The following should be checked if you find that data isn't populating in Applications Manager: 1)  TELNET or SSH mode connections to remote AIX servers are permitted. 2) Verify that the command below executes and produces the desired results on your ...
                    • While trying to monitor servers, I get a "No data Available" error for CPU Core Utilization.

                      The data for CPU Core utilization may not be shown due to problem in executing and getting the output of CPU command on the server. For different modes of monitoring (WMI/Telnet/SSH/SNMP) we use different methods to collect data. Find the steps below ...
                    • How is CPU Utilization calculated for AIX server?

                      CPU Utilization We use the following methods of calculation for CPU Utilization when lparstat command is supported: Method 1: If 'type=Dedicated', then we use the vmstat command output. (i.e) cpu=100-Idle Time Method 2: If ...
                    • DNS Monitor - Troubleshooting

                      Common DNS Monitor Errors and Troubleshooting Guide 1. Host Not Found Description: The DNS server was unable to locate the requested lookup address. Possible Causes: This may happen if the hostname is incorrect, the domain does not exist, or there is ...