Temporarily disabling the performance charts service in vCenter Server 6.0
book
Article ID: 328922
calendar_today
Updated On:
Products
VMware vCenter Server
Issue/Introduction
This article provides a workaround for security issues related to Apache Struts by disabling the performance charts service in vCenter Server 6.0. Critical vulnerabilities in Apache Struts that affect VMware products are documented in VMware Apache Struts 2 Security Advisories
The workarounds described in the Solution section of this article apply to the following versions of vCenter Server:
Functionality Impact: Users will not be able to view the Overview Performance Charts in vSphere Web Client. The advanced performance charts and the vCenter Server API for extracting performance statistics are not impacted. At the time of publication, these are the only known functionality impacts associated with disabling this feature.
Resolution
To apply this workaround on vCenter Server 6.0, stop the performance charts service and disable the automatic startup of the service on reboot.
How to Stop the Performance Charts Service in vSphere 6.0
For the vCenter Server Appliance 6.0
Connect the vCenter Server Appliance with an SSH session and root credentials.
Run this command to enable access the Bash shell: shell.set --enabled true
Type shell and press Enter.
Stop the performance charts service with this command: service vmware-perfcharts stop
(Optional) Turn off the automatic startup of the service on reboot: service vmware-perfcharts remove
For vCenter Server 6.0 on Windows
Log in as an administrator to the Windows machine.
Open the command-prompt.
Stop the performance charts service. sc stop vmware-perfcharts
(Optional) Turn off the automatic startup of the service on reboot. sc config vmware-perfcharts start= demand
To revert the startup type of the performance charts service to the default behavior
In the vCenter Server Appliance run the command: /bin/ln -s /usr/lib/vmware-perfcharts/wrapper/bin/vmware-perfcharts /etc/init.d/vmware-perfcharts /sbin/chkconfig -add vmware-perfcharts
In the Windows system where vCenter Server is installed, run this command: sc config vmware-perfcharts start= auto
Alternative
Steps to apply workaround using the vSphere Web client
Login to vSphere Web client as administrator of the system.
Navigate to the administration (Home) > system configuration (under deployment) > Services node
Navigate to the VMware Performance charts service on the left panel.
Click on stop button. Check the summary page that the service changes from “Running” to “Stopped”.
From the Actions menu, edit the startup type and set it to MANUAL.
Steps to revert the workaround using vSphere Web client
Login to vSphere Web client as administrator of the system.
Navigate to the administration (Home) > system configuration (under deployment) > Services node.
Navigate to the VMware Performance charts service on the left panel.
From the Actions menu, edit the startup type and set it to AUTOMATIC.
Click the start button. Check the summary page that the service changes from “Stopped” to “Running”.