vCenter Chargeback User’s Guide vCenter Chargeback 1.6 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
vCenter Chargeback User’s Guide You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com Copyright © 2011 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws.
Contents About This Book 5 1 Introduction to vCenter Chargeback 7 What Is Chargeback 7 Chargeback Solution for Virtual Environments Overview of vCenter Chargeback 8 7 2 Installing vCenter Chargeback 11 Hardware Requirements 11 Software Requirements 12 Prerequisites for vCenter Chargeback 13 Download and Extract the vCenter Chargeback Installer 15 Install vCenter Chargeback 15 Create a vCenter Chargeback Cluster 19 Install vCenter Chargeback with an Existing Database Schema Upgrading vCenter Chargeback
vCenter Chargeback User’s Guide Managing a Chargeback Hierarchy 78 6 Managing and Configuring vCenter Chargeback Cost Elements 87 vCenter Chargeback Cost-Related Elements 87 Managing Cost Models 92 Managing Fixed Costs 96 Managing Cost Templates 99 Managing Billing Policies 101 Configuring Cost at the Entity Level 103 Physical Infrastructure Costing 105 Configuring a Pricing Matrix for Virtual Machines 107 7 Generating Reports 111 About Reports 111 Generate a Cost Report 113 Generate a Usage Report 11
About This Book The vCenter Chargeback User's Guide provides information about configuring and using the chargeback solution for virtual environments that use VMware Infrastructure or VMware vSphere. Intended Audience This book is intended for anyone who wants to install, upgrade, or use vCenter Chargeback. The information in this book is written for experienced Windows or Linux system administrators who are familiar with virtual machine technology and datacenter operations.
vCenter Chargeback User’s Guide Services provides offerings to help you assess, plan, build, and manage your virtual environment. To access information about education classes, certification programs, and consulting services, go to http://www.vmware.com/services. 6 VMware, Inc.
Introduction to vCenter Chargeback 1 vCenter Chargeback is an end-to-end cost reporting solution for virtual environments using vSphere. Before you install and start using vCenter Chargeback, an understanding of what chargeback is and about chargeback solution for a virtual environment would be helpful.
vCenter Chargeback User’s Guide A chargeback solution for a virtual environment defines a hierarchy with different types of entities such as departments, divisions, business units, cost centers, physical servers, virtual machines, and so on. For each entity type, a cost model is defined that determines the rate for each unit of a resource utilized. The chargeback solution determines the resource usage by using either utilization-based metering or allocation-based metering of virtual machines.
Chapter 1 Introduction to vCenter Chargeback When you install vCenter Chargeback, the vCenter Chargeback application, the load balancer, and the data collectors are installed and run on the same machine. Although the vCenter Chargeback database can also be installed on the same machine, in a real-world scenario you would install the application and the database on separate machines.
vCenter Chargeback User’s Guide 10 VMware, Inc.
Installing vCenter Chargeback 2 Before you install vCenter Chargeback, you must ensure that the minimum hardware and software requirements are met and the relevant pre-installation tasks are performed.
vCenter Chargeback User’s Guide Software Requirements Other than an operating system, you must have a database management system and a Web browser installed to run and access vCenter Chargeback.
Chapter 2 Installing vCenter Chargeback Prerequisites for vCenter Chargeback Before installing and running vCenter Chargeback few pre-install tasks have to be preformed. Networking Prerequisites You must perform the following pre-installation tasks for the successful installation and running of vCenter Chargeback: n Check whether the ports are free. Ensure that the ports that you specify during the installation are free.
vCenter Chargeback User’s Guide You must provide the details of this vCenter Chargeback database and database user when installing vCenter Chargeback. The installer will use these details to create the database schema and objects. Also, vCenter Chargeback will log in to the vCenter Chargeback database using the details of this database user and perform the necessary database operations.
Chapter 2 Installing vCenter Chargeback Table 2-1. vCenter Chargeback Pre-Install Checklist (Continued) Item Requirement Type Microsoft SQL Server 2005 or later Checked Oracle Database 10g or later Database name Create a database for vCenter Chargeback and note down the database name. URL IP address of the vCenter Chargeback database Ensure that the machine on which the database is installed has a static IP address.
vCenter Chargeback User’s Guide Procedure 1 Run the vCenter-CB.exe file. The installation wizard is displayed. 2 Click Next on the Introduction screen. 3 Accept the end-user license agreement, and click Next. 4 Provide the path for the installation directory, and click Next. If the specified installation directory exists, ensure that it is empty. If the specified installation directory does not exist, the installer creates the directory. The install path must contain at least one folder.
Chapter 2 Installing vCenter Chargeback 6 Enter the IP address and port details for the vCenter Chargeback application, and click Next. Option Description IP Address Static IP address of the machine on which you are installing vCenter Chargeback. Do not use localhost instead of the IP address. HTTP Port An unused HTTP port through which vCenter Chargeback can communicate. Load-Balancer Port An unused port through which vCenter Chargeback can communicate with the load balancer (Apache Server).
vCenter Chargeback User’s Guide Option Description Database Port (Optional) The port on which the database service is listening for requests. If the port number is not specified, the installer uses the default port. You must specify the TNS listener port if you are not using the default port 1521. Database Name Name of the database in which VMware Cloud Director stores the application-specific data. This must be the service name and not the SID. Database Username The name of the database user.
Chapter 2 Installing vCenter Chargeback 2 Provide a pass phrase for the default key and press Enter. You are prompted to enter the pass phrase three more times. Provide the same pass phrase and press Enter each time. 3 Provide the required certificate information and press Enter. You are prompted to enter the some information to be included in the generated SSL certificate. 4 5 Option Description Country Code A two letter code for the country.
vCenter Chargeback User’s Guide n Multicasting must be enabled on the machine on which the vCenter Chargeback instance is installed. Installing a vCenter Chargeback Cluster Instance You can create a cluster of vCenter Chargeback instances that use the same database and load balancer. Procedure 1 Run the vCenter-CB.exe file. The installation wizard is displayed. 2 Click Next on the Introduction screen. 3 Accept the end-user license agreement, and click Next.
Chapter 2 Installing vCenter Chargeback If the installer connects to the database and detects a vCenter Chargeback schema, a dialog is displayed. 6 Click Use it. The vCenter Chargeback instance will use this existing vCenter Chargeback database. 7 Enter the IP address and port details for the vCenter Chargeback application, and click Next. Option Description IP Address Static IP address of the machine on which you are installing vCenter Chargeback. Do not use localhost instead of the IP address.
vCenter Chargeback User’s Guide 12 Review the information displayed on the Pre-Installation Summary screen, and click Install. The installer starts installing the various components. If the installation is successful, the URL for accessing the vCenter Chargeback application and the information required to add this installed instance to the cluster is displayed. 13 Note this information, and click Done.
Chapter 2 Installing vCenter Chargeback 4 Provide the path for the installation directory, and click Next. If the specified installation directory exists, ensure that it is empty. If the specified installation directory does not exist, the installer creates the directory. The install path must contain at least one folder. You cannot provide only the drive name. Also, the directory path must contain only ASCII characters. 5 Enter the vCenter Chargeback database-related information, and click Next.
vCenter Chargeback User’s Guide Option Description Load-Balancer Port An unused port through which vCenter Chargeback can communicate with the load balancer (Apache Server). Server Instance Name A unique user-defined name for the vCenter Chargeback instance. This name is used by the load balancer to identify the instance. Ensure that the instance name contains only ASCII characters. If the specified ports are free, the next screen is displayed.
Chapter 2 Installing vCenter Chargeback 12 Review the information displayed on the Pre-Installation Summary screen, and click Install. The installer starts installing the various components. If the installation is successful, the URL for accessing the vCenter Chargeback application is displayed. 13 Note this URL, and click Done. The installer displays a dialog stating whether you want to generate your own SSL certificate. 14 Click Skip now, I'll generate it later.
vCenter Chargeback User’s Guide What to do next After you have taken a backup of the database, you must purge the vCenter Chargeback database. See KB 1026068 (http://kb.vmware.com/kb/1026068) for further instructions. You can also back up the relevant configuration files from the current vCenter Chargeback installation, so that you can restore the existing installation if the upgrade fails. See KB 1026796 (http://kb.vmware.com/kb/1026796) for further details.
Chapter 2 Installing vCenter Chargeback 6 Choose to install the required data collectors and click Next. The Install vCenter Chargeback Data Collector option is selected by default. You must have at least one instance of this data collector running and registered with the application for the database synchronization jobs to run. You can optionally choose to install the VMware Cloud Director Data Collector and vShield Manager Data Collector.
vCenter Chargeback User’s Guide If a vCenter Server is added to vCenter Chargeback with the Register as Plugin option selected, then the user whose authentication details are used when adding the vCenter Server is automatically added to vCenter Chargeback. Also, vCenter Server users who have generated reports on this vCenter Server are automatically added to vCenter Chargeback. You can delete the users that are not required and also assign appropriate roles on the ones that are required.
Chapter 2 Installing vCenter Chargeback VMware vCenter Chargeback - VMware Cloud Director DataCollectorEmbedded Starting this service starts the VMware Cloud Director Data Collector instance that was installed along with the vCenter Chargeback application.
vCenter Chargeback User’s Guide Accessing the vCenter Chargeback Application If all the required services are running, you can access vCenter Chargeback through a supported Web browser. Procedure 1 Click Launch Chargeback Homepage from the Start > Programs > VMware > VMware vCenter Chargeback menu. 2 Enter the login credentials, and click Login. Data Collector vCenter Chargeback interacts with the vCenter Server and vCenter Server database through a data collector.
Chapter 2 Installing vCenter Chargeback n Download Data Collector on page 31 The installer for the data collector is bundled with the application and can be downloaded from the vCenter Chargeback application. n Install vCenter Chargeback Data Collector on page 32 You can have more than one data collector installed. You can install an individual data collector instance using the data collector installer.
vCenter Chargeback User’s Guide Install vCenter Chargeback Data Collector You can have more than one data collector installed. You can install an individual data collector instance using the data collector installer. If you are integrating vCenter Chargeback with VMware Cloud Director by installing the VMware Cloud Director Data Collector and vShield Manager Data Collector, then you must install and run more than one instance of the vCenter Chargeback data collector.
Chapter 2 Installing vCenter Chargeback Option Description Database Port (Optional) The port on which the database service is listening for requests. If the port number is not specified, the installer uses the default port. For an Oracle database, you must specify the TNS listener port if you are not using the default port 1521. For an SQL Server database, specify the database instance port if you are using a static port.
vCenter Chargeback User’s Guide 3 Accept the end-user license agreement, and click Next. 4 Provide the path for the installation directory, and click Next. If the specified installation directory exists, ensure that it is empty. If the specified installation directory does not exist, the installer creates the directory. The install path must contain at least one folder. You cannot provide only the drive name. Also, the directory path must contain only ASCII characters.
Chapter 2 Installing vCenter Chargeback 6 Enter the VMware Cloud Director database-related information, and click Next. NOTE If you have an existing VMware Cloud Director data collector instance, ensure that you provide the same database details as provided when installing the existing VMware Cloud Director data collector instance. Option Description Database Type The type of database used to create the VMware Cloud Director database. The only permissible value is ORACLE.
vCenter Chargeback User’s Guide The vShield Manager Data Collector can run jobs successfully only if an instance of the VMware Cloud Director Data Collector is installed and running. You must, therefore, ensure that at least one instance of the VMware Cloud Director Data Collector is running. Procedure 1 Run the vCenter-VSM-DC.exe file. 2 Click Next on the Introduction screen. 3 Accept the end-user license agreement, and click Next. 4 Provide the path for the installation directory, and click Next.
Chapter 2 Installing vCenter Chargeback 6 Enter the password for the vCenter Chargeback administrative account and click Next. You must provide the correct password for the data collector to call the vCenter Chargeback APIs. 7 Review the information displayed on the Pre-Installation Summary screen, and click Install. The installer starts installing the data collector. If the installation is successful, the URL for accessing vCenter Chargeback is displayed. 8 Note this URL, and click Done.
vCenter Chargeback User’s Guide Prerequisites If you want to uninstall the vCenter Chargeback instance that was initially installed and is part of a cluster, you must first uninstall all the other vCenter Chargeback instances in the cluster before this instance is uninstalled. That is, the vCenter Chargeback instance that includes the load balancer must not be uninstalled before other instances from the cluster are uninstalled.
Configuring Administration Settings 3 As an administrative user, you can perform various administrative tasks, such as configuring the LDAP and SMTP servers in the application and adding as well as updating vCenter Server information. To perform these administrative tasks, you must have the Super User or Administrator role. The user account details provided during the installation has the Super User role defined on it. Log in to the application by using this administrative user account.
vCenter Chargeback User’s Guide Configure the SMTP Server Setting You must configure the SMTP server setting in vCenter Chargeback to send the generated and archived reports through email. You must have the Super User role to perform this task. Procedure 1 In the Settings tab, clickGeneral. 2 Click Add in the Email Setting section. The Manage Email Server screen is displayed. 3 4 Provide information about the SMTP server that the application uses to send emails.
Chapter 3 Configuring Administration Settings 4 Option Description User Name User name to be used for authentication, if authentication type is Require Login. Password Password for the user name provided above. Maximum Attachment Size(KB) The maximum permissible file size for email attachments. The size specified is in KB. Click Edit. The email address is displayed in the Email Setting section. Delete the SMTP Server Setting You can remove an existing SMTP server and add a new one.
vCenter Chargeback User’s Guide 3 Click Apply. Managing LDAP Servers Starting with vCenter Chargeback 1.5, you can configure one or more LDAP server in the application. vCenter Chargeback supports only Microsoft Windows Server 2003 Active Directory and Microsoft Windows Server 2008 Active Directory. You can view and manage the LDAP servers from the LDAP Servers page of the Settings tab.
Chapter 3 Configuring Administration Settings Installation_Path refers to the location where vCenter Chargeback is installed on the machine. file_alias refers to any user-defined alias for the certificate file. LDAP_Server_Certificate_Path refers to the complete file path along with the name of the LDAP server certificate on the local machine. When you run the keytool command, you are prompted to enter the password for the vCenter Chargeback keystore. The default password is changeit.
vCenter Chargeback User’s Guide What to do next If you have selected the Enable LDAPS option, you must download the certificate from the LDAP server on to your local machine and add it to the vCenter Chargeback keystore. To do this, on the machine on which the load balancer service is running, you must then run the following command: Installation_Path\VMware\VMware vCenter Chargeback\jre\bin> keytool -import -trustcacerts keystore "Installation_Path\VMware\VMware vCenter Chargeback\jre\lib\security\cacerts
Chapter 3 Configuring Administration Settings Prerequisites n Before you add a vCenter Server, you must ensure that the vCenter Server is accessible over the network. Also, ensure that vCenter Server and the vCenter Server database have static IP addresses. If not, you must provide the FQDN for such servers and databases when adding them to vCenter Chargeback.
vCenter Chargeback User’s Guide 4 Option Description Authentication Type If you have set the Database Type to SQL Server, you can set the Authentication Type to Credential Based Authentication or Windows Authentication. If you select Credential Based Authentication, you must provide the database user name and password to access the database. If you select Windows Authentication, you need not provide the database user name and password to access the database.
Chapter 3 Configuring Administration Settings 3 Modify the required vCenter Server details. Option Description vCenter Server Hostname/IP FQDN or IP address of the vCenter Server. The IP address or host name cannot be edited after the vCenter Server is added to the application. vCenter Server Display Name A display name for the vCenter Server. vCenter Server Description A description of the vCenter Server. This is optional. vCenter Server Username User name to access the vCenter Server.
vCenter Chargeback User’s Guide Delete vCenter Server Information If you no longer want to calculate costs and generate reports for the virtual machines managed by a vCenter Server, you can remove the vCenter Server from the vCenter Chargeback application. To perform this task, you must have the Super User role or the Administrator role. If you have the Administrator role, you can delete only those vCenter Server settings that you have configured. Procedure 1 In the Settings tab, clickvCenter Servers.
Chapter 3 Configuring Administration Settings n Modify Super User Password for Cloud Data Collectors on page 53 If you change the password of the super user that was used when installing the VMware Cloud Director Data Collector and vShield Manager Data Collector, you must change the same from the Cloud Data Collectors page to ensure that the data collectors function correctly.
vCenter Chargeback User’s Guide Table 3-1. Information About Data Collectors Registered in the Application (Continued) Information Type Description Job Type The type of the synchronization job. n n n n n Storage Synchronization: The data collector obtains the storage information for all the virtual machines managed by the VirtualCenter Server or vCenter Server. For vSphere 4.0 and later, the data collector fetches all the files of a virtual machine and the datastore information of each file.
Chapter 3 Configuring Administration Settings 2 Enter the new job interval. The specified job interval must be in minutes. 3 Click Save. The new job interval is displayed in the table. Enable Data Collector If a data collector registered with the application is disabled, you can enable it from the application. Procedure 1 In the Settings tab, clickData Collectors. A table listing all the data collectors registered with the application is displayed.
vCenter Chargeback User’s Guide Configure VMware Cloud Director Data Collector If you have installed the VMware Cloud Director Data Collector, you must configure its properties from the Cloud Data Collectors page of the Settings tab. Only users with the Super User role assigned to them can perform this task. Procedure 1 In the Settings tab, click Cloud Data Collectors. 2 Select the VMware Cloud Director tab. 3 Select a property and click Edit.
Chapter 3 Configuring Administration Settings Configure vShield Manager Data Collector If you have installed the vShield Manager Data Collector, you must specify the user name and password to access the vShield Manager instances. You can set this access information from the Cloud Data Collectors page of the Settings tab. The vShield Manager Data Collector cannot function if the user name and password for the vShield Manager instances are not set.
vCenter Chargeback User’s Guide 2 Click Change password for 'superuser' for these data collectors link. Here, superuser is the user name used when installing vCenter Chargeback. The Change Password screen is displayed. 3 Enter the new password. 4 Confirm the new password. 5 Click Change Password. What to do next You must restart the VMware Cloud Director Data Collector after changing the password.
Chapter 3 Configuring Administration Settings Delete the Application License An existing license can be removed from the application. You must have the Super User role to perform this task. IMPORTANT Removing a license will render the application unusable till another valid license is added. Procedure 1 In the Settings tab, clickLicense. A table listing the details of the license added to the application is displayed. 2 Select the license and click Delete. A dialog confirming the action is displayed.
vCenter Chargeback User’s Guide 5 Click Title. The Title section of the report template displays nine sub-sections. 6 Select a sub-section from the Title section of the report template. 7 Select an option from the Title Settings section to display the required information in the selected subsection. Option Description Text The text that you want the report header to contain. For example, the name of the organization. Image An image that you want the header section to display.
Chapter 3 Configuring Administration Settings Add an Attribute You can define one or more attributes in vCenter Chargeback. You must have the Super User or Administrator role to perform this task. Procedure 1 In the Settings tab, click Manage Attributes. 2 Click Create. The Create Attribute screen is displayed. 3 Enter the name and description for the attribute. A attribute can be attached to an entity to provide additional information about the entity.
vCenter Chargeback User’s Guide 2 In the vCenter Chargeback Server section, set the Normal and Alert response time limits. The Normal, Warning, and Alert latency ranges are defined as follows: 3 Option Description Normal The Normal latency range is (0, normal response time limit). The default range is (0, 30000). If the response time is in the Normal latency range, the server is responding fine. Warning The Warning latency range is (normal response time limit + 1, alert response time limit).
Authenticating and Managing Users, Roles, and Permissions 4 vCenter Chargeback provides user management features that enable you to manage the various users, roles, and permissions defined in the application. The application defines various permissions and also provides some predefined roles. In addition, it lets you create new roles and users as per your requirements. Starting with vCenter Chargeback 1.5, the application defines resource-based authorization.
vCenter Chargeback User’s Guide Table 4-1. Resource Types Defined in vCenter Chargeback (Continued) Resource Type Description Attribute This resource type refers to any attribute created or imported in vCenter Chargeback. Only users with the Administrator role and Super User role have create permission for this resource type. Tier This resource type refers to the storage tiers created in vCenter Chargeback. A user must have read permission on the vCenter Server to access storage tiers.
Chapter 4 Authenticating and Managing Users, Roles, and Permissions Table 4-2. Permissions Applicable for Each Resource Type (Continued) Resource Type Create Read Update Delete Entity Cost Modify Schedule Yes Yes Yes Yes No Role Yes Yes Yes Yes No Billing Policy Yes Yes Yes Yes No You can assign permissions on a resource type to a user only through a role.
vCenter Chargeback User’s Guide Table 4-3.
Chapter 4 Authenticating and Managing Users, Roles, and Permissions Table 4-4. Permissions Defined on the Administrator Role (Continued) Resource Type Create Read Update Delete Entity Cost Modify Role Yes Yes Yes Yes No Billing Policy Yes Yes Yes Yes No Hierarchy Manager Role Table 4-5 lists the permissions defined in the Hierarchy Manager role for each of the resource type. Table 4-5.
vCenter Chargeback User’s Guide Table 4-6.
Chapter 4 Authenticating and Managing Users, Roles, and Permissions Create a Role Apart from the system-defined roles, you can define your own custom roles in vCenter Chargeback. These roles can then be assigned to the users created in the application. Only users having the Super User role or the Administrator role assigned to them can perform this task. Procedure 1 In the Users & Roles tab, click Roles. A table listing all the roles defined in the application is displayed. 2 Click Create.
vCenter Chargeback User’s Guide Delete a Role You can delete any of the existing custom roles in the application. The system-defined roles cannot be deleted. You must have the Administrator role or the Super User role to perform this task. If you have the Administrator role, you can delete only the roles that you have created. A user with the Super User role can delete any roles other than the system-defined roles. Procedure 1 In the Users & Roles tab, click Roles.
Chapter 4 Authenticating and Managing Users, Roles, and Permissions Creating Users You can create multiple users and groups in vCenter Chargeback as per your requirements. You must have the Super User role or the Administrator role to create users. The application lets you create the following types of users and groups: Local User This is a vCenter Chargeback user whose details are defined in vCenter Chargeback. LDAP User This is a Windows Active Directory user.
vCenter Chargeback User’s Guide What to do next The role assigned to the user defines the permission that the user has in the application. You must, however, assign roles to the user on the individual resources for him to access those resources. Create a LDAP User You can add Windows Active Directory users to vCenter Chargeback. The account detail of such users are originally defined in the Windows Active Directory.
Chapter 4 Authenticating and Managing Users, Roles, and Permissions Create a LDAP Group Like LDAP users you can also add LDAP groups to vCenter Chargeback. You must have the Super User role or the Administrator role to perform this task. NOTE Only a user with the Super User role can assign a role when creating a user. Prerequisites Before you add a LDAP group, ensure that the LDAP server is configured in the application.
vCenter Chargeback User’s Guide Modify a User After a user is created, you can change the password for the user by using the Modify User feature of the application. You can modify the password of only a Local user. You must have the Super User role or the Administrator role to perform this task. If you have the Administrator role, then you can reset the password for only the users that you have created.
Chapter 4 Authenticating and Managing Users, Roles, and Permissions You can assign only a single role to a user on vCenter Chargeback. If the user already has a role assigned to it, the same is removed and the new role is set on the user. Only a user with the Super User role can assign the Super User role or the Administrator role to a user on vCenter Chargeback. You must have the Super User role or the Administrator role to perform this task.
vCenter Chargeback User’s Guide A user not having the Super User role or the Administrator role can assign a role to other users only on the resources that he has access to. This user can assign only the roles he has access to and have the same or a subset of the privileges that are defined in the role assigned to him. The role that users can assign to other users on a resource depends on: n The permissions that the user has on the resource. n The roles that the user has access to.
Chapter 4 Authenticating and Managing Users, Roles, and Permissions 4 Select the user from the table listing the users. If any role has already been assigned to the user on the selected resources, the same is displayed under Currently Assigned Role. 5 Click Unassign this role under Current Assigned Role. The role is revoked from the user for the selected resources. The user can no longer access the selected resources.
vCenter Chargeback User’s Guide 3 Option Description Login in to The user type. LDAP Code If you select LDAP for Login in to, you must specify the LDAP Code for the LDAP server. Click OK. On successful log in, the Getting Started tab of the application is displayed. What to do next You can also access the application from the VI Client as a vCenter Server user, provided the application is registered with vCenter Server.
Managing Chargeback Hierarchies 5 vCenter Chargeback interacts with the vCenter Server to determine the utilization of the computing resources by various virtual machines that are created in the vCenter Server hierarchy. vCenter Chargeback enables you to create multiple chargeback hierarchies, which can be different from the vCenter Server hierarchies. A chargeback hierarchy is an organization of vCenter Server entities and vCenter Chargeback entities.
vCenter Chargeback User’s Guide 3 Select Custom Hierarchy (default). 4 Click Create. An empty chargeback hierarchy with the given name is created. What to do next To add entities to this hierarchy and manage the hierarchy, see “Managing a Chargeback Hierarchy,” on page 78. Synchronize a Chargeback Hierarchy with a vCenter Server You can create a chargeback hierarchy and synchronize it with a vCenter Server. This chargeback hierarchy will be same as the vCenter Server hierarchy.
Chapter 5 Managing Chargeback Hierarchies Prerequisites Before you begin, you must ensure that the .csv file entries are in the correct format. To know more about the format of the .csv file entries, refer to “Format of the CSV File,” on page 77. Procedure 1 In the Manage Hierarchy tab, click Create Hierarchy. The Create Hierarchy screen is displayed. 2 Enter a name and description for the hierarchy. The name must not exceed 255 characters and the description must not exceed 512 characters in length.
vCenter Chargeback User’s Guide The following sample is an example of the contents of such a file: #version 1.5.0 1,CB-folder,-1,101 2,CB-folder-1,1,101,vCenter Chargeback entity 3,cbm-vc,1,0,12.123.123.123,vm-203,1 4,CBM_1.5_B2,2,0,23.123.123.123,vm-218,2 The first line of the CSV file specifies the version of vCenter Chargeback. If this line is not present, the format defaults to that for vCenter Chargeback 1.0. Starting with the vCenter Chargeback 1.0.
Chapter 5 Managing Chargeback Hierarchies Add a vCenter Chargeback Entity You can add vCenter Chargeback entities to a chargeback hierarchy to logically group vCenter Server entities in the hierarchy. A vCenter Chargeback entity can represent the departments, cost centers, and business units in an organization. To add a vCenter Chargeback entity to a chargeback hierarchy, you must have update privilege on the chargeback hierarchy and the parent entity.
vCenter Chargeback User’s Guide 3 Right-click the entity to which you want to add a vCenter Server entity and select New vCenter Server Entity from the pop-up menu. You can add a vCenter Server entity to the hierarchy or to a vCenter Chargeback entity in the hierarchy. You cannot add a vCenter Server entity to another vCenter Server entity in the chargeback hierarchy. 4 Select the required vCenter Server from the drop-down menu on the right pane.
Chapter 5 Managing Chargeback Hierarchies Rename a Chargeback Hierarchy or a Chargeback Entity You can edit the names of chargeback hierarchies and the vCenter Chargeback entities in them. To perform this task, you must have update privilege on the hierarchy and the chargeback hierarchical entity. Procedure 1 In the Manage Hierarchy tab, select the required chargeback hierarchy from the drop-down menu on the left pane of the page. The collapsed view of the chargeback hierarchy is displayed.
vCenter Chargeback User’s Guide Delete a Chargeback Hierarchy You can remove invalid or unwanted chargeback hierarchies from the application. You must have delete privilege on the hierarchy to delete it. CAUTION You cannot undo a delete hierarchy operation. If a hierarchy is deleted, all the information associated with the hierarchy is lost. Procedure 1 In the Manage Hierarchy tab, select the required chargeback hierarchy from the drop-down menu on the left pane of the page.
Chapter 5 Managing Chargeback Hierarchies Move Entities Within a Hierarchy You can move the entities within a chargeback hierarchy. This is particularly useful if you want to rearrange the entities within a chargeback hierarchy. You cannot, however, rearrange the entities that are under a vCenter Server entity. You must have the update privilege on the hierarchy, the chargeback hierarchical entity, and the current and new parent chargeback hierarchical entity to move entities within a hierarchy.
vCenter Chargeback User’s Guide Procedure 1 In the Manage Hierarchy tab, select the required chargeback hierarchy from the drop-down menu on the left pane of the page. The collapsed view of the chargeback hierarchy is displayed. 2 Expand the hierarchy by clicking the plus sign (+) to the left of the hierarchy name. The first-level entities in the hierarchy are displayed. You can view all the entities in the hierarchy by clicking the plus sign to the left of the entities that have sub-entities.
Chapter 5 Managing Chargeback Hierarchies 3 Right-click the virtual machine whose cost has to be shared and select Manage cost sharing from the popup menu. NOTE This menu option is available only for the virtual machines that are individually added to the hierarchy. 4 Click OK on the information dialog box. 5 Right-click the vCenter Chargeback entity that shares this virtual machine and select Share Cost in this folder from the pop-up menu. The Set cost sharing screen is displayed.
vCenter Chargeback User’s Guide 2 Expand the hierarchy by clicking the plus sign (+) to the left of the hierarchy name. The first-level entities in the hierarchy are displayed. You can view all the entities in the hierarchy by clicking the plus sign to the left of the entities that have sub-entities. 3 Right-click the vCenter Server entity and select Properties from the pop-up menu.
Managing and Configuring vCenter Chargeback Cost Elements 6 vCenter Chargeback provides various cost-related elements. These elements enable you to define the cost to be charged for each computing resource, fixed costs, and the cost calculation formula. You must set the various cost-related elements in vCenter Chargeback to successfully generate the required cost reports.
vCenter Chargeback User’s Guide Chargeable Computing Resource A chargeable computing resource is any computing resource that must be accounted for when calculating the IT operational costs. The usage of the computing resources is measured and the corresponding charge is calculated. vCenter Chargeback accounts for the following computing resources: CPU The CPU usage is measured in GHz. Memory The memory usage is measured in GB.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements Rate Factor Rate factor is the multiplication factor to be used along with the base rate to calculate the charge for a unit of chargeable computing resource used or allocated for a specified duration. Rate factors are useful when you want to charge the entities in a hierarchy differently. The rate factors enable you to apply a cost that is a multiple or a fraction of the base rate. The rate factor value can be between 0 and 999.99.
vCenter Chargeback User’s Guide Billing Policy A billing policy determines the cost types and the amount of chargeable computing resources units to be considered for calculating the chargeback cost. vCenter Chargeback provides the following billing policies: 90 Fixed Cost Only the fixed costs associated with each entity in the chargeback hierarchy is considered for billing. The actual usage of the chargeable computing resources is ignored.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements Fixed Cost and CPU Reservation This policy takes into account the fixed costs associated with the entity, the reserved capacity of CPU, and the actual utilization of other chargeable computing resources for calculating the total cost.
vCenter Chargeback User’s Guide external network receive computing resources. For all other resources, the userdefined allocation units is considered for cost calculation. This billing policy is set in the VMware Cloud Director Pay As You Go - Resource Based Charging Cost Model. VMware Cloud Director Billing Policy - Networks This billing policy is available only if the VMware Cloud Director Data Collector is installed.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements n Create a Cost Model on page 93 You can create multiple cost models in vCenter Chargeback. Defining multiple cost models enables you to charge different sets of entities or hierarchies differently. It also enables you to compare the costs calculated using different cost models for a hierarchy or a set of entities. n Modify a Cost Model on page 95 After a cost model is created, you can modify it as and when required.
vCenter Chargeback User’s Guide 7 Set the base rate and the corresponding duration for the computing resources. The duration specifies how often the specified rate is charged for the corresponding computing resource. The duration can be Hourly, Daily, Weekly, Monthly, Quarterly, Half-yearly, or Yearly. In vCenter Chargeback, a duration value of Monthly is equal to 30 days, Quarterly is equal to 91 days, Half-yearly is equal to 182 days, and Yearly is equal to 365 days.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements 7 Click Calculate Metrics. The calculated costs are displayed in the Suggested Metrics page of the screen. 8 Specify the number of virtual machines in the Number of VM field. 9 Specify the total number of hours to be considered for a month. 10 Set the attribution percentages for the CPU and memory. The attribution percentages must add up to 100 percent. The annual, monthly, and hourly rates are displayed.
vCenter Chargeback User’s Guide 5 In the Base Rates tab, modify the base rates for the chargeable computing resources, the duration, and the effective time period. a (Optional) To fetch the historical base rate values, select the Update for the effective period option, specify the required time period, and click Get. b Click the Show link next to Historical values. The historical base rate values for the specified period is displayed for each of the computing resources.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements n Modify a Fixed Cost on page 98 You can modify the fixed costs as and when required. n Delete a Fixed Cost on page 98 You can delete invalid or unwanted fixed costs from the application. Create a Fixed Cost You must create the fixed costs that you want to charge on the entities and hierarchies. These costs can include periodically charged costs and one time costs.
vCenter Chargeback User’s Guide Modify a Fixed Cost You can modify the fixed costs as and when required. You must have update privilege on the fixed cost to modify it. Procedure 1 In the Manage Cost tab, click Fixed Cost. A table listing all the fixed costs created in the application is displayed. You can view the details of the fixed cost by clicking the plus sign (+) in the Details column of the table.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements Procedure 1 In the Manage Cost tab, click Fixed Cost. A table listing all the fixed costs created in the application is displayed. 2 Select the fixed cost that you want to delete, and click Delete. A dialog box confirming the action is displayed. 3 Click OK. The fixed cost is deleted from the application and, consequently, from the table listing the fixed costs.
vCenter Chargeback User’s Guide 4 In the Rate Factors tab, set the rate factors for the chargeable computing resources. The rate factor value can be between 0 and 999.99. The application considers a precision of up to two decimal places. 5 Click the Fixed Costs tab. 6 Select the required fixed cost and click Add to the list. The fixed cost is added to the list of fixed costs displayed in the List Of fixed costs to be applied to the cost template section.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements Procedure 1 In the Manage Cost tab, click Cost Template. A table listing all the cost templates created in the application is displayed. 2 Select the cost template that you want to delete, and click Delete. A dialog box confirming the action is displayed. 3 Click OK. The cost template is deleted from the application and, consequently, from the table listing the cost templates.
vCenter Chargeback User’s Guide 5 Select a resource and define an expression for it. a To include only an attribute, select the required attribute from the Attribute drop-down menu. b To obtain a maximum of a set of attribute values, click MAX and then select the required attributes from the Attribute drop-down menu. c To calculate the resource units only for the powered-on virtual machine, first select the VM Power On/Off option and then define the required expression for the selected resource.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements 2 Select the required billing policy from the table and click Edit. The Billing Policy screen is displayed. 3 (Optional) Modify the name and description on the General tab. 4 Select the Expression tab and modify the required expressions. 5 a To modify only the expression for a resource, select the resource, click Clear selected expression, and define the new expression.
vCenter Chargeback User’s Guide 5 Select the required cost model from the Cost Model drop-down menu. Only the cost models on which you have the read privilege are displayed in the drop-down menu. 6 Click Fetch. The entity-specific cost configuration details for the selected entity and cost model and the specified duration are displayed. If the entity is not configured for the specified duration or cost model, a message stating the same is displayed on the page.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements If you have selected a cost template, the rate factors defined in the cost template are populated in the Rate Factors fields corresponding to each computing resource. You can modify these rate factors, if required. You can view the rate factors already defined for various computing resources for different time periods by clicking Show next to Historical values.
vCenter Chargeback User’s Guide If no entity-specific cost configuration details are available for the selected cost model, vCenter Chargeback checks whether any rate factors are set at the host and cluster levels for the virtual machines on which reports are being generated. If rate factors are set at these levels for the selected cost model, then vCenter Chargeback uses the rate factors when calculating the costs and generating the report.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements Configuring a Pricing Matrix for Virtual Machines vCenter Chargeback provides functionality to charge a fixed cost for virtual machines in a virtual data center (vDC) in your VMware Cloud Director setup based on the vCPU count and memory. This functionality is available only if you have installed the VMware Cloud Director Data Collector. Starting with vCenter Chargeback 1.
vCenter Chargeback User’s Guide 2 Select a cost model from the drop-down menu. A table listing the vDC selection criteria defined for the cost model is displayed on the page. 3 Click Create. The vDC Selection Criteria and VM Instance Matrix screen is displayed. 4 Select an option and define the vDC selection criterion. This criterion is used to identify the vDCs for which the virtual machine instance cost matrix is applicable.
Chapter 6 Managing and Configuring vCenter Chargeback Cost Elements 4 5 (Optional) Modify the vDC selection criterion by selecting a different criterion option or by changing the criterion details. Criterion Options Description No Criteria The cost matrix is applicable to all vDCs. vDC Name If you select this option, you must select a string comparison operator and specify a compare string. The available comparison operators are Equals, Starts with, Ends with, and Contains.
vCenter Chargeback User’s Guide Delete a vDC Selection Criteria You can delete a vDC selection criterion defined for a cost model, if it is no longer required. Procedure 1 In the Configure Cost tab, click Edit VM Instance Cost. 2 Select a cost model from the drop-down menu. A table listing the vDC selection criteria defined for the cost model is displayed on the page. 3 Select a vDC selection criterion. 4 Click Delete. The vDC selection criterion is deleted from the table displayed on the page.
7 Generating Reports After you have configured the application, created and configured chargeback hierarchies, and defined cost models, you can generate various cost reports, usage reports, and cost comparison reports. The reports provide you with valuable information such as the usage of resources, the charge to levied on each entity, and the total cost.
vCenter Chargeback User’s Guide Table 7-1. Report Summary (Continued) Field Description Hierarchy The name of hierarchy on which the report is generated. If the report is generated for an entity, then the name of the hierarchy in which the entity exists is included. Chargeback Model The vCenter Chargeback cost models used to compute to the costs when generating the report. The cost model names are separated by a semi-colon (;).
Chapter 7 Generating Reports A cost comparison report enables you to compare the costs for two different cost models. The report structure is similar to the cost report with the following exceptions: n Report summary section does not display the total cost. n No graphs are available in the resource summary. Generate a Cost Report You can generate cost reports for an hierarchy and for individual entities in a hierarchy.
vCenter Chargeback User’s Guide Option Description Select a cost model Select the cost model to be used for generating the report. If you are generating a report for multiple entities, you can choose to use different cost models for each entity by selecting the Use different cost models for entities option and then select the required cost models for each entity. Ensure that the selected cost models have the same currency type.
Chapter 7 Generating Reports 2 Select the required chargeback hierarchy from the drop-down menu on the left pane of the page. The collapsed view of the chargeback hierarchy is displayed. You can expand the hierarchy by clicking the plus sign (+) to the left of the hierarchy name. The first level entities of the hierarchy is displayed. To further expand, click the plus sign to the left of the entities that have sub-entities.
vCenter Chargeback User’s Guide 8 Click Generate Report. The generated report is displayed on the right pane. Generate Cost Comparison Report You can compare the costs calculated by two different cost models on the same entity or hierarchy by generating a cost comparison report. You must have create privilege on the report resource type and at least the read privilege on the hierarchy, chargeback hierarchical entity, and cost models to perform this task.
Chapter 7 Generating Reports 7 Select Include cost summary in report to include the summary of costs in the report. The cost summary cab be either Complete (default) or Basic. 8 9 In the Details tab, select the fixed cost details, usage-related details, and other information to be displayed in the report.
vCenter Chargeback User’s Guide Scheduling Parameters You can set various scheduling parameters while scheduling a report. 118 Report Creation Time This is the time of the day when the report has to be generated. The time specified is the time on the server when the report is generated. vCenter Chargeback does not account for the time on the client machine. Recurrence Pattern This defines how often the report has to be generated.
Chapter 7 Generating Reports n Range of Recurrence Custom: You can set a custom billing period by specifying the start date of the billing period as the number of days prior to the report generation day and the duration for which the entities have to be billed. You must also specify how often the report has to be generated. This value is set as number of days. For example, suppose you want to schedule a bi-weekly report.
vCenter Chargeback User’s Guide Prerequisites Before you reschedule a report, refer to “Scheduling Parameters,” on page 118 to learn about the scheduling parameters in vCenter Chargeback. Procedure 1 In the Reports tab, click Scheduled Reports. A table listing all the report generation schedules is displayed. 2 Select the required report schedule from the table. 3 Click the scheduler icon above the table. The Schedule Report screen is displayed.
Chapter 7 Generating Reports Procedure 1 In the Reports tab, click Scheduled Reports. A table listing all the reporting schedules created in the application is displayed. 2 Select the required schedule. 3 Click the mail icon above the table. The screen with the emailing details is displayed. 4 5 Provide the email details. Option Description To The email address of the recipients. The email addresses should be separated by commas. Subject A subject for the email.
vCenter Chargeback User’s Guide 3 Specify the filters to sort the search results. You can specify two filter levels. The results can be sorted based on the report name, hierarchy name, entity name, or cost model name. 4 Click Search. The scheduled reports that match the criteria specified by using the search parameters are displayed in the table on the Schedule Reports page of the Reports tab. Managing Reports After you generate a report, the report is displayed in the application.
Chapter 7 Generating Reports Procedure 1 To display only the virtual machines in the report, click the VM View icon, which is the first icon from left side, above the report. The default view is the Tree view. You can revert to the Tree view by clicking the Tree View icon, which is to the right-side of the VM View icon. You can view informational messages related to a entity by selecting the entity.
vCenter Chargeback User’s Guide Archive Report A generated report can be archived and stored in the application. After you generate a report, the application displays the generated report. Procedure 1 Click the Save Report icon above the generated report. A dialog reporting whether the action was successful or not is displayed. 2 Click OK. If the report is archived successfully, the report can be accessed from the Archived Reports page.
Chapter 7 Generating Reports Procedure 1 Click the Email Report icon above the generated report. The Email Report screen is displayed. 2 3 Provide the email details. Option Description To The email address of the recipients. The email addresses should be separated by commas. Subject A subject for the email. Body The body text for the email. Click Send. The report in the PDF format is attached to the email and sent to the marked recipients.
vCenter Chargeback User’s Guide n Export Archived Report on page 126 After a report is generated and archived, it can be exported to the required format at any time. n Email Archived Report on page 126 After a report is generated and archived, you can send it through email to one or more recipients. n Delete Archived Report on page 127 You can clear the archive by deleting unwanted reports.
Chapter 7 Generating Reports 3 Click the Email this report icon. The Email Report screen is displayed. 4 5 Provide the email details. Option Description To The email address of the recipients. The email addresses should be separated by commas. Subject A subject for the email. Body The body text for the email. Click Send. The report in the PDF format is attached to the email and sent to the marked recipients.
vCenter Chargeback User’s Guide 2 3 Provide the required search parameters. Parameter Description Name of Report Name or part of the name of the report. You can either search for reports that have the specified name or the ones that do not have the specified name. Hierarchy name Name of a chargeback hierarchy. You can search for all the reports that are generated on a hierarchy or any of its entities by specifying the name of the hierarchy.
Chapter 7 Generating Reports Configure Hierarchy for Display in Report Dashboard You can configure a chargeback hierarchy so that its usage and cost statistics for the hierarchy and its entities are visible in the report dashboard. Only users with the Super User role assigned to them can perform this task. Procedure 1 Click the Manage Hierarchy tab. 2 Select the chargeback hierarchy from the drop-down menu on the left pane of the page. The collapsed view of the chargeback hierarchy is displayed.
vCenter Chargeback User’s Guide c Click Fetch. The Top N report for the selected entity is displayed. d 130 Select the virtual machine name to view the Cost per Resource graph for the selected virtual machine. VMware, Inc.
Monitoring System Health 8 The System Health tab acts as a dashboard, providing you with information about and status of the entire system. Only a user with Super User role has access to this tab. The dashboard shows colored status indicators next to the URL for each server and service. The significance of the colors is as is described in the table Table 8-1. Table 8-1. Significance of Dashboard Status Indicator Colors Color Significance Green Normal The response time within the acceptable range.
vCenter Chargeback User’s Guide Table 8-2. Section in the System Health Tab (Continued) Section Information General Info This section provides information about the number of vCenter Servers added to the application and the number of vCenter Chargeback hierarchies and entities created. It also displays the URL and port details for the SMTP server and the URL of the vCenter Chargeback database. This section displays the date and time when the page was last updated.
Administration Utilities 9 vCenter Chargeback interacts with various servers and databases. It also stores information about users and various components, such as hierarchies and entities. To ensure that the application and the corresponding components are working properly, one must monitor the health of the entire system periodically. vCenter Chargeback provides a few utilities and database management scripts that enable you to manage the application efficiently.
vCenter Chargeback User’s Guide 3 n New password n Confirmation of the new password Restart the vCenter Chargeback service and the data collector services. What to do next If you have installed the VMware Cloud Director Data Collector and vShield Manager Data Collector with vCenter Chargeback or individually installed any of the data collectors, then you must copy the hibernate.cfg.xml file from the Installation_Directory/apache-tomcat-6.0.
Chapter 9 Administration Utilities vCenter Chargeback Database Management Scripts vCenter Chargeback provides SQL scripts that can help database administrators to manage the vCenter Chargeback database. These SQL scripts can be run from the SQL prompt by any database user having the required permissions. These scripts are packaged with the application and are located in the following folders: n For SQL Server Installation_Directory\Database Scripts\main\v1.5.0\mssql\db-management The script names are of
vCenter Chargeback User’s Guide Table 9-2. Space Calculation Scripts Script Description spaceCostData This script returns the amount of space that can be retrieved by purging the cost data that is older than the specified number of months. spaceHierarchyData This script returns the amount of space that can be retrieved by purging the hierarchy data that is older than the specified number of months.
Chapter 9 Administration Utilities Table 9-3. Data Purging Scripts (Continued) Script Description purgeStatsData This script removes the vCenter Server performance statistics data that is older than the specified number of months from the CB_VC_PERFORMANCE_STAT table. The number of months is specified using the MONTHS_IN_HISTORY parameter in the Oracle script and the @MONTHS_IN_HISTORY parameter in the SQL Server script. You can set this parameter appropriately before running the script.
vCenter Chargeback User’s Guide 138 VMware, Inc.
Troubleshooting vCenter Chargeback 10 VMware provides a troubleshooting utility and few troubleshooting tips for some of the common issues that you might face when using vCenter Chargeback. This chapter includes the following topics: n “Troubleshooting Utility,” on page 139 n “Troubleshooting Issues in vCenter Chargeback,” on page 140 Troubleshooting Utility vCenter Chargeback is bundled with a troubleshooting utility that can be used to collect event and system logs.
vCenter Chargeback User’s Guide 3 You can choose to collect the system event logs. The Application log and System log is collected. 4 Enter the number of stand-alone data collector instances (not embedded) installed on the same machine. 5 If you have any standalone data collector instance running, you must provide the path of each such data collector installation.
Chapter 10 Troubleshooting vCenter Chargeback Solution u Click the refresh button next to the vCenter Server hierarchy in vCenter Chargeback. The refresh button is displayed only if there is a change in the vCenter Server hierarchy and the Hierarchy Manager tab is refreshed. The tab can be refreshed by user actions, such as clicking another tab of the application and then clicking the Manage Hierarchy tab.
vCenter Chargeback User’s Guide Non-English Characters Are Not Correctly Stored in the vCenter Chargeback Database You can store data with non-English characters in the vCenter Chargeback database. Problem The vCenter Chargeback database might be deployed in a non-English locale or synchronized with a vCenter Server database that contains non-English data. However, the vCenter Chargeback database does not store the non-English characters correctly.
Chapter 10 Troubleshooting vCenter Chargeback Solution u On the vCenter Server, check whether the statistics collection level is correctly set. For vCenter Server 2.5 Update 3 and Update 4, the statistics collection level must be set to 2 or above for the average memory consumed counter to be available. For vCenter Server shipped with vSphere 4.0, the statistics collection level can be set to 1 or above.
vCenter Chargeback User’s Guide Cause The data collector heart beat is set to 30 seconds. If the data collector fails, vCenter Chargeback waits for at least 90 seconds before updating the status of the data collector in the application. Therefore, the System Health tab does not reflect the failed status of the data collector immediately. Solution There is no workaround or solution for this issue. Storage Synchronization Job Fails The storage synchronization job run by the data collector fails.
Chapter 10 Troubleshooting vCenter Chargeback n Windows Firewall is enabled on the machine on which vCenter Chargeback and the load balancer is installed and running. Solution 1 Check whether all the relevant services are running.
vCenter Chargeback User’s Guide 3 Check whether the proxy settings on the Web browser are correct. If you have configured the proxy server settings on the Web browser and included the IP address of the vCenter Chargeback machine in the bypass proxy list (No Proxy for or Exceptions), ensure that the complete IP address or the FQDN of the vCenter Chargeback machine is entered in the list and not a partial address. For example, if the IP address of the machine is 90.0.1.
Chapter 10 Troubleshooting vCenter Chargeback n VMware Cloud Director database port n VMware Cloud Director database password 3 Delete all the hierarchies imported in to vCenter Chargeback from the original VMware Cloud Director setup. 4 Run the following database commands. delete from cb_vcloud_unprocessed_event delete from cb_vsm_server delete from cb_vsm_network delete from cb_vsm_ip delete from cb_server_property where server_property_name='cbEventListRawView.
vCenter Chargeback User’s Guide 4 If you are using Oracle Database for vCenter Chargeback database, then you must set the maximum limit of server appropriately. vCenter Chargeback and each data collector registered with it connect to the vCenter Chargeback database. In the case of a cluster installation the number of connections to the database is higher. To ensure the smooth functioning of vCenter Chargeback, the Oracle Database must be configured to allow a larger number of server process to run.
Chapter 10 Troubleshooting vCenter Chargeback Unable to Email Report Although the report is generated and can be successfully archived or exported, the email report operation fails. Problem vCenter Chargeback fails to send the report through email. The following error might be displayed: Check if the email settings are properly configured. If not, configure them before sending an email. Cause Probable causes for the failure of the email report operation are: n The SMTP server is not configured.
vCenter Chargeback User’s Guide Solution 1 Replace the security-related files, default.cert and default.key, with the custom SSL files. The default.cert and default.key files are stored in the following directory: Installation_Directory/Apache2.2/conf/ssl 2 In the Installation_Directory/Apache2.2/conf/httpd.conf file, modify the SSL certificate file-related entries. SSLCertificateFile conf/ssl/default.cert SSLCertificateKeyFile conf/ssl/default.
Chapter 10 Troubleshooting vCenter Chargeback 4 Check whether the vCenter Chargeback SSL certificate is installed on the VI Client machine. After you register vCenter Chargeback as a plug-in with a vCenter Server, when you log in to the vCenter Server by using VI Client, a Security Warning message is displayed for the vCenter Chargeback SSL certificate. You must either install the certificate or click Ignore on the message window.
vCenter Chargeback User’s Guide 152 VMware, Inc.
Index A application accessing 30 activate 39 authenticate in to 73 configure log level 41 configuring generic settings 39 configuring settings 39 managing users, roles, and permissions 59 permissions defined in 60 resource-based authorization 59 archived reports delete 127 email 126 manage 125 search 127 view 126 attributes add 57 assign 82 delete 57 manage 56 B base rate 88 base rate calculator 94 billing policy create 101 delete 103 managing 101 modify 102 C chargeable computing resource 88 chargeback
vCenter Chargeback User’s Guide enable 51 information about 49 install vCenter Chargeback Data Collector 32 install VMware Cloud Director Data Collector 33 install vShield Manager Data Collector 35 manage 48 modify job interval 50 modify super user password for 53 upgrade 37 view 49 data collectors configure VMware Cloud Director Data Collector 52 configure vShield Manager Data Collector 53 database management scripts about 135 data purging scripts 136 generic scripts 135 space calculation scripts 135 defi
Index report generation schedules 117 schedule 124 types 111 view in interactive report view 122 resource, permissions defined for 60 roles assign user role for a resource 71 assign user role on vCenter Chargeback 70 create 65 delete 66 managing 61 modify 65 predefined roles 61 revoke role for a resource 72 revoke role on vCenter Chargeback 73 change keystore password for secure LDAP 146 custom SSL certificate 149 data collector status 143 database connection failure 147, 148 email report failure 149 fetc
vCenter Chargeback User’s Guide V vCenter Chargeback about 7 architectural overview 8 authenticate in to 73 chargeback in virtual environment 7 cluster 19 cluster installation 19 configuring costs 87 configuring settings 39 cost elements 87 events 132 generate SSL certificate for 18 hardware requirements 11 installing 11 managing users, roles, and permissions 59 monitor system health 131 permissions defined in 60 related services 28 resource-based authorization 59 software requirements 12 upgrading 25 vCen