I recently upgraded all our servers (about 200) to the latest 64-bit NSClient++ version. Since then, I'm seeing a lot of problems connecting to clients - about a dozen of them. When I check the nsclient log, I see the following:
bind failed: 10048: Only one usage of each socket address (protocol/network address/port) is normally permitted.
When I use a port utility to check the open ports, it shows that "System" with 100's of 5666 and 12489 ports in CLOSE_WAIT status, even though I stop the nsclientpp service. I can kill those, but there is always at least one 5666 and 12489 port in listening state, held open by System, which I can't kill. Thus the error above when attempting to start NSClient. I confirmed the NSclientpp service was off during the checks and attempts to close all the 5666 and 12489 ports.
This originally only affected one server - now at least 12 have this problem. Is there anything I can do to kill that port short of rebooting? Also, is there any way I can tweak nsclient++ so this doesn't keep happening?
Thanks for any and all assistance,