Debugging Script Execution Time
Debugging Script Execution Time in CA Operational Issues.
Debugging Script Execution Time#
1. When a script or any other producer executes through the CA, the time taken is the sum of the producer execution time and the data-processing (parsing) time:
Total execution time = Producer exec time + Data processing time
2. To debug whether a script takes too long, set the execution-time threshold to 1 second in advanced.properties:
component.agent.producers.execution.threshold=1
3. Any script that exceeds this threshold is logged to component-agent-diagnostics.log.
4. The system's load average is also logged after execution of any script that breaches the threshold.
Sample log entry showing execution and data-processing time:
2020-08-06 15:57:19.238 [minute-worker-pool-thread 1] INFO
c.a.a.c.core.util.Diagnostics:99 - Producer instance Linux_Process_Util
of component instance RHEL_62_box data collection time 8193ms,
data processing time 3ms
Unable to decode base64 data: invalid characters encountered in base64 data#
Case 1: WAS KPI Data Issue#
Due to the exception below, WebSphere (WAS) KPI data cannot be collected:
ERROR c.a.a.c.conf.impl.DSConfigProvider:223 - Error during Rest Call
request url : https://haproxy.example:9111/appsone-controlcenter/v2.0/api/agent-config-data?identifier=e570de02-c585-4917-bbb7-5c97b35e-73
javax.net.ssl.SSLException: Received fatal alert: protocol_version
at com.ibm.jsse2.k.a(k.java:5)
Follow the steps below to rectify the issue:
1. The client sends the request with a protocol and expects the server to respond with the same protocol. If it does not, the handshake fails and certificates are not checked.
2. Update the TLS-version protocol in the self-heal config files:
JAVA_CUSTOM_ARGS="-Dhttps.protocols=TLSv1.2
-Djdk.tls.client.protocols=TLSv1,TLSv1.2
-Dcom.ibm.jsse2.overrideDefaultTLS=true"
Case 2: JMX issue#
If no JMX password exists for the JMX user, JMXPassword should be blank in agent-details.json.
For example:
"attributeName" : "JMXPassword",
"attributeValue" : "${JMXPassword}", // change to ""
"attributeType" : "Password",
"status" : 1,
Unable to Support TLSv1#
The CA had to support TLSv1 because the component ran with Java 1.6. To support TLS 1.0, update the following property in the advanced.properties file of the CA:
component.agent.ssl.versions=TLSv1
Signals Received Despite Green Data on GUI#
Follow the steps below to resolve the issue:
1. For a WAS component monitoring two ports, one port collected both Established and Listen status, while the other collected only Listen status.
Expected:
ESTABLISHED_STATUS : "kpiAttributeValue" : "192.0.2.165,10098|192.0.2.165,10057"
LISTEN_STATUS : "kpiAttributeValue" : "192.0.2.165,10098|192.0.2.165,10057"
Actual (only one port under Established):
ESTABLISHED_STATUS : "kpiAttributeValue" : "192.0.2.165,10098"
LISTEN_STATUS : "kpiAttributeValue" : "192.0.2.165,10098|192.0.2.165,10057"
Insert the missing port entry:
insert into comp_instance_kpi_group_details values
(id,'192.0.2.165,10057',1,utc_timestamp(),utc_timestamp(),
'7640123a-fbde-4fe5-9812-581cd1e3a9c1',271,1611,60,254,0,
'PortStatus',15,111,1,1);
After inserting the query and restarting the CA, the issue was resolved.
Java Bit Check Failure During CA Installation#
Follow the steps below to resolve the issue:
1. Check the Java bit:
Java Bit checked Failed: Java 32 bit is available
2. Verify prerequisites:
Pre-requisite checked failed. Please check pre-requisite logs
3. The script exits with error code 15.
4. Check the Java version:
/home/appsone/JAVA_AIX/bin/java -d64 -version
# Error: could not find libjava.so
# Error: Could not find Java SE Runtime Environment.
5. To rectify: ensure the Java build is copied correctly, check and increase available disk space if necessary, and adjust the ulimit value.
Unable to Get Config Data#
1. Check CA connectivity to Control Center: ensure the Component Agent can reach the Control Center. Test with:
curl -kv "https://haproxy-node1.example:9998/heal-controlcenter/v2.0/api/agent-config-data?identifier=ComponentAgent_Oracle" --insecure
2. Investigate timeout issues: check for timeout errors in the Component Agent logs, and examine Control Center logs for issues with data fetched from Percona.
3. Configuration adjustment: change configOperationMode to Remote in agent-details.json for periodic config updates. Verify the import of the Keycloak certificate for connecting to Keycloak.
UI Logging Out When Accessing ORA Log KPI#
The error is as below:
com.appnomic.appsone.api.util.CommonUtils:1370 There are no routes
matching the incoming request...
Follow the steps below to rectify the issue:
1. Modify the attribute in both the comp_instance_kpi_group_details table and the LFA, replacing the space with an underscore:
From: ORA_ERROR#&#Oracle Exception
To: ORA_ERROR#&#Oracle_Exception
2. Restart Keycloak and the pipelines.
Unable to Collect Data#
Case 1: Using CA#
1. Check CA logs: review CA logs for errors related to specific instances. Run the CA in Debug mode for additional detail.
2. Validate agent-details: confirm the validity of the details generated by the CA in agent-details.json.
3. Verify DB mappings: check the validity of the mappings in the database for instances or agents with collection issues.
4. Dependency commands: ensure the availability of dependency commands used by monitoring scripts.
5. Log KPI configuration: disable the log KPI in agent-details.json to avoid a NullPointerException.
6. Port availability: confirm the necessary ports (JMX, SOAP) are available for the CA to connect and collect data.
Note: Capture detailed errors or exceptions encountered during troubleshooting.