While trying to monitor servers, I get a "No data Available" error for CPU Core Utilization.

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 to check the execution of commands based on respective mode.

WMI Mode of Monitoring:

1) Execute the cpucore.vbs present in <APPMANAGER_HOME_DIR/working/conf/applications/scripts/> directory from command prompt as follows,
  1.     cscript cpucore.vbs <hostname> <username> <password>
    where hostname, username, password is the target server's hostname or ipaddress , username specified for monitoring and password of that user respectively

2) If the script is working but output still hyphen in GUI, do the following steps:

   - Go to Admin Tab -> Logging and set the logging as 'Print All Logs' (you can revert it to 'Print Detailed Debug errors' after completing the below steps)
   - Trigger polling by clicking "Poll now" option for two or three times.
   - Wait until status updates in the GUI.
   - Now check the attribute value. If it is still shown as hyphen then upload the support file with that script output.
     Steps to create support file is given below link.
   
SNMP Mode of monitoring:

1) CPU Core Utilization is calculated by using  .1.3.6.1.2.1.25.3.3.1 OID. This returns the cpu usage of the individual core.
    Run the snmpwalk.sh or snmpwalk.bat present in AppManagerHome\bin\troubleshooting\ directory in a command prompt window.
  1.     snmpwalk.bat  [version]  [community]  [port]  [hostname / Ip]
    Where,
    [version]      version of SNMP agent v1 / v2. By default v1
    [community]    community string. By default public
    [port]         remote SNMP agent port number. By default 161
    [hostname/Ip]  hostname or Ip address of machine where SNMP agent is running

2) If the OID is working but output still hyphen in GUI, do the following steps:   
  
  - Go to Admin Tab -> Logging and set the logging as 'Print All Logs' (you can revert it to 'Print Detailed Debug errors' after completing the below steps)
  - Trigger polling by clicking "Poll now" option for two or three times.
  - Wait until status updates in the GUI.
  - Now check the attribute value. If it is still show hyphen then upload the support file with the complete snmpwalk result.
    Steps to create support file is given below link:

Telnet and SSH mode of monitoring :

1) Login to the corresponding server using the same credentials provided in Applications Manager  and check whether the following commands are working:

OS
Command
AIX
LANG=en_US.UTF-8 sar -u -P ALL 1 3
FreeBSD / OpenBSD
/usr/bin/vmstat -n 0 -P 1 3
Linux
export S_COLORS='never';mpstat -P ALL 1 3
Mac OS
Not supported
Sun Solaris
/usr/bin/mpstat -p 1 3
HP-UX / Tru64
sar -u -M 1 3

2) If command returns like "Not an SMP machine." then the system is not multi-core supported. It's same as overall CPU Utilization.

3) For Linux if command returns like "command not found" then install SYSTAT package in the server. For example refer below link.

4) If the command is working but output still hyphen in GUI, do the following steps: 
   
  - Go to Admin Tab -> Logging and set the logging as 'Print All Logs' (you can revert it to 'Print Detailed Debug errors' after completing the below steps) 
  - Trigger polling by clicking "Poll now" option for two or three times.
  - Wait until status updates in the GUI.
  - Now check the attribute value. If it is still show hyphen then upload the support file along with the complete command output.
    Steps to create support file is given below link:

5)  While executing 'sar' command in the AIX server if you encounter Permission denied error as output, execute the below command to give permissions:
chmod o+x /usr/lib/sa/sadc
 Note: The above command will enable permissions for non-root users to execute SAR.
After giving permissions, verify the same by executing the below command:
 LANG=en_US.UTF-8 sar -u -P ALL 1 3

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to troubleshoot when having error 'No data available' for CPU utilization in Linux and AIX servers?

                      Possible Scenario:  I get a "No data available" message for Inode Usage while trying to monitor servers. Solution: The connection must be established only through TELNET or SSH mode.  Check whether the below command runs and displays corresponding ...
                    • Self monitor Applications Manager using Real User Monitoring

                      We can monitor the Applications Manager using Real User Monitoring with a Java Script injection and this can be used to measure the Applications Manager's performance continuously. All you need is to install and setup the Real User Monitoring (RUM) ...
                    • How is CPU Core utilization calculated for Windows servers?

                      CPU Core Utilization :  The same way in CPU Utilization, we execute the below query and from the output we execute another query to get the details of CPU Core details. Select * from Win32_PerfRawData_PerfOS_Processor where Name!='_Total'  Select * ...
                    • 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 ...
                    • Real User Monitor (RUM) - Troubleshooting

                      If the monitor has not polled data for a long time, follow the steps below for troubleshooting: Step 1: Check the RUM Agent configuration Real User Monitor requires the RUM Agent to be installed and mapped to the Applications Manager. Refer the help ...