Is the Nx Cloud up? Visit our Status Page for the current health and performance of the Nx Cloud.

Status Page

The issue when I add the "Event-triggered Http Request API." - 事件Http Request通知沒有觸發

Answered

Comments

5 comments

  • Wendy Chuang
    • Network Optix team

    Hi Kevin Lai,

    Have you ever collected the Wireshark packet on the target host and checked whether any request was sent from Nx?
    You may try with the particular HTTP method, and check whether the authentication is required for the request.

    Thank you.

    0
  • Kevin Lai

    Hi Wendy Chuang

    Thank you very much for your response. Sorry for the delayed reply.

    I tried to collect data with Wireshark, but I didn't receive any data from NX. After trying several times, I realized that the issue was due to using the same server. So, I changed to another server to receive the request.

    The new issue is that I received a request, but it didn't contain the correct content.

    Here is what I received:

    Shouldn't it change {event.source} to the actual data? Why is it being sent as a string?

    Do you have any ideas about this?

    Best regards,
    Kevin

    0
  • Wendy Chuang
    • Network Optix team

    Hi Kevin Lai,

    From your original description, the HTTP request should be sent when a "Motion detection" or "Camera offline" event is triggered. Unfortunately, the placeholder only supports the Analytic event and Generic event.  Please refer to the section Event Rules > Event Field Placeholders from the user manual:


    Thank you.

    0
  • Kevin Lai

    Hi Wendy Chuang 

    First of all, thank you for your answer.

    I also have a couple of related questions to further inquire:

    1. When handling Generic events, is it possible to obtain the CameraID from the source?
      Because it's possible to receive Generic events from third parties, but I need to handle them by referencing the CameraID.

    2. If I wish to receive relevant notifications when the camera goes offline or detects object movement, and also identify which camera triggered the event, is there a way to achieve or detect this?

    Thank you again for your assistance.

    0
  • Wendy Chuang
    • Network Optix team

    Hi Kevin Lai,

    I'm sorry for missing your questions. 
    Based on your event criteria, you couldn't obtain the cameraID from any placeholder from the generic event at the moment. The only way is to create a rule for each camera separately and put the static cameraID in the content of the HTTP request.

    Please let me know if you have any questions still. Thank you :-)

     

    0

Post is closed for comments.