check_tcp function issue
Posted: Tue Jul 30, 2013 7:20 pm
I'm having a problem with Nagios XI whereby TCP client socket connections remain open indefinitely. In order to troubleshoot, I am running the VMware CENTOS package inside a VMPlayer environment.
Nagios seems to constantly try to open and close a connection apparently expecting the target socket to respond. If it does not, Nagios will continue to retry opening and closing on that same port. The existing connection attempts will remain “active” and do not close out. Because Nagios will continue to make attempts to connect, the Windows TCP/IP driver will start to “stack up” these “CLOSE_WAIT” connections over time.
The problem with this scenario, with enough multiple “CLOSE_WAIT” connections pending, is existing connections become destabalized. Existing traffic may halt and TCP network error conditions start occuring.
So the question I am trying to answer is:
"Is there a setting I can apply to Nagios in order to “timeout” and close sockets so that there isn’t an accumulation of leftover connection attempts which causes instability in the Windows TCP/IP driver."
Nagios seems to constantly try to open and close a connection apparently expecting the target socket to respond. If it does not, Nagios will continue to retry opening and closing on that same port. The existing connection attempts will remain “active” and do not close out. Because Nagios will continue to make attempts to connect, the Windows TCP/IP driver will start to “stack up” these “CLOSE_WAIT” connections over time.
The problem with this scenario, with enough multiple “CLOSE_WAIT” connections pending, is existing connections become destabalized. Existing traffic may halt and TCP network error conditions start occuring.
So the question I am trying to answer is:
"Is there a setting I can apply to Nagios in order to “timeout” and close sockets so that there isn’t an accumulation of leftover connection attempts which causes instability in the Windows TCP/IP driver."