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,

    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.

    Usage : snmpwalk.bat  [version]  [community]  [port]  [hostname / Ip]

    [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) Check whether the following commands are working in that corresponding server,
      
     OS                          COMMAND
     Linux             mpstat -P ALL 1 3|grep -i 'Average:'
     SUN  Solaris           /usr/bin/mpstat -p 1 3
     FreeBSD             /usr/bin/vmstat -n 0 -P 1 3
     AIX              LANG=en_US.UTF-8 sar -u -P ALL 1 3
     HP-UX             sar -u -M 1 3
     Mac OS             Not supported

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: