Sybase コレクタの設定

データベースの可視性を使用して Sybase をモニターするには、15 以降の Sybase を実行する必要があります。

Connection Details

Section Field Description
Create New Collector Database Type The database type that you want to monitor.
Agent The Database Agent that manages the collector.
Collector Name The name you want to identify the collector by.
Connection Details Hostname or IP Address The hostname or IP address of the machine that your database is running on.
Listener Port The TCP/IP address of the port on which your database communicates with the Database Agent.
Custom JDBC Connection String The JDBC connection string generated by the database agent, for example, jdbc:sybase:. You can also specify a custom connection string, which is useful for setting custom authentication options.
Database Credentials Username The name of the user who is connecting to and monitoring the database through the Database Agent. The user should have the permissions described in Sybase のユーザ権限.
Password The password of the user who is connecting to and monitoring the database through the Database Agent.
CyberArk Click to enable CyberArk for database username and password. When CyberArk is enabled, information about Application, Safe, Folder, and Object is required to fetch the username and password for your database. To use CyberArk with Database Visibility, you must download the JavaPasswordSDK.jar file from the CyberArk website. Then, you must copy the JAR file to the lib directory of the database agent zip file.
HashiCorp Vault See Configure the HashiCorp Vault.
Advanced Options Sub-Collectors Click to monitor multiple database instances in a consolidated view, and aggregate metrics of multiple databases. To monitor a custom cluster, you can add additional hostname or IP address, and port details for each sub-collector. You can add up to a total of 29 sub-collectors. Thereby, 30 databases can be monitored in a custom cluster. In addition to the licenses consumed by the main collector, each sub-collector consumes one or more licenses, depending on the database type.
注:
  • All connection parameters other than the hostname or IP address, and port details of the sub-collector are the same as the main collector. If you want to specify different parameters for the sub–collectors, while creating or editing the collector configuration, you can do that only via the Create Collector API.

  • You cannot convert a custom cluster collector to a standalone collector. If you want to monitor a standalone database, delete the entire custom cluster collector and create a fresh standalone collector. However, note that deleting the custom cluster collector will delete all its historical data.
Connection Properties Click to add a new JDBC connection property or edit an existing property for relational databases.
Exclude Databases The databases that you want to exclude, separated by commas.
Monitor Operating System See サーバハードウェアをモニタするデータベースエージェントの構成.

Sybase のユーザ権限

Splunk AppDynamics データベースの可視性の完全な機能を使用するには、モニタリングユーザーに次の表に記載されている権限が必要です。
権限のタイプ 権限
ロール権限
  • sa_role
  • mon_role
選択権限
  • master.dbo.monWaitEventInfo
  • master.dbo.sysconfigures
  • master.dbo.sysmonitors
  • master.dbo.monProcess
  • master.dbo.monProcessLookup
  • master.dbo.monProcessSQLText
  • master.dbo.monProcessProcedures
実行権限
  • sp_sysmon
カスタムデータベースのオブジェクトを参照する必要がある場合は、次のコマンドを使用します。
CODE
use [custom-db-name]
sp_adduser <user-name>
Splunk AppDynamics データベースの可視性のために新しい専用ユーザーを作成するには、次のサンプルユーザー作成スクリプトを使用できます。スクリプトを実行する前に、「password」をよりセキュアな値に変更します。
CODE
create login 'DBMon_Agent_User' with password 'password' go
exec  sp_locklogin  'DBMon_Agent_User', 'unlock'
go
exec  sp_role 'grant', 'mon_role', 'DBMon_Agent_User'
go
ここで、DBMon_Agent_User はデータベースの可視性エージェントを実行するユーザー名です。

また、Splunk AppDynamics データベースの可視性を使用して Sybase ASE データベースをモニターするには、次の設定パラメータを 1(true)に設定する必要があります。「enable monitoring」、「wait event timing」、「SQL batch capture」、および「object lockwait timing」。"max SQL text monitored" を 8192(8 KB)以上に設定する必要もあります。

次に、これらの設定を構成するために必要なコマンドの例を示します。
CODE
sp_configure "enable monitoring", 1
go
sp_configure "wait event timing", 1
go
sp_configure "SQL batch capture", 1
go
sp_configure "object lockwait timing", 1
go
sp_configure "max SQL text monitored", 8192
go

"max SQL text monitored" の値が以前は 4096 よりも小さかった場合、この設定を増やすには Sybase ASE インスタンスを再起動する必要があります。

sa_role 権限なしで Sybase 15.7 以上をモニタするには、次のコマンドを実行します。
CODE
use sybsystemprocs
grant execute on sp_sysmon to mon_role
注: sp_sysmon を使用して Sybase をモニタすることを選択した場合は、次のエラーが発生することがあります。
  • スレッド使用率が誤って報告される。公式レポートはこちらを参照してください。
  • mmap64 または mda_flush_iostats でのタイムスライスエラー。公式レポートはこちらを参照してください。