Multiple Producers for the same KPI
Multiple Producers for the same KPI in CA KPI Issues.
Multiple Producers for the same KPI#
1. Custom producer: different functions may need to be passed for the same KPI, per comp_instance.
2. Do not create multiple producers for the same KPI. Even if created, only one producer can act as the default producer for a KPI.
3. When different functions must be passed to the producer script per comp_instance, find a way to avoid hard-coding the function name.
4. Creating different producers with different function_name (for the same KPI) is not the solution.
5. Only a single producer acts as the default producer for a KPI.
Unable to collect DB KPI's data#
Case 1: DB Instance Attributes Issues#
Cause: the DB instance attributes are not correct (for the exception below, the SID is not correct):
E1069: Unable to get JDBC connection for URL
"jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.0.2.92)
(PORT=1525))(CONNECT_DATA=(SERVER=DEDICATED)(servicename
ORA-12504, TNS:listener was not given the SID in CONNECT_DATA
Solution: check and update the correct attribute values in the comp_instance_attribute_value table.
Case 2: DB and Hostname Issue#
2022-02-17 21:43:42.947 [ScheduledMinuteProducerInstances RUNNING] ERROR
c.a.a.c.c.b.ComponentAgentScheduler:297 - E1069: Unable to get JDBC connection
for URL "jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=192.0.2.93)
(PORT=7007))(CONNECT_DATA=(SERVER=DEDICATED)({ConnectWith}={ConnectWithValue})))"
for producer name "Oracle_HolderWaitSessionsCount",
instance name "INB-Oracle-Prod-Instance-192.0.2.169".
After checking, the DB name provided was wrong, and the host address was given as a DNS name (for example, db-scan.example.com) instead of an IP address. Updating the DB name and host address in the DB resolved the issue.
Unable to collect the JBoss KPI data#
The attribute value specified for the JBoss binary path had a leading space. After correcting it in the DB and restarting the CA, the issue was resolved.
Component Level KPIs for WAS is not collecting data#
If the client declines to disable Administrative Security for WAS, and Administrative Security is enabled, an SSL certificate is required to collect component-level data.
For Windows (in the absence of openssl and keytool on the target):
1. Navigate to the config folder of the Component Agent and ensure the InstallCert.class file is present in the tools folder.
2. Open CMD as administrator and navigate to the Component Agent folder, for example:
cd C:\Appnomic\BaseAgentDir\ComponentAgent\Identifier\config
3. Execute (using the WebSphere IP and SOAP port):
<Java home path>\bin\java tools.InstallCert <IP Address>:<Port>
This generates a jssecacerts file in the same folder.
4. Execute again, this time using the HAProxy server IP (the HEAL box) and the HAProxy port:
<Java home path>\bin\java tools.InstallCert <IP Address>:<Port>
This appends to the jssecacerts file in the same folder.
5. Copy jssecacerts into the keytools folder in the Component Agent and rename it to cacerts.
6. Restart the Component Agent to reflect the changes.
For Linux, execute the following on the Component Agent server (using the WebSphere IP and SOAP port):
/usr/local/java/ibm/bin/java InstallCert <IP Address>:<Port>
Copy the generated jssecacerts file into the security directory:
/usr/local/java/ibm/lib/security
Confirm the certificate was added:
/usr/local/java/ibm/bin/keytool --list -keystore jssecacerts
Note: Using the same procedure, you can create and install more certificates to monitor additional WebSphere instances using the same Component Agent.
Data Breakages Across Components and Applications for Multiple KPIs#
The breakage was due to limited resources on the box: threads were allocated to 3 while collecting multiple instances' data (IHS, WAS, and DB) from a single CA box.
Follow the steps below to rectify the issue:
1. For data breakages, the thread-pool size was increased from 10 to 15.
2. After increasing threads there were no breakages, but CPU utilization was consistently high (86–95%).
3. The spike occurred because the CPU producer thread executed while other threads were also running.
4. To counter this, a sleep was added in the CPU producer script; because the script was modified, the signature check was disabled.
5. After this, CPU utilization was low and there was no data breakage.
Windows KPI Collection Issue#
1. Issue: Windows KPI collection fails due to using a predefined agent-details.json file.
2. Solution: the new Windows Component Agent supports fetching agent-details.json through the Keycloak DS. Let the CA fetch the JSON through the DS to pick up updated producers and signatures in the Percona DB.