DBX Agent Setting
Write the settings for the DBX agent in the whatap.conf file. For the options that can be set, see the following.
Default options
-
license String
To install the agent, set the project access key granted from the server. The project access key includes the agent's project and the encryption key for secured communication.
-
whatap.server.host String
Default
127.0.0.1,127.0.0.1Specify the IP address of the collection server to transfer the data collected by the agent. If there are multiple IP addresses for collection server redundancy, use comma (,) as the delimiter. The collection server proxy daemon must be serviced in the listening state for the set IP address.
-
whatap.server.port String
Default
6600Set the port of the collection server. Because only one port can be set, use the same port set in the "whatap_server_host" option.
-
dbms String
cubridCautionIf other option values are entered, data collection for monitoring may not work.
-
db String
Set the name of the database to be monitored.
-
db_ip String
Set the IP address of the database server to be monitored.
CUBRID-dedicated options
-
db_port Int
Default
0Broker port information used for application connection information. Enter the value defined in
BROKER_PORTin the broker configuration file (cubrid_broker.conf). (CUBRID defaultBROKER_PORT: 33000) -
cms_port Int
Default
8001This port is used by CUBRID Manager. In the CUBRID Manager configuration file (cm.conf), enter the value defined in
cm_port. It is necessary to fetch monitoring information through the API of CUBRID Manager. -
cms_token_file String
If there are multiple DBs created by the user, WhaTap agents must have been installed and set as many as the number of DBs. In this case, the
cms_token_filepath is required to share tokens between agents. Set to{Agent installation path}/cms_token.For example) If agent2 has been installed, set as follows to share the
cms_token_filepath of agent1.whtap.confcms_token_file=/agent1/cms_token -
broker String
Default
broker1,query_editorOnce CUBRID has been installed, the broker runs as
broker1andquery_editorby default. If you arbitrarily changed the name of the broker or started it additionally, enter the changes.NoteThe name to set with the
brokeroption can be viewed by thecubrid broker statuscommand.
Data collection
-
db_param_enabled Boolean
Default
trueIt sets whether or not to collect the DB parameters.
-
conn_fail_count Int
Default
15It sends a notification when the connection error occurs consecutively 15 times. You can adjust the notification trigger criteria by entering the desired number.
-
long_run_session_sec Second
Default
10(unit: second)A session that has been running longer than the set time is treated as a long run session.
-
tables Boolean
Default
trueIt collects the table size information. In Stat/Report > DB size, you can see the table size by selecting the database.
-
tables_hour Int
Default
5Set the time to collect data for storing the table size information. The default value is
5and collection starts at 5 am.
-
tables_min_row Int
Default
10000When collecting the table information, table data with the number of rows smaller than the set value is not collected.
User Metric Collection (SQLMON)
SQLMON periodically collects the results of user-defined SQL queries and stores them as metrics.
It is suitable for lightweight queries that return numeric results.
-
sqlmon Int
Default value:
11: Run both dbx and sqlmon simultaneously2: Run only sqlmon
Supported version: 2.3.5 or later
Configuration
- Create a
sqlmondirectory under the dbx agent and create<filename>.sqlfiles for the queries you want to collect.
dbx/
└── sqlmon/
├── active_sessions.sql
└── lock_count.sql
- Save the query to be collected as a
<filename>.sqlfile.
Write the execution options on the first line and the SQL statement from the second line onward.
interval(min);run_time;tag_name
SQL statement
| Item | Description | Example |
|---|---|---|
| Interval | Execution interval in minutes, minimum 1 | 1 → runs every 1 minute |
| Run time | HHMM-HHMM format, multiple ranges separated by comma (,). Set 0 to run at all times | 0900-1100 → runs only 09:00–11:00 |
| Tag name | Tag name stored in metrics. If omitted, the file name is used as the tag name | whatap |
1;0900-1100;whatap
SELECT count(*) FROM active_sessions
1;0
SELECT count(*) FROM active_sessions
- Run time can span across dates. (e.g.,
2300-0100→ 23:00 to 01:00 the next day) - When omitting the tag name, do not add a semicolon (
;) after the run time. - Do not add a semicolon (
;) at the end of the SQL statement.
-
Enable SQLMON in
whatap.conf. -
Restart the agent.
-
In the
Sitemap > Metrics Search menu, check the
sqlmoncategory.
# whatap.conf
sqlmon=1
Applying the AES 256 encryption
The WhaTap DBX agent transfers the collected data to the server after encryption. You can change this depending on the importance of the data or setting. Basically, the XOR operation and encryption through the AES algorithm are used, and encryption and decryption are performed by dividing the plain text into 128-bit units. It can be expanded up to 256 bits depending on the setting.
Add the following options to the whatap.conf file in the path where the WhaTap DBX agent has been installed.
cypher_level=256
Add the settings and then restart the agent.
Agent name setting
Automatic configuration
If you do not set the agent name in the agent configuration (whatap.conf), the agent name is automatically determined by combining the IP address and the port number. For example, if the IP address is 10.11.12.13 and the port number is 3000, the agent name is set to DBX-12-13-3000.
The key variables that determine the agent name are as follows:
| Configuration | Description |
|---|---|
{type} | The DBX value is used. |
{ip0} | The first byte of the IPv4 address is used. (e.g. 10 in 10.11.12.13) |
{ip1} | The second byte of the IPv4 address is used. (e.g. 11 in 10.11.12.13) |
{ip2} | The third byte of the IPv4 address is used. (e.g. 12 in 10.11.12.13) |
{ip3} | The fourth byte of the IPv4 address is used. (e.g. 13 in 10.11.12.13) |
{port} | Database server port |
If the IP address is not numeric like RDS, the name is set in the following format: DBX-{ip0}-{hash}-{port}, where the {hash} value is the IP address that has been converted to 4-digit hexadecimal number.
Manual configuration
To set the agent name manually, enter a desired name for the whatap.name or object_name option in the whatap.conf file. The entered name is assigned to the agent name.
whatap.name=agent-1234
# or
object_name=agent-1234