The data for CPU Utilization may not be shown due to the problem in executing and obtaining the output of the commands on the server. For different modes of monitoring (WMI/Telnet/SSH) we use different methods to collect data. Below are the steps to check the execution of commands based on the respective modes:
WMI mode of monitoring
Execute the cpu.vbs file present in <Applications Manager Home>/working/conf/applications/scripts/ directory from command prompt as follows:
For Remote servers,
cscript cpu.vbs <hostname> <username> <password>
For Local servers,
cscript cpu.vbs <hostname>
where hostname, username, password are the target server's hostname/IP address, username specified for monitoring, and password of that user respectively.
Check whether you are able to get the output for the above commands.
Telnet and SSH mode of monitoring
Execute the below commands in the remote server , that is being monitored if No data available for CPU utilisation
In the Telnet and SSH mode, Applications Manager will execute the following commands for data collection:
Check whether you are able to get the output for these commands in target server .
OS | Command to execute |
Linux | /usr/bin/vmstat 1 3 |
Free BSD | /usr/bin/vmstat 1 3 |
Mac | export UNIX95;top -l 3 -n 1|grep 'CPU usage:' |
Sun Solaris | /usr/bin/vmstat 1 3 |
AIX | /usr/bin/vmstat 1 3 |
HP-UX | /usr/bin/vmstat 1 3 |
HP-TRU64 | /usr/bin/vmstat 1 3 |
If the output is "Command not installed ", install the command .
If the output is "Permission denied" , grant sufficient privileges to the user used in APM for logging into remote system.
If the output is "No such file or directory" , check the command is present in the file path and environment variable includes that file path . If not present install the same