Setting Up Configuration Watch

Add property files in Percona so the agent watches host instances for config changes.

2 min read Updated SS

Follow the below steps to configure the configuration watch for host component instances:

Note:
Create host component instances before you start. These steps apply only to the component instances existing in HEAL server.

1. Execute the following query in Percona to add a property file for the property watch:

INSERT INTO `comp_instance_kpi_group_details` VALUES
(<Id>,'<File_Path>',1,utc_timestamp(),utc_timestamp(),'7640123a-fbde-4fe5-9812-581cd1e3a9c1',
<comp_instance_id>,224,3600,264,0,'FetchFileProperties',20,124);

ID: This should be a unique ID (auto-increment) in the table.

File_Path: This should be an absolute path of the properties file that the property watches monitors.

comp_instance_id: This is the id present in the comp_instance table of a component instance.

2. Execute the following query in Percona to add a file for file watch:

INSERT INTO `comp_instance_kpi_group_details` VALUES
(<Id>,'<File_Path>',1,utc_timestamp(),utc_timestamp(),'7640123a-fbde-4fe5-9812-581cd1e3a9c1',
<comp_instance_id>,225,3600,265,0,'FileWatcher',21,125);

ID: This should be a unique ID (auto-increment) in the table.

File_Path: This should be an absolute path of the properties file that the file watch monitors.

comp_instance_id: This is the id present in the comp_instance table of a component instance.

Note:
Above queries for property and file watch are used to add a single file at a time in DB as a row.

3. Execute these queries multiple times to add multiple files to the DB.

4. Execute the following query in Percona to add system properties:

INSERT INTO `comp_instance_kpi_group_details` VALUES
('<Id>','ALL',1,utc_timestamp(),utc_timestamp(),'7640123a-fbde-4fe5-9812-581cd1e3a9c1',
<comp_instance_id>,2044,60,259,1,'SystemProperties',26,153);

ID: This should be a unique ID (auto-increment) in the table.

comp_instance_id: This is the id present in the comp_instance table of a component instance.

5. Execute the following query in Percona to add mount points:

INSERT INTO `comp_instance_kpi_group_details` VALUES
('<Id>','ALL',1,utc_timestamp(),utc_timestamp(),'7640123a-fbde-4fe5-9812-581cd1e3a9c1',
<comp_instance_id>,222,60,262,1,'MountPoints',18,154);

ID: This should be a unique ID (auto-increment) in the table.

comp_instance_id: This is the id present in the comp_instance table of a component instance.

6. Execute the following query in Percona to add mount permissions:

INSERT INTO `comp_instance_kpi_group_details` VALUES
('<Id>','ALL',1,utc_timestamp(),utc_timestamp(),'7640123a-fbde-4fe5-9812-581cd1e3a9c1',
<comp_instance_id>,223,60,263,1,'MountPermissions',19,154);

ID: This should be a unique ID (auto-increment) in the table.

comp_instance_id: This is the id present in the comp_instance table of a component instance.

7. Execute the following query in Percona to add QueryWatch for Oracle component instances:

INSERT INTO `comp_instance_kpi_group_details` VALUES
(<id>,<kpiAttributeValue>,1,utc_timestamp(),utc_timestamp(),'7640123a-fbde-4fe5-9812-581cd1e3a9c1',
<comp_instance_id>,2478,3600,290,0, 'FetchQueryProperties',25,159);

ID: This should be a unique ID (auto-increment) in the table.

kpiAttributeValue: Configure this in the agent_details.json file.

comp_instance_id: This is the id present in the comp_instance table of a component instance.