The oi_connector probe version 2.02 is experiencing errors and is unable to send metrics:
Jun 27 18:39:12:321 [QOS_PROCESSOR_THREAD-24, oi_connector] Error while getting the ci information from database. java.lang.NullPointerException
at com.nimsoft.probe.gateway.oi_connector.AbstractObjectPool.releaseObject(AbstractObjectPool.java:89)
at com.nimsoft.probe.gateway.oi_connector.jdbc.QueryExecutor.executeRdbmsQuery(QueryExecutor.java:160)
at com.nimsoft.probe.gateway.oi_connector.dao.impl.DBCIDaoImpl.getCiInformationByMetIdSet(DBCIDaoImpl.java:254)
at com.nimsoft.probe.gateway.oi_connector.processor.QosEventProcessorNASS.getCiInformationFromDB(QosEventProcessorNASS.java:139)
at com.nimsoft.probe.gateway.oi_connector.processor.QosEventProcessorNASS.call(QosEventProcessorNASS.java:66)
at com.nimsoft.probe.gateway.oi_connector.processor.QosEventProcessorNASS.call(QosEventProcessorNASS.java:36)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
Here are the steps required to install the oi_connector on a robot under the hub:
For an OI Connector instance deployed on a remote robot machine connected to the primary hub the foillowing keys must be set:
The values of the following parameters can be set from Infrastructure Manager -> Setup -> Raw Configure. To do so, deactivate if the running probe is running, set the parameter values, and activate the probe again.
For example:
data_engine_address = /<domain_name>/ <primary_hub_name>/<primary_robotname>/data_engine
primary_hub_address = /<domain_name>/ <primary_hub_name>/<primary_robotname>/hub
connect_to_primary_hub = true
skip_second_pass_ci_fetch = true
The keys listed below should alreay be present and set in the oi_connector but its good to double-check.
get_ci_details_alive_time_days = 30
qos_bulk_size = 5000
qos_payload_bulk_size = 1000
get_ci_details_by_met_id_list = true
3. This parameter needs to be set to false.
enable_alive_time_batches = false
loglevel = 1
After following the steps above, if the issue persists please attach the oi_connector.log and apm_bridge.log and data_engine.log to the case.
Issues/errors resolved for this particular case/scenario.