Generic Events not appearing in Nx Witness 4.1.0.31398
AnsweredSummary: We are sending Generic Events to a customer site running Nx Witness 4.1.0.31398 but they are not appearing in the server's event log. Our service gets a "success" message from the server each time a Generic Event is sent but nothing is visible on the server itself. The Event Log shows no generic events and rules are not triggered off generic events. We have tested in customer servers running versions 4.1.0.31401, 4.0.0.29990 and our own in-house server running 4.1.0.31398 with no issues. Are there any settings we should be aware of that could result in this behavior?
Environment:
Nx Witness Version: 4.1.0.31398
Client OS: N/A
Server: We don't have this info
Network Topology: 1 server with 13 cameras directly connected to it at one site
Special features: Nothing except the site has two perpetual licenses attached to it (for 12 and 4 cameras) rather than a single license. No other 3rd-party integrations. Our integration has admin rights and is using server time to send events.
Reproduction Scenario: Unknown
-
Hi Benjamin,
Thank you for your feedback on Nx Witness.
Can you define the use case more specifically?
There is some server hosted by you, that is sending HTTP Generic Events to the Nx Media Server?
Is the server completely visible to the media server via IP/port access?
Can we get exact URLs for what is sent to the Nx Media Server, the working and non-working ones?
Reference for Generic Event and REST API:
https://support.networkoptix.com/hc/en-us/articles/227195368-User-Event-HTTP-Generic-Event
https://support.networkoptix.com/hc/en-us/articles/219573367-Nx-Server-HTTP-REST-API
0 -
Thanks Derek. We're sending alerts using Generic Events once our video analytics detects various events in the video feed. See an example below for the detection of a truck:
http://admin:password@server.host.com:7001/api/createEvent?timestamp=2020-10-29T17:11:08Z&caption=truck&metadata={"cameraRefs":["e17cfd27-f94d-8289-fadd-c6b99fc8c923"]}
This works with all servers we have access to except the one problematic customer server. The one difference is that the customer system uses the "host.com" reference rather than a naked IP, which the other servers use. Could this be an issue? We have no issues connecting to or pulling video from the "host.com:7001" server using the API or Client, and we get the same success messages from both when we send Generic Events. Could this be the problem Any other settings we should look into? We have identified no other differences between the servers.
0 -
Hi @...,
I would check if the server.host.com URL is forwarded to the server IP address over port 7001 or not.
If that is confirmed, I would try to capture the connection with Wireshark from the server side and preferable also from the side of the application that sends the generic event.This should reveal where it goes wrong.
0 -
Hi Norman,
While everything looks like it's correctly forwarded, switching to using an IP instead of the domain fixed this. Is this a known issue in Nx, or is it something to do with our client's specific setup?
Ben
0 -
Hi Benjamin,
Domain or IP should both work for API requests. I would check the domain and/or the DNS / routing on the customer's specific setup.
0
Please sign in to leave a comment.
Comments
5 comments