An Event Management HP OMi Connector is set up to connect to an OMi Server that has a large number of events. When running the Test Connector UI Action, everything works fine and it shows that the Connector is able to reach the OMi Server through the MID Server.
However when the OMi Connector attempts to retrieve the first batch of events from the OMi Server, an error message is thrown, which can be seen in the MID Server's agent log for the Worker-Interactive:ConnectorProbe thread for the connector:
***** Script: OMi API Request: <OMI URL GET Request>
WARNING *** WARNING *** Socket timeout
*** Script: ERROR: TypeError: Cannot convert null to an object.
*** Script: ERROR: OMi API Connection Error when getting Events
Where Event Management is used with an HP Operations Manager i (OMi) connector instance is used.
The cause is probably a slow query running on the OMi Server, that takes too long to complete, and is timed out.
You can confirm the cause is a slow query:-
Customers should raise the issue of the slow query with their internal HP OMi Server team and ask them to review why the query is slow or inefficient.
For temporary relief or to aid testing, customers could review the "OMIJS" MID Server Script Include, that manages the way the OMI connector works and performs the query.
Removing the query filter, such as the one built for retrieving only the events that have high severity first, and run the connector again, may help.
Note: After the ticket has been resolved and query is working efficiently, as expected, you should revert back the out-of-the-box OMIJS script to avoid any unexpected issues in the future.