Vsphere Monitoring and Performance
Total Page:16
File Type:pdf, Size:1020Kb
vSphere Monitoring and Performance VMware vSphere 6.5 VMware ESXi 6.5 vCenter Server 6.5 vSphere Monitoring and Performance You can find the most up-to-date technical documentation on the VMware website at: https://docs.vmware.com/ If you have comments about this documentation, submit your feedback to [email protected] VMware, Inc. 3401 Hillview Ave. Palo Alto, CA 94304 www.vmware.com © Copyright 2010-2017 VMware, Inc. All rights reserved. Copyright and trademark information. VMware, Inc. 2 Contents About vSphere Monitoring and Performance 7 Updated Information 9 1 Monitoring Inventory Objects with Performance Charts 10 Performance Chart Types 11 Data Counters 11 Metric Groups in vSphere 13 Data Collection Intervals 13 Data Collection Levels 14 View Performance Charts 15 Performance Charts Options Available Under the View Menu 16 Overview Performance Charts 17 Clusters 17 Datacenters 28 Datastores and Datastore Clusters 32 Hosts 41 Resource Pools 68 vApps 75 Virtual Machines 79 Working with Advanced and Custom Charts 108 View Advanced Performance Charts 108 Change Advanced Chart Settings 109 Create a Custom Advanced Chart 110 Delete a Custom Advanced Chart View 110 Save Chart Data to a File 110 Troubleshoot and Enhance Performance 111 Solutions for Consistently High CPU Usage 111 Solutions for Memory Performance Problems 112 Solutions for Storage Performance Problems 113 Solutions for Disk Performance Problems 113 Solutions for Poor Network Performance 115 Empty Performance Charts 116 2 Monitoring Guest Operating System Performance 118 Enable Statistics Collection for Guest Operating System Performance Analysis 118 View Performance Statistics for Windows Guest Operating Systems 118 VMware, Inc. 3 vSphere Monitoring and Performance 3 Monitoring Host Health Status 120 Monitor Hardware Health Status 121 Reset Health Status Sensors 121 4 Monitoring Events, Alarms, and Automated Actions 122 View Events 124 View System Logs 124 Export Events Data 124 Streaming Events to a Remote Syslog Server 125 Redirect vCenter Server Appliance Log Files to Another Machine 126 Configure Streaming of Events to a Remote Syslog Server 127 Retention of Events in the vCenter Server Database 127 Configure Database Settings 128 View Triggered Alarms and Alarm Definitions 129 Live Refresh of Recent Tasks and Alarms 129 Set an Alarm 130 Create or Edit Alarms 131 Specify Alarm Name, Description, and Type 132 Specify How a Condition-Based or State-Based Alarm is Triggered 132 Specify How an Event-Based Alarm is Triggered 133 Specify Alarm Actions 134 Acknowledge Triggered Alarms 140 Reset Triggered Event Alarms 141 Preconfigured vSphere Alarms 141 5 Monitoring Solutions with the vCenter Solutions Manager 147 View Solutions and vServices 147 Monitoring Agents 148 Monitoring vServices 148 6 Monitoring the Health of Services and Nodes 150 View the Health Status of Services and Nodes 150 7 Performance Monitoring Utilities: resxtop and esxtop 152 Using the esxtop Utility 152 Using the resxtop Utility 153 Using esxtop or resxtop in Interactive Mode 153 Interactive Mode Command-Line Options 154 CPU Panel 156 CPU Power Panel 159 Memory Panel 159 VMware, Inc. 4 vSphere Monitoring and Performance Storage Adapter Panel 163 Storage Device Panel 164 Virtual Machine Storage Panel 166 Network Panel 167 Interrupt Panel 168 Using Batch Mode 169 Prepare for Batch Mode 169 Use esxtop or resxtop in Batch Mode 169 Batch Mode Command-Line Options 170 Using Replay Mode 170 Prepare for Replay Mode 170 Use esxtop in Replay Mode 171 Replay Mode Command-Line Options 171 8 Using the vimtop Plug-In to Monitor the Resource Usage of Services 172 Monitor Services by Using vimtop in Interactive Mode 172 Interactive Mode Command-Line Options 172 Interactive Mode Single-Key Commands for vimtop 173 9 Monitoring Networked Devices with SNMP and vSphere 175 Using SNMP Traps with vCenter Server 175 Configure SNMP Settings for vCenter Server 176 Configure SNMP for ESXi 177 Configure the SNMP Agent for Polling 178 Configure ESXi for SNMP v1 and v2c 178 Configure ESXi for SNMP v3 180 Configure the Source of Hardware Events Received by the SNMP Agent 186 Configure the SNMP Agent to Filter Notifications 186 Configure SNMP Management Client Software 187 SNMP Diagnostics 188 Monitor Guest Operating Systems with SNMP 188 VMware MIB Files 188 SNMPv2 Diagnostic Counters 190 10 System Log Files 192 View System Log Entries 192 View System Logs on an ESXi Host 192 System Logs 193 ESXi System Logs 193 vSphere Web Client Logs 193 Export System Log Files 194 VMware, Inc. 5 vSphere Monitoring and Performance ESXi Log Files 195 Upload Logs Package to a VMware Service Request 195 Configure Syslog on ESXi Hosts 196 Configuring Logging Levels for the Guest Operating System 197 Change the Number of Virtual Machine Log Files 197 Control When to Switch to New Virtual Machine Log Files 198 Collecting Log Files 199 Set Verbose Logging 199 Collect vSphere Log Files 199 Collect ESXi Log Files 200 ESXi Log File Locations 200 Configure Log Filtering on ESXi Hosts 201 Turn Off Compression for vpxd Log Files 202 ESXi VMkernel Files 202 Viewing Log Files with the Log Browser 203 Enable the Log Browser Plug-In on the vCenter Server Appliance 203 Enable the Log Browser Plug-In on a vCenter Server Instance That Runs on Windows 203 Retrieve Logs 204 Search Log Files 204 Filter Log Files 205 Create Advanced Log Filters 205 Adjust Log Times 206 Export Logs from the Log Browser 206 Compare Log Files 206 Manage Logs Using the Log Browser 207 Browse Log Files from Different Objects 207 VMware, Inc. 6 About vSphere Monitoring and Performance VMware provides several tools to help you monitor your virtual environment and to locate the source of potential issues and current problems. Performance charts Allow you to see performance data on a variety of system resources including CPU, Memory, Storage, and so on. Performance Allow you to access detailed information on system performance through monitoring command- the command line. line utilities Host health Allows you to quickly identify which hosts are healthy and which are experiencing problems. Events, alerts, and Allow you to configure alerts and alarms and to specify the actions the alarms system should take when they are triggered. System Log Files System logs contain additional information about activities in your vSphere environment. Intended Audience The content in this section is intended for vSphere administrators who perform the following tasks: n Monitor the health and performance of physical hardware backings for the virtual environment. n Monitor the health and performance of virtual devices in the virtual environment. n Troubleshoot problems in the system. n Configure alarms. n Configure SNMP messages. Virtual machine administrators also might find the section on Chapter 2 Monitoring Guest Operating System Performance helpful. VMware, Inc. 7 vSphere Monitoring and Performance vSphere Web Client and vSphere Client Task instructions in this guide are based on the vSphere Web Client. You can also perform most of the tasks in this guide by using the new vSphere Client. The new vSphere Client user interface terminology, topology, and workflow are closely aligned with the same aspects and elements of the vSphere Web Client user interface. You can apply the vSphere Web Client instructions to the new vSphere Client unless otherwise instructed. Note Not all functionality in the vSphere Web Client has been implemented for the vSphere Client in the vSphere 6.5 release. For an up-to-date list of unsupported functionality, see Functionality Updates for the vSphere Client Guide at http://www.vmware.com/info?id=1413. VMware Technical Publications Glossary VMware Technical Publications provides a glossary of terms that might be unfamiliar to you. For definitions of terms as they are used in VMware technical documentation, go to http://www.vmware.com/ support/pubs. VMware, Inc. 8 Updated Information This vSphere Monitoring and Performance documentation is updated with each release of the product or when necessary. This table provides the update history of the vSphere Monitoring and Performance documentation. Revision Description EN-002282-01 Updated the required privilege to Export System Log Files. EN-002282-00 Initial release. VMware, Inc. 9 Monitoring Inventory Objects with Performance Charts 1 The vSphere statistics subsystem collects data on the resource usage of inventory objects. Data on a wide range of metrics is collected at frequent intervals, processed, and archived in the vCenter Server database. You can access statistical information through command-line monitoring utilities or by viewing performance charts in the vSphere Web Client. Counters and Metric Groups vCenter Server systems and hosts use data counters to query for statistics. A data counter is a unit of information relevant to a given inventory object or device. Each counter collects data for a different statistic in a metric group. For example, the disk metric group includes separate data counters to collect data for disk read rate, disk write rate, and disk usage. Statistics for each counter are rolled up after a specified collection interval. Each data counter consists of several attributes that are used to determine the statistical value collected. For a complete list and description of performance metrics, see the vSphere API Reference. Note Counters that are introduced in later versions might not contain data from hosts of earlier versions. For details, see the VMware Knowledge Base. Collection Levels and Collection Intervals Collection levels determine the number of counters for which data is gathered during each collection interval. Collection intervals determine the time period during which statistics are aggregated, calculated, rolled up, and archived in the vCenter Server database. Together, the collection interval and collection level determine how much statistical data is collected and stored in your vCenter Server database. Data Availability Real-time data appears in the performance charts only for hosts and virtual machines that are powered on.