Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 231887

Re: SQL Query for Oracle DB monitoring using vCOPS

$
0
0

The General SQL Adapter requires you to write a query and output the results of that query into the proper fields in vcops. I have pasted an example below which queries a SQL server database for Citrix. After the SELECT statement, you must map the fields of the target database into the RESOURCENAME and RESOURCEKINDs for vcops.

 

Definitely read the instructions posted on the ftp site

 

ftp://ftp.integrien.com/VCOPS-Third_Party_Tool_Adapters/General%20SQL/SQL-Loader-Adapter-Install-and-Config-Guide.pdf

 

 

SELECT

 

.[server_name] AS ,

 

'XenApp_Application_License' AS ,

 

'' AS ,

 

.[tstamp] AS ,

 

'permenant_license_count' AS ,

 

SUM(.[perm_license_count]) AS ,

 

'in_use_license_count' AS ,

 

SUM(.[in_use_license_count]) AS ,

 

'overdraft_license_count' AS ,

 

SUM(.[overdraft_count]) AS ,

 

'available_license_count' AS ,

 

SUM(.[perm_license_count]) - SUM(.[in_use_license_count]) AS

 

FROM

 

WITH (NOLOCK)

 

WHERE

 

.[tstamp] = (

 

SELECT

 

MAX(.[tstamp])

 

FROM

 

WITH (NOLOCK)

 

)

 

AND

 

.[product_family_name] NOT IN ('Startup')

 

GROUP BY

 

.[tstamp],

 

.[server_name]


Viewing all articles
Browse latest Browse all 231887

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>