Skip to content

Failure to Collect Disk Space KPI Data (Error E1203)

Failure to Collect Disk Space KPI Data (Error E1203) in CA KPI Issues.

3 min read Updated SS RS

Failure to Collect Disk Space KPI Data (Error E1203)#

The CA logs displayed error code E1203, as disk-space KPI data collection stopped.

1. Confirm the issue by executing the script:

Fetch_Disk_Space.sh

Expected output (response code 1):

+ FetchSolaris
+ df -h
+ Get_Error_COde 1
+ retcode=1
+ ERRCODE=E1203

2. Check the disk space:

df -h

Expected output (note the permission-denied line):

df: cannot statvfs /var/share/sstore/repo: Permission denied
Filesystem              Size  Used  Avail  Use%  Mounted on
/dev/mapper/rhel-root   44G   38G   6.2G   87%   /
/dev/sda1               1014M 148M  867M   15%   /boot

The Permission denied message is displayed because there is no access to the sstore folder.

3. To rectify: check whether the end user has granted permission to the sstore folder at:

/var/share/sstore/repo

Availability KPIs Not Collecting in UI#

1. Issue: a database-entry error where the Established and Listen_Status KPIs are mapped to the same producer_kpi_mapping id (1365).

2. Solution: two availability KPIs exist — Established (kpi_id=254) and Listen_Status (kpi_id=255) — with different producer_kpi_mapping ids (1365 and 1366). Ensure separate mapping for each: update the producer_kpi_mapping id to 1366 for kpi_id=255. Restart Keycloak, the Component Agent, and the KPI Processor, then verify data availability in the HEAL UI.

Windows CA - IIS KPI Collection Issue#

1. Issue: unable to collect IIS KPIs in the Windows CA.

2. Solution: do not provide attributes for the IIS component instance in the comp_instance_attribute_values table. Leave all attributes empty for the IIS comp_instance.

Adding Disk Latency KPIs to HEAL#

1. Purpose: integrate DiskLatency KPIs (Write Latency and Read Latency) into HEAL.

2. Queries: execute the following in Percona.

Write Latency (mst_kpi_details_id\=379):

INSERT INTO comp_instance_kpi_group_details(id, attribute_value, status,
  created_time, updated_time, user_details_id, comp_instance_id,
  mst_producer_kpi_mapping_id, collection_interval, mst_kpi_details_id,
  is_discovery, kpi_group_name, mst_kpi_group_id, mst_producer_id)
VALUES (id, 'ALL', 1, UTC_TIMESTAMP(), UTC_TIMESTAMP(),
  '7640123a-fbde-4fe5-9812-581cd1e3a9c1', <comp_instance_id>,
  <mst_producer_kpi_mapping_id>, 60, 379, 1, 'Disk Latency', 32, 162);

Read Latency (mst_kpi_details_id\=380):

INSERT INTO comp_instance_kpi_group_details(id, attribute_value, status,
  created_time, updated_time, user_details_id, comp_instance_id,
  mst_producer_kpi_mapping_id, collection_interval, mst_kpi_details_id,
  is_discovery, kpi_group_name, mst_kpi_group_id, mst_producer_id)
VALUES (id, 'ALL', 1, UTC_TIMESTAMP(), UTC_TIMESTAMP(),
  '7640123a-fbde-4fe5-9812-581cd1e3a9c1', <comp_instance_id>,
  <mst_producer_kpi_mapping_id>, 60, 380, 1, 'Disk Latency', 32, 162);

Replace <comp_instance_id> and <mst_producer_kpi_mapping_id> with the corresponding values from the comp_instance and mst_producer_kpi_mapping tables.

3. Retrieval steps: obtain comp_instance_id from the comp_instance table, and retrieve mst_producer_kpi_mapping_id from the mst_producer_kpi_mapping table using mst_kpi_details_id, mst_component_id, and mst_component_version_id.

KPI Output Format for Shell Producers#

Required output format:

KPI_NAME#@#KPI_VALUE#@#KEY#@#true/false#@#ERROR_CODE#@#Type_of_KPI

Note: Non-adherence may lead to parsing errors. The delimiter in Appsone 5.x is #@#.

The Issue with Collecting Apache Metrics on Windows#

A 403 Forbidden error was displayed when trying to access the Apache server-status page.

Solution:

1. Enable extended status: ensure ExtendedStatus is set to on.

Note: For Windows, this should be lowercase (extendedstatus on).

2. Configure server-status page access:

<Location /server-status>
SetHandler server-status
Require ip 127.0.0.1 192.0.2.170
</Location>

This makes the status page accessible from localhost (127.0.0.1) and the specified IP (192.0.2.170).

3. Platform-specific adjustments (Windows):

a. Use extendedstatus on (lowercase).

b. Use Require ip instead of Require host to specify IP addresses for access.

Note: The syntax and directives can vary between Windows and Linux.

Non-Collection of URL Status KPI Data#

The URL Status KPI was set up to monitor URL availability on a Windows system, but no data was collected and there were no corresponding logs (the script name for URL Status was missing from agent-details.json).

Solution:

1. Class-name discrepancy:

a. The class name for URL Status was set to SSHProducer, which is typically used for Linux/Unix.

b. For other Windows KPIs, the class name used was ShellProducer.

c. This mismatch was also present in the Percona database.

Non-Collection of URL Status KPI Data

2. Database configuration error:

a. Identify the incorrect value mapping in the mst_producer table.

b. The mst_producer_type_id for URL Status should be 2, which corresponds to producer type WMI (Windows Management Instrumentation).

Non-Collection of URL Status KPI Data

3. Correcting the database entry:

a. Update mst_producer_type_id to 2 for the URL Status KPI.

b. After the correction, data collection for the URL Status KPI commenced.

Non-Collection of URL Status KPI Data