Created 08-16-2023 08:15 AM
Hi. I'm using the ConnectWebSocket processor to receive data from a remote server.
The connection is established successfully, but eventually something happens and, even though the processor keeps running normally, the remote server indicates the connection is broken and I stop receiving data.
Is there a way to monitor this connection using the ping/pong packets and some other processor or the nifi logs?
Created 08-21-2023 02:12 AM
@galt, in this case, the only solution I could propose is to create a Script in which you develop this exact logic you are looking for. Afterwards, you can execute your script in an ExecuteStreamCommand Processor and wait to see the output.
I suggested ExecuteStreamCommand because you can write the script in any language you desire and then execute it directly in NiFi. The only requirement is to have everything installed on those machines.
Created 08-16-2023 10:48 AM
Welcome to the Cloudera Community!
To help you get the best possible solution, I have tagged our NiFi experts @steven-matison @cotopaul who may be able to assist you further.
Please keep us updated on your post, and we hope you find a satisfactory solution to your query.@
Regards,
Diana Torres,Created 08-17-2023 03:00 AM
@galt,
You could try to set your processors on debug with the hope to have something more written in the logs. Nevertheless, when it comes to network connectivity, I highly recommend you to involve your network team and ask them to identify what is causing the instability in the connection between the source and the target. They have the proper tools and logs to monitor the network flow between the systems. What they have to do is to monitor the traffic coming from your NiFi node and going to your remote server.
Created on 08-19-2023 06:20 PM - edited 08-19-2023 06:21 PM
Thank you @cotopaul for the suggestion, but i need to figure out a way to monitor this packets inside NiFi. It's a requirement of my client. They want something like a monitoring tool inside NiFi. I know it will be difficult to do this.... probably it's not possible, because it is not the purpose of NiFi.
The debug mode is activated, with no success on showing the ping/pong packets.
Created 08-21-2023 02:12 AM
@galt, in this case, the only solution I could propose is to create a Script in which you develop this exact logic you are looking for. Afterwards, you can execute your script in an ExecuteStreamCommand Processor and wait to see the output.
I suggested ExecuteStreamCommand because you can write the script in any language you desire and then execute it directly in NiFi. The only requirement is to have everything installed on those machines.
Created 08-21-2023 07:04 AM
Thank you, @cotopaul !!
I'll try this.