apm_bridge - Could not determine UIM or TAS devices to forward for profile 0 with origin XXX
search cancel

apm_bridge - Could not determine UIM or TAS devices to forward for profile 0 with origin XXX

book

Article ID: 242707

calendar_today

Updated On:

Products

DX Operational Intelligence DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

Errors when trying to integrate UIM with OI to send use apm_bridge probe to send inventory data

 

ERROR [ForkJoinPool-252-worker-1, apm_bridge] Could not retrieve hosting edges from TAS. profile id: 0, host: apmservices-gateway.<defaultSubDomain>

ERROR [ForkJoinPool-252-worker-1, apm_bridge] Could not determine UIM or TAS devices to forward for profile 0 with origin Dev. Exception: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

at [Source: org.apache.http.conn.EofSensorInputStream@fd902c3; line: 1, column: 2]

ERROR [ForkJoinPool-252-worker-1, apm_bridge] com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null')

at [Source: org.apache.http.conn.EofSensorInputStream@fd902c3; line: 1, column: 2]

                at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1702)

                at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:558)

                at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:456)

                at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._handleUnexpectedValue(UTF8StreamJsonParser.java:2689)

                at com.fasterxml.jackson.core.json.UTF8StreamJsonParser._nextTokenNotInObject(UTF8StreamJsonParser.java:878)

                at com.fasterxml.jackson.core.json.UTF8StreamJsonParser.nextToken(UTF8StreamJsonParser.java:772)

                at com.fasterxml.jackson.databind.ObjectMapper._initForReading(ObjectMapper.java:3850)

                at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3799)

                at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2924)

                at com.uim.probe.bridge.apm.ATSClient.fetchTasHostingGraph(ATSClient.java:979)

                at com.uim.probe.bridge.apm.inventory.APMInventoryService.getTasHostingGraph(APMInventoryService.java:995)

                at com.uim.probe.bridge.apm.inventory.APMInventoryService.removeOutdatedHostingRecords(APMInventoryService.java:273)

                at com.uim.probe.bridge.apm.inventory.APMInventoryService.inventoryProcessWithoutCsFilter(APMInventoryService.java:387)

                at com.uim.probe.bridge.apm.inventory.APMInventoryService.lambda$runOneIteration$0(APMInventoryService.java:205)

                at java.util.concurrent.ForkJoinTask$RunnableExecuteAction.exec(ForkJoinTask.java:1402)

                at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)

                at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)

                at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)

                at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:175)

Environment

Release : 20.2

Component : CA DOI AUTOMATION INTEGRATION

UIM 20.4 

apm_bridge 1.0.7

Cause

The OI TAS endpoint was configured as a secure route (HTTPS) but the apm_bridge probe was not enabled to use SSL

 

Resolution

The OI is configured with a self-signed certificate which needs to be imported into UIM truststore

In apm_bridge.cfg, enable SSL

use_ssl = true

Steps to get the .cer of apmservices gateway

Browser route:
1)Access the apmservicesgateway URL from chrome browser and export the public key
2) Click on Not Secure icon on the browser click on Certificate(invalid)-->Click on Details-->Click on Copy to File-->
Click Next-->Select Base-64 encoded X.509(.CER) option-->Click on Next-->Provide filename with .cer extension-->Click on Save

Through openssl use the following command to extract the public key:
echo -n | openssl s_client -connect apmservices-gatewayroute:443 -servername apmservices-gatewayroutename \
| openssl x509 > /root/folder/pub.cer

 

Steps to add public key of apmservices gateway to the UIM key store:
1)Move to C:/Progra~2/Nimsoft/jre/jre8u282b08/bin folder
2)keytool -import -alias umpcert -keystore "C:/Progra~2/Nimsoft/jre/jre8u282b08/lib/security/cacerts" -file "C:/path to the folder/filename.cer"
3)provide the password as changeit
4)add certificate to the keystore by typing yes
5)once done restart apm_bridge probe and check for the logs.