hp bac adapter install and config guide

30
HP BAC Adapter Installation and Configuration Guide vCenter Operations Manager 1.0 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. EN-000857-03

Upload: ilaaaannnn

Post on 21-Oct-2015

46 views

Category:

Documents


0 download

DESCRIPTION

HP BAC Adapter Install and Config Guide

TRANSCRIPT

HP BAC Adapter Installation andConfiguration Guide

vCenter Operations Manager 1.0

This document supports the version of each product listed andsupports all subsequent versions until the document is replacedby a new edition. To check for more recent editions of thisdocument, see http://www.vmware.com/support/pubs.

EN-000857-03

HP BAC Adapter Installation and Configuration Guide

2 VMware, Inc.

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:

[email protected]

Copyright © 2013 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectualproperty laws. VMware products are covered by one or more patents listed at http://www.vmware.com/go/patents.

VMware is a registered trademark or trademark of VMware, Inc. in the United States and/or other jurisdictions. All other marksand names mentioned herein may be trademarks of their respective companies.

VMware, Inc.3401 Hillview Ave.Palo Alto, CA 94304www.vmware.com

Contents

HP BAC Adapter Installation and Configuration Guide 5

Updated Information 7

1 Introduction to the HP BAC Adapter 9

How the HP BAC Adapter Collects Data 9How the HP BAC Adapter Defines Resource Relationships 9Installation and Configuration Requirements 10Security Considerations 10

2 Installing the HP BAC Adapter 11

Install the Adapter in a Standalone Installation 11Install the Adapter in a vApp Installation 12HP BAC Adapter Folders and Files 13

3 Configuring the HP BAC Adapter 15

Overview of Configuration Steps 15Configuring Data Collection and Relationship Tasks 15Tuning Adapter Operation 24Add an Adapter Instance 24

4 Troubleshooting the HP BAC Adapter 27

Troubleshooting an HP BAC Adapter Instance 27Viewing System Log Files 27Use Test Data to Test an Adapter Instance 28

Index 29

VMware, Inc. 3

HP BAC Adapter Installation and Configuration Guide

4 VMware, Inc.

HP BAC Adapter Installation and ConfigurationGuide

The HP BAC Installation and Configuration Guide describes how to install and configure the HP BusinessAvailability Center (BAC) adapter. The BAC adapter is an embedded adapter forvCenter Operations Manager.

Intended AudienceThis information is intended for anyone who wants to install or configure the BAC adapter.

VMware, Inc. 5

HP BAC Adapter Installation and Configuration Guide

6 VMware, Inc.

Updated Information

The HP BAC Adapter Installation and Configuration Guide is updated with each release of the product or whennecessary.

This table provides the update history of the HP BAC Adapter Installation and Configuration Guide.

Revision Description

EN-000857-03 n Corrected the BPMconfig.xml and SSconfig.xml file names in “Defining Tasks in the BAC AdapterProperties File,” on page 16.

n Corrected step 7 in “Add an Adapter Instance,” on page 24.

EN-000857-02 n Added “Security Considerations,” on page 10.n Added information about log file locations to “Viewing System Log Files,” on page 27.

EN-000857-01 n Changed the product name to reflect the new licensing model for the 5.6 release.n Added the open_source_license.txt file to “HP BAC Adapter Folders and Files,” on page 13.

EN-000857-00 Initial release.

VMware, Inc. 7

HP BAC Adapter Installation and Configuration Guide

8 VMware, Inc.

Introduction to the HP BAC Adapter 1The HP BAC adapter is an embedded adapter for vCenter Operations Manager. The adapter collects data fromHP Business Availability Center (BAC). HP BAC contains components for monitoring and managing businessservices and applications.

This chapter includes the following topics:

n “How the HP BAC Adapter Collects Data,” on page 9

n “How the HP BAC Adapter Defines Resource Relationships,” on page 9

n “Installation and Configuration Requirements,” on page 10

n “Security Considerations,” on page 10

How the HP BAC Adapter Collects DataThe HP BAC adapter uses data collection tasks to retrieve and parse data. You define data collection tasks inthe BAC adapter properties file.

You must create a data collection task XML configuration file for each data collection task. When it runs a datacollection task, the HP BAC adapter parses the data according to the rules in the associated data collection taskXML configuration file.

You can configure a data collection task to use SOAP queries to the BAC Generic Data Engine API, use SQLqueries to the BAC database, or read data from a text file. You can define multiple data collection tasks for asingle HP BAC adapter instance. The adapter runs multiple data collection tasks sequentially during eachcollection cycle.

How the HP BAC Adapter Defines Resource RelationshipsThe HP BAC adapter uses relationship tasks to define parent and child resource relationships based on thedata that the adapter collects during a collection cycle. You define relationship tasks in the BAC adapterproperties file.

You must create a relationship task XML configuration file for each relationship task. When it runs arelationship task, the HP BAC adapter converts the data to parent and child mappings according to the rulesin the associated relationship task XML configuration file.

You can configure a relationship task to use SOAP queries to the BAC Generic Data Engine API, use SQLqueries to the BAC database, or read data from a text file. You can define multiple relationship tasks for a singleHP BAC adapter instance. The adapter runs multiple relationship tasks sequentially during each collectioncycle.

VMware, Inc. 9

Because the HP BAC adapter uses a SET flag to report parent and child relationships to the Collector, onlyspecific children can be in a parent and child relationship for a specific parent. For example, if a relationshipexists between Parent1 and (Child1, Child2), and the adapter reports a relationship between Parent 1 and(Child1, Child3) during the next collection cycle, the adapter removes Child2 and adds Child3 to therelationship with Parent1.

NOTE Resource relationship management is supported only in HP BAC adapter versions 2.6 and later.

Installation and Configuration RequirementsThe HP BAC adapter has certain installation and configuration requirements.

Compatible HP BAC VersionsThe HP BAC adapter supports HP BAC versions 6, 7, 8, and 9. The adapter can read data from all HP RealUser Monitor (RUM), HP Business Process Monitor (BPM), and HP SiteScope versions that can write into theseHP BAC versions.

Connection and Credential RequirementsIf you define a task to use SOAP queries to the BAC Generic Data Engine API, you must specify the URL ofthe BAC Web Service.

If you configure a task to use SQL queries to the BAC database, you must provide a JDBC URL and usercredentials to connect to the database.

Security ConsiderationsThe Collector service must have access to all of the configuration files in the HP BAC adapter's conf andwork folders and the files should be secured. The Collector service must have read access rights to the folderthat contains the HP BAC adapter properties file. You specify the location of the HP BAC adapter propertiesfile when you configure an HP BAC adapter instance.

For more information about HP BAC adapter folders and files, see “HP BAC Adapter Folders and Files,” onpage 13. For information about BAC adapter log files, see “Viewing System Log Files,” on page 27.

HP BAC Adapter Installation and Configuration Guide

10 VMware, Inc.

Installing the HP BAC Adapter 2How you install the HP BAC adapter depends on whether you have a vCenter Operations Manager Standaloneor vApp installation.

This chapter includes the following topics:

n “Install the Adapter in a Standalone Installation,” on page 11

n “Install the Adapter in a vApp Installation,” on page 12

n “HP BAC Adapter Folders and Files,” on page 13

Install the Adapter in a Standalone InstallationIf you have a standalone installation, you install the HP BAC adapter by extracting installation files from aTGZ file and running an installation utility.

Prerequisites

n Download the adapter installation TGZ file anonymously from ftp://ftp.integrien.com/.

n Make a note of the build number in the TGZ file name. The build number appears after the adapter name,for example, adaptername-buildnumber.tgz.

n Read the release notes that are included with the TGZ file.

Procedure

1 Open the TGZ file and extract the TAR file to a temporary folder on your vCenter Operations Managerserver.

2 In the temporary folder, open the TAR file and extract and run the installer for your operating systemplatform.

3 Log in to the Custom user interface as an administrator.

4 Select Admin > Support.

5 On the Info tab, find the Adapters Info pane and click the Describe icon ( ).

The Describe icon is located at the top right of the Adapters Info pane.

6 Click Yes to start the describe process and click OK.

The Custom user interface finds the adapter files, gathers information about the abilities of the adapter,and updates the user interface with information about the adapter. If you have remote collectors, it installsthe adapter on the remote collectors.

The describe process might take several minutes. When the describe process is finished, the adapterappears in the Adapters Info pane. The build number is in the Adapter Version column.

VMware, Inc. 11

7 Verify that the build number in the Adapter Version column for the adapter matches the build number inthe TGZ file that you downloaded.

The installer creates the bac_adapter3 folder and bac_adapter3.jar file in the vcenter-ops\user\plugins\inbound folder.

Install the Adapter in a vApp InstallationIf you have a vApp installation, you install the HP BAC adapter from a PAK file.

Prerequisites

n Download the adapter installation PAK file anonymously from ftp://ftp.integrien.com.

n Make a note of the build number in the PAK file name. The build number appears after the adapter name,for example, adaptername-buildnumber.pak.

n Read the release notes that are included with the PAK file.

Procedure

1 Save the PAK file in a temporary folder.

2 Log in to the Admin user interface as the admin user.

For example: https://ipaddress/admin/

3 On the Update tab, click Browse to locate the temporary folder and select the PAK file.

4 Click Update and click OK to confirm the update.

The Admin user interface uploads the PAK file. The upload might take several minutes.

5 Read and accept the EULA and click OK.

6 Click OK to confirm and start the update process.

The update might take several minutes. Status information appears on the Update tab when the updateis finished.

7 Log in to the Custom user interface as an administrator.

For example: https://ipaddress/vcops-custom/

8 Select Admin > Support.

9 On the Info tab, find the Adapters Info pane and click the Describe icon ( ).

The Describe icon is located at the top right of the Adapters Info pane.

10 Click Yes to start the describe process and click OK.

The Custom user interface finds the adapter files, gathers information about the abilities of the adapter,and updates the user interface with information about the adapter.

The describe process might take several minutes. When the describe process is finished, the adapterappears in the Adapters Info pane. The build number is in the Adapter Version column.

11 Verify that the build number in the Adapter Version column for the adapter matches the build number inthe PAK file that you uploaded.

The installer creates the bac_adapter3 folder and bac_adapter3.jar file in the vcenter-ops\user\plugins\inbound folder.

HP BAC Adapter Installation and Configuration Guide

12 VMware, Inc.

HP BAC Adapter Folders and FilesThe installer places the HP BAC adapter files in the bac_adapter3 folder.

The bac_adapter3 folder contains several folders, subfolders, and files.

Table 2-1. HP BAC Adapter Folders, Subfolders, and Files

Folder File Subfolder Description

conf bac.properties BAC adapter properties file.

open_source_license.txt Open source license file.

examples Contains sample files.

describe.xml Describes the adapter.

history.txt Contains the history of the adapterchanges.

version.txt Contains version information.

lib commons-dbcp-1.2.1.jarcommons-pool-1.2.jar

mysql.jar

ojdbc14.jar

pg73jdbc3.jar

postgresql-8.3dev-600.jdbc3.jar

sqljdbc4.jar

JAR files that contain classes and resourcesused to implement queries.

work You must save your task XMLconfiguration files in this folder.

Chapter 2 Installing the HP BAC Adapter

VMware, Inc. 13

HP BAC Adapter Installation and Configuration Guide

14 VMware, Inc.

Configuring the HP BAC Adapter 3To configure the HP BAC adapter, you must configure data collection and relationship tasks and add anadapter instance. You can optionally modify properties in the BAC adapter properties file to tune adapteroperation.

This chapter includes the following topics:

n “Overview of Configuration Steps,” on page 15

n “Configuring Data Collection and Relationship Tasks,” on page 15

n “Tuning Adapter Operation,” on page 24

n “Add an Adapter Instance,” on page 24

Overview of Configuration StepsYou must perform the HP BAC adapter configuration steps in a particular order.

1 Configure data collection and relationship tasks. See “Configuring Data Collection and RelationshipTasks,” on page 15.

2 (Optional) Modify properties in the BAC adapter properties file to tune adapter operation. See “TuningAdapter Operation,” on page 24.

3 Add an adapter instance and start data collection. See “Add an Adapter Instance,” on page 24

Configuring Data Collection and Relationship TasksYou define data collection and relationship tasks in the bac.properties file in the conf folder. You must createa data collection XML configuration file for each data collection task and a relationship XML configuration filefor each relationship task.

NOTE In a vApp installation, you modify the bac.properties file on the Analytics virtual machine.

VMware, Inc. 15

Defining Tasks in the BAC Adapter Properties FileThe bac.properties file contains task properties that you use to define data collection and relationship tasks.You can configure multiple tasks for a single adapter instance. The adapter runs tasks sequentially.

Table 3-1. bac.properties File Task Properties

Property Description

TASK_COUNT Number of tasks to run. For example:TASK_COUNT=1

TASKn_CONFIG Name of the XML configuration file for task n. For example:TASK1_CONFIG=/work/Config.xml

TASKn_START (Optional) Time to start task n in the format MM/DD/YYYY. For example:TASK1_START=02/25/2012

The following example defines three tasks.

TASK_COUNT=3

TASK1_CONFIG=BPMconfig.xml

TASK2_CONFIG=SSconfig.xml

TASK3_CONFIG=RUMconfig.xml

You can also modify properties in the bac.properties file to tune adapter operation. See “Tuning AdapterOperation,” on page 24.

Creating a Data Collection Task XML Configuration FileA data collection task XML configuration file contains elements and attributes that define how to retrieve andparse data for a data collection task. You must save your data collection task XML configuration files in thework folder.

<Format> ElementThe entire content of an data collection task XML configuration file is contained within the <Format> and</Format> tags. The <Format> element contains the <Row> and <Property> elements.

<Row Element>The <Row> element is a child element of the <Format> element. It contains elements that identify the resourceand describe how to parse a row of data. The following example is of a <Row> element:

<Row>

<ResourceName index="0"></ResourceName>

<ResourceKind name="RUM"></ResourceKind>

<Timestamp index="4"></Timestamp>

<Metric name="Hits" val_index="2"></Metric>

<Metric name="Server Time" val_index="3"></Metric>

</Row>

<ResourceName> ElementThe <ResourceName> element is a child element of the <Row> element. It contains attributes that specify the nameof the resource.

HP BAC Adapter Installation and Configuration Guide

16 VMware, Inc.

Table 3-2. <ResourceName> Attributes

Attribute Value

name String value that specifies the name of the resource.

index Index value that specifies the column in the row that contains the resource name.

<ResourceKind> ElementThe <ResourceKind> element is a child element of the <Row> element. It contains attributes that specify the nameof the resource kind.

Table 3-3. <ResourceKind> Attributes

Attribute Value

name String value that specifies the name of the resource kind.

index Index value that specifies the column in the row that contains the resource kind name.

<Timestamp> ElementThe <Timestamp> element is a child element of the <Row> element. It contains the index attribute, which specifiesthe column in the row that contains the timestamp. The timestamp must be in epoch time.

<Metric> ElementThe <Metric> element is a child element of the <Row> element. It contains attributes that describe metrics.

Table 3-4. <Metric> Attributes

Attribute Value

name String value that specifies the name of the metric.

index Index value that specifies the column in the row that contains the metric name.

group_name String value that specifies the name of the parent group for the metric.

group_index Index value that specifies the column in the row that contains the name of the parentgroup for the metric.

instance_index Index value that specifies the column in the row that contains the instance name ofthe metric. For this value to take effect, you must specify the parent group by nameor index.

val_index Index value that specifies the column in the row that contains the metric value.

filter_instance Boolean value that specifies whether to validate the instance name against theresource name map. If true, the adapter forwards the metric that hasinstance_index instance name to vCenter Operations Manager if the metriccontains the original resource name or any of the mapped names. If false, thedefault value, validation is disabled.

valid_instance (Optional) Regular expression to use for instance name validation. If specified, theadapter forwards to vCenter Operations Manager only metrics that have instancenames that match the regular expression.

exclude_instance (Optional) Regular expression to use for instance name validation. If specified, theadapter forwards to vCenter Operations Manager only metrics that have instancenames that do not match the regular expression.NOTE exclude_instance takes precedence over valid_instance.

hide_instance_for_groups (Optional) Comma-delimited list of group names that should not have instances.Names are not case sensitive.

Chapter 3 Configuring the HP BAC Adapter

VMware, Inc. 17

<ResourceMap> ElementThe <ResourceMap> element is a child element of the <Row> element. It contains a name attribute, which specifiesa resource name, and one or more <Value> elements. Each <Value> element specifies a single resource to mapto the resource specified in the name attribute. The following example is of a <ResourceMap> element:

<ResourceMap name="exServer">

<Value>10.1.15.22</Value>

<Value>exserver.test.com</Value>

<Value>exserv22.test.com</Value>

</ResourceMap>

<ColumnMap> ElementThe <ColumnMap> element is a child element of the <Row> element. It contains attributes that map a source columnto a destination column.

Table 3-5. <ColumnMap> Attributes

Attribute Value

dest_index Index value that specifies the destination column in the row. The destination column contains thevalues of the source column separated by the delimiter specified in delimiter.

src_index Index value that specifies the source column in the row. If you specify a plus sign (+) after the indexvalue, the adapter merges all of the columns starting from the index value.

delimiter String that specifies the delimiter to use to separate entries in the destination column. The defaultdelimter is a comma (,). If you specify an empty string (""), the adapter concatenates all of thevalues.

The following example is of a <ColumnMap> element:

<ColumnMap dest_index="3" src_index="3,+" delimiter=""></ColumnMap>

In this example, if the source column contains 0,1,2,3,4,5,6, the destination column contains 0,1,2,3456. Theadapter merges and concatenates the values 3,4,5,6 because the mapping is set to merge columns startingfrom index 3 (src_index="3,+") and the delimiter is set to an empty string (delimiter="").

<Property> ElementThe <Property> element is a child element of the <Format> element. It contains attributes that define theconnection type. Each attribute consists of a name and value pair, for example:

<Property name="request_type" value="soap"></Property>

Table 3-6. <Property> Attributes

Name Value

request_type (Optional) Type of connection. The following connection types are supported:n soap (the default value)n db

n file

request_file Request file name.n For a SOAP connection, specify the file that contains the SOAP message. The

SQL query specified inside the query tag must have the following where clause:

where time_stamp BETWEEN %s AND %s

n For a database connection, specify the file that contains the database connectionproperties and query specification.

n For a file connection, specify the file that contains the source data.

HP BAC Adapter Installation and Configuration Guide

18 VMware, Inc.

Table 3-6. <Property> Attributes (Continued)

Name Value

soap_request_file Deprecated. Same as request_file.

web_service_url URL of the BAC Web Service from which to retrieve data. Valid only for SOAPconnections.

discovery_file Discovery request configuration file. Valid only for SOAP connections.

wait_for_expr_data Time to wait for metric data before calculating expression values.

wait_for_metric_data Time to wait for metric data before adding a 0 value.

query_time_shift (Optional) Time shift to apply to the query window to avoid fluctuation. Defaultis 0 (no effect).

collection_interval Time interval to collect data from the data source. This adapter uses this value asthe monitoring interval for all resources that have the specified resource kind.

autodiscovery_enabled Boolean value that specifies whether to enable auto-discovery. When auto-discovery is enabled, resources are created for you invCenter Operations Manager when the data collection process discovers newresources. If you set this value to false, you must manually discover resources.The default is false.NOTE Auto-discovery is supported only in HP BAC adapter versions 2.6 and later.

discovery_lookback_time Defines the length of the manual discovery query time window as follows:(current_time - discovery_lookback_time, current_time)

The default is one hour.

Data Collection Task XML Configuration File ExampleThe following example is of a data collection task XML configuration file.

<?xml version="1.0" encoding="UTF-8"?>

<Format>

<Row>

<ResourceName name="%1$s"></ResourceName>

<ResourceKind name="BPM"></ResourceKind>

<Timestamp index="12"></Timestamp>

<Metric name="Summary Connection Time" val_index="1"></Metric>

<Metric name="Summary DNS Time" val_index="2"></Metric>

<Metric name="Summary Download Time" val_index="3"></Metric>

<Metric name="Sum First Buf Time" val_index="4"></Metric>

<Metric name="Sum Net Time" val_index="5"></Metric>

<Metric name="Sum Retry Time" val_index="6"></Metric>

<Metric name="Sum Server Time" val_index="7"></Metric>

<Metric name="Sum SSL Time" val_index="8"></Metric>

<Metric name="Response Time" val_index="9"></Metric>

<Metric name="Size" val_index="10"></Metric>

<Metric name="Component Error Count" val_index="11"></Metric>

</Row>

<Property name="web_service_url"

value="http://10.118.48.137:80/topaz/gdeopenapi/services/GdeWsOpenAPI"></Property>

<Property name="soap_request_file" value="soaprequestBPM.xml"></Property>

<Property name="discovery_file" value="BPMdiscover.xml"></Property>

</Format>

Chapter 3 Configuring the HP BAC Adapter

VMware, Inc. 19

Creating a Relationship Task XML Configuration FileA relationship task XML configuration file contains elements and attributes that define a parent and childresource relationship. You must save relationship task XML configuration files in the work folder.

<Format> ElementThe entire content of a relationship task XML configuration file is contained within the <Format> and</Format> tags. The <Format> element contains the <Relationship> and <Property> elements.

<Relationship> ElementThe <Relationship> element contains elements that define a single parent and child resource relationship. Thefollowing example is of the <Relationship> element.

<Relationship>

<ParentResourceName index="1"></ParentResourceName>

<ParentResourceKind name="BPM Location"></ParentResourceKind>

<ChildResourceName name="%1$s_%2$s"></ChildResourceName>

<ChildResourceKind name="BPM"></ChildResourceKind>

</Relationship>

<ParentResoureName> ElementThe <ParentResourceName> element is a child element of the <Relationship> element. It contains attributes thatspecify the name of the parent resource.

Table 3-7. <ParentResourceName> Attributes

Attribute Value

name String value that specifies the name of the parent resource.

index Index value that specifies the column that contains the parent resource name.

<ParentResourceKind> ElementThe <ParentResourceKind> element is a child element of the <Relationship> element. It contains attributes thatspecify the name of the parent resource kind.

Table 3-8. <ParentResourceKind> Attributes

Attribute Value

name String value that specifies the name of the parent resource kind.

index Index value that specifies the column that contains the parent resource kind name.

<ChildResourceName> ElementThe <ChildResourceName> element is a child element of the <Relationship>. It contains attributes that specifythe name of the child resource.

Table 3-9. <ChildResourceName> Attributes

Attribute Value

name String value that specifies the name of the child resource.

index Index value that specifies the column that contains the child resource name.

HP BAC Adapter Installation and Configuration Guide

20 VMware, Inc.

<ChildResourceKind> ElementThe <ChildResourceKind> element is a child element of the <Relationship> element. It contains attributes thatspecify the name of the child resource kind.

Table 3-10. <ChildResourceKind> Attributes

Attribute Value

name String value that specifies the name of the child resource kind.

index Index value that specifies the column that contains the child resource kind name.

<Property> ElementThe <Property> element is a child element of the <Format> element. It contains attributes that define theconnection type. Each attribute consists of a name and value pair, for example:

<Property name="request_type" value="soap"></Property>

Table 3-11. <Property> Attributes

Name Value

request_type (Optional) Type of connection. The following connection types are supported:n soap (the default value)n db

n file

request_file Request file name.n For a SOAP connection, specify the file that contains the SOAP message. The

SQL query specified inside the query tag must have the following where clause:

where time_stamp BETWEEN %s AND %s

n For a database connection, specify the file that contains the database connectionproperties and query specification.

n For a file connection, specify the file that contains the source data.

soap_request_file Deprecated. Same as request_file.

web_service_url URL of the BAC Web Service from which to retrieve data. Valid only for SOAPconnections.

discovery_file Discovery request configuration file. Valid only for SOAP connections.

wait_for_expr_data Time to wait for metric data before calculating expression values.

wait_for_metric_data Time to wait for metric data before adding a 0 value.

query_time_shift (Optional) Time shift to apply to the query window to avoid fluctuation. Defaultis 0 (no effect).

collection_interval Time interval to collect data from the data source. This adapter uses this value asthe monitoring interval for all resources that have the specified resource kind.

autodiscovery_enabled Boolean value that specifies whether to enable auto-discovery. When auto-discovery is enabled, resources are created for you invCenter Operations Manager when the data collection process discovers newresources. If you set this value to false, you must manually discover resources.The default is false.NOTE Auto-discovery is supported only in HP BAC adapter versions 2.6 and later.

discovery_lookback_time Defines the length of the manual discovery query time window as follows:(current_time - discovery_lookback_time, current_time)

The default is one hour.

Chapter 3 Configuring the HP BAC Adapter

VMware, Inc. 21

Relationship Task XML Configuration File ExampleThe following example is of a relationship task XML configuration file.

<?xml version="1.0" encoding="UTF-8"?>

<Format>

<Relationship>

<ParentResourceName index="1"></ParentResourceName>

<ParentResourceKind name="BPM Location"></ParentResourceKind>

<ChildResourceName name="%1$s_%2$s"></ChildResourceName>

<ChildResourceKind name="BPM"></ChildResourceKind>

</Relationship>

<Property name="web_service_url" value="http://BACServer:

80/topaz/gdeopenapi/services/GdeWsOpenAPI"></Property>

<Property name="soap_request_file" value="/conf/soaprequest-sitescope.xml"></Property>

<Property name="collection_interval" value="10"></Property>

</Format>

SOAP Connection Configuration ExampleThis example shows a SOAP connection configuration.

Property AttributesThe following example shows the <Property> element attributes in a task XML configuration file for a SOAPconnection.

<Property name="web_service_url"

value="http://10.118.48.137:80/topaz/gdeopenapi/services/GdeWsOpenAPI"></Property>

<Property name="request_file" value="soaprequestBPM.xml"></Property>

<Property name="discovery_file" value="BPMdiscover.xml"></Property>

SOAP Request FileThe following example is of a SOAP request file. You use the <Property> element request_file attribute tospecify the location of this file.

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:gdew="http://qalab-137.qa1int.com/topaz/gdeopenapi/services/GdeWsOpenAPI">

<soapenv:Header/>

<soapenv:Body>

<gdew:getDataWebService soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<user xsi:type="soapenc:string"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">admin</user>

<password xsi:type="soapenc:string"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">admin</password>

<query xsi:type="soapenc:string"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">select szTransactionName,

u_iSumConnectionTime, u_iSumDnsTime,u_iSumDownloadTime, u_iSumFirstBufTime, u_iSumNetTime,

u_iSumRetryTime, u_iSumServerTime, u_iSumSSLTime, dResponseTime, u_iSize, iComponentErrorCount,

time_stamp from trans_t where time_stamp BETWEEN %s AND %s order by 13 asc </query>

</gdew:getDataWebService>

</soapenv:Body>

</soapenv:Envelope>

HP BAC Adapter Installation and Configuration Guide

22 VMware, Inc.

SOAP Discovery FileThe following example is of a SOAP discovery file. You use the <Property> element discovery_file attributeto specify the location of this file.

<?xml version="1.0" encoding="UTF-8"?>

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:gdew="http://qalab-137.qa1int.com/topaz/gdeopenapi/services/GdeWsOpenAPI">

<soapenv:Header/>

<soapenv:Body>

<gdew:getDataWebService soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

<user xsi:type="soapenc:string"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">admin</user>

<password xsi:type="soapenc:string"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">admin</password>

<query xsi:type="soapenc:string"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">select distinct szTransactionName as

ResourceName from trans_t</query>

</gdew:getDataWebService>

</soapenv:Body>

</soapenv:Envelope>

Database Connection Configuration ExampleThis example shows a database connection configuration.

Property AttributesThe following example shows the <Property> element attributes in a task XML configuration file for a databaseconnection.

<Property name="request_type" value="db"></Property>

<Property name="request_file" value="db1.properties"></Property>

Database Connection Properties FileThe following example is of a database connection properties file. You use the <Property> elementrequest_file attribute to specify the location of this file.

driverClassName=org.postgresql.Driver

url=jdbc:postgresql://192.168.1.12:9432/hqdb

username=hqadmin

password=hqadmin

defaultAutoCommit=true

maxActive=20

initialSize=5

minIdle=1

maxIdle=20

poolPreparedStatements=false

maxWait=3000

maxOpenPreparedStatements=0

sqlQuery=select timestamp, measurement_id, value from hq_metric_data where timestamp between ?

and ?

Chapter 3 Configuring the HP BAC Adapter

VMware, Inc. 23

File Connection Configuration ExampleThe following example shows the <Property> element attributes in a task XML configuration file for a fileconnection.

<Property name="request_type" value="file"></Property>

<Property name="request_file" value="data.txt"></Property>

In the example, data.txt is the source file for the data.

Tuning Adapter OperationThe bac.properties file in the conf folder contains properties that you can modify to tune adapter operation.

NOTE In a vApp installation, you modify the bac.properties file on the Analytics virtual machine.

Table 3-12. bac.properties Properties for Adapter Tuning

Property Description Default

maxSendChunkInterval For historical collection mode, the maximum interval, inmilleseconds, to buffer data before sending it tovCenter Operations Manager.

3600000

maxQueryWindow Maximum trailing time from the current to query, inminutes.

15

minQueryWindow Minimum trailing time from the current time to query, inminutes. Together with maxQueryWindow, this propertyspecifies the length of the collection window.

1

goBacktime If TASK_START time is not specified for TASK_CONFIG, theamount of time, in milliseconds, to go back from the currenttime to start data collection.

0

historicLoadEnabled When this property is set to true, historical collection modeis enabled.In historical collection mode, the BAC adapter beginssending data from the specified TASK_START time and splitsdata into chunks according to the maxSendChunkIntervallength. When it reaches the current time, the flag resets.

false

timeZoneShiftPlaceholder Time zone replacement placeholder. %TZ

timeZoneShift Replacement value for the time zone shift. This valuerepalces the placeholder in SOAP and database queries.

0

For information about configuring task properties in the bac.properties file, see “Defining Tasks in the BACAdapter Properties File,” on page 16.

Add an Adapter InstanceYou must create an adapter instance for the HP BAC adapter. The adapter instance defines the adapter typeand specifies the location of the BAC adapter properties file.

Prerequisites

Install the HP BAC adapter. See Chapter 2, “Installing the HP BAC Adapter,” on page 11.

Procedure

1 Log in to the Custom user interface as an administrator.

2 Select Environment > Configuration > Adapter Instances.

HP BAC Adapter Installation and Configuration Guide

24 VMware, Inc.

3 Select the collector to use from the Collector drop-down menu.

Unless you added additional collectors, the only available collector is vCenter Operations Server. Youcan change the name of this collector when you install the standalone version.

4 Select BAC from the Adapter Kind drop-down menu.

5 Click the Add New Adapter Instance icon.

6 Type a name for the adapter in the Adapter Instance Name text box.

7 Type the name of the BAC adapter properties file in the Property File text box.

8 Click Test to test the availability of the BAC adapter properties file.

9 Click OK to save your configuration.

What to do next

Start data collection. If you enabled auto-discovery for a task, resources are created when the data collectionprocess discovers new resources. If you did not enable auto-discovery, you must use manual discovery tocreate resources.

For information about starting data collection and discovering resources, see the administration guide for yourvCenter Operations Manager version.

Chapter 3 Configuring the HP BAC Adapter

VMware, Inc. 25

HP BAC Adapter Installation and Configuration Guide

26 VMware, Inc.

Troubleshooting the HP BAC Adapter 4Known troubleshooting information can help you diagnose and correct problems with the HP BAC adapter.Log files contain valuable information about adapter instance operation.

This chapter includes the following topics:

n “Troubleshooting an HP BAC Adapter Instance,” on page 27

n “Viewing System Log Files,” on page 27

n “Use Test Data to Test an Adapter Instance,” on page 28

Troubleshooting an HP BAC Adapter InstancePerform these general troubleshooting steps to diagnose and correct problems with an HP BAC adapterinstance.

1 View the collection status and collection state for the adapter instance resource on the EnvironmentOverview page in the Custom user interface.

2 Check the adapter and collector log files for errors. See “Viewing System Log Files,” on page 27.

Viewing System Log FilesYou can view HP BAC adapter errors in the adapter and collector log files. You can view log files in the Customuser interface or in an external log viewer.

HP BAC adapter log files are in the vcenter-ops/user/log/adapters/BACAdapter folder and collector log filesare in the vcenter-ops/user/log folder, where vcenter-ops represents your installation folder. In a vAppinstallation, log files are on the Analytics virtual machine.

The logging level is set to ERROR by default. To troubleshoot issues, set the logging level to INFO. To viewdetailed messages, including micro steps, queries, and returned results, set the logging level to DEBUG.

NOTE If you set the logging level to DEBUG, log files can become large very quickly. Set the logging level toDEBUG only for short periods of time.

For information about viewing log files and modifying logging levels, see the online help.

VMware, Inc. 27

HP BAC Adapter ClassesThe HP BAC adapter uses certain adapter classes.

Table 4-1. HP BAC Adapter Classes

Class Description

com.integrien.adapter3.bac.BACAdapter Main entry class.

com.integrien.adapter3.bac.XMLConfigReader XML configuration file reader.

com.integrien.adapter3.bac.DataReader Main collection logic.

com.integrien.adapter3.bac.BACAdapterUtils Utility class.

Use Test Data to Test an Adapter InstanceIf you do not have access to an HP BAC installation, you can test your HP BAC adapter instance by configuringtasks that read data from text files generated by a script or application.

Procedure

1 Create a data collection task XML configuration file and name it Data.xml.

2 In Data.xml, set the request type to file and set the request file name to data.txt.

For example:

<Property name="request_type" value="file"></Property>

<Property name="request_file="data.txt"></Property>

3 Create a relationship task XML configuration file and name it Relationships.xml.

4 In Relationships.xml, set the request type to file and set the request file name to relationships.txt.

For example:

<Property name="request_type" value="file"></Property>

<Property name="request_file="relationships.txt"></Property>

5 In the BAC adapter properties file, define a data collection task that uses Data.xml and a relationship taskthat uses Relationships.xml.

For example:

TASK_COUNT=2

TASK1_CONFIG=Data.xml

TASK2_CONFIG=Relationships.xml

6 Add an adapter instance and configure the instance to read the BAC adapter properties file.

7 Run a script or application that writes lines in the appropriate format to the data.txt andrelationships.txt files.

You can purge the content of the files after each data collection cycle.

8 Start data collection for the adapter instance resource.

9 If you did not enable auto-discovery, use manual discovery to discover resources.

You should see metrics and relationships in the Custom user interface.

HP BAC Adapter Installation and Configuration Guide

28 VMware, Inc.

Index

Aadapter classes 28adapter instances 24audience information 5

Bbac_adapter3 folder 13bac.properties file 24

Cconfiguration steps 15

Ddata collection methods 9data collection task XML files, syntax 16data collection tasks 15database connection 23

Ffile connection 24

Iinstalling the adapter 11, 12introduction 9

Llog files 27

Rrelationship task XML configuration file 20requirements 10resource relationships 9

Ssecurity considerations 10SOAP connections 22

TTASK properties 16testing an adapter instance 28troubleshooting steps 27

Uupdated information 7

VMware, Inc. 29

HP BAC Adapter Installation and Configuration Guide

30 VMware, Inc.