NSClient++ returns ‘Connection Refused’

nagiosnsclient++

I have been unsuccessfully trying to get NSClient to work on my 64 bit Windows 7 machine with Windows Firewall turned off.

I have tried with the service started and also tried running 'NSClient++ /test'. No difference.
I have run Microsoft Network Monitor 3.4 and did a capture on port 12489. Each time I run the check_nt command from the Nagios computer, I get a "connection refused" "could not fetch information from server" response on the command line.

The network monitor shows a packed received on the NSClient machine that was sent from the Nagios machine. There is also a repsonse packet returned. Unfortunately, I do not know how to interpret the response.

For those so inclined, here are the contents of the return packet:

 0000 00 27 0E 0D 41 BF 14 DA E9 15 36 7C 08 00 45 00
 0010 00 28 0A DB 40 00 80 06 58 18 C0 A8 0B 16 C0 A8
 0020 0B 76 30 C9 83 A4 00 00 00 00 59 FE 4B C0 50 14
 0030 00 00 97 F7 00 00

Best Answer

look at the following:
- verify what port NSClient is listening on by looking at the port parameter in the [NSClient] section of NSC.ini.
- Ensure nsclientlistener.dll is not commented out in the modules section
- Ensure netstat -an shows windows is listening on the port listed above.

Related Topic