srikanth
srikanth

Reputation: 239

Nagios client tcp connection to Nagios Server using NSCA, how to make this connection stay up forever

I have setup a nagios distributed monitoring system environment and i am able to send passive checks to Nagios server using send_nsca. When i look at the handshake between Nagios Client and Nagios Server, i see that Nagios Client is establishing a tcp connection to Nagios server whenever it has something to send and terminating the connection once the client is done sending the information. I want the tcp connection to stay up forever instead of terminating every time after data transfer is done. Could anyone please let me the know the process to make this happen?

Upvotes: 0

Views: 870

Answers (1)

Steve Shipway
Steve Shipway

Reputation: 4027

You cannot do this without modifying the standard NSCA daemon. Normally, it will time out and that's why the NSCA client reestablishes the connection.

I've implemented send_nsca in both Perl and Ruby, and in both cases cannot make a persistent connection work.

A better solution, though, if you are using Nagios 3.x is to install the livestatus module (part of check_mk). This allows passive checks to be submitted, but supports a persistent connection and a whole lot more. We've moved to using this instead for many cases.

Upvotes: 0

Related Questions