Support Questions

Find answers, ask questions, and share your expertise

Is there a way to monitor the ping/pong packets of the ConnectWebSocket processor?

avatar
Explorer

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?

1 ACCEPTED SOLUTION

avatar

@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.

View solution in original post

5 REPLIES 5

avatar
Community Manager

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,
Community Moderator


Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.
Learn more about the Cloudera Community:

avatar

@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.

avatar
Explorer

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.

avatar

@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.

avatar
Explorer

Thank you, @cotopaul !!
I'll try this.