I have installed freeSSHD on my Windows machine, created a user, enabled tunneling, copied over a public rsa key, and installed NSClient++. On my Nagios server, I have Nagios running and a Windows.cfg file that looks correct.
I am able to ssh from the nagios box to the windows box with the following:
ssh user@windows-box-ipaddr
and
ssh -f -N -L 127.0.0.1:1433:windows-box-ipaddr:1433 administrator@windows-box-ipaddr
Despite this, I'm seeing errors such as these in Nagios:
connect to address 127.0.0.1 and port 12489: Connection refused
I am not sure what IP address needs to go in the windows.cfg for the define host, nor am I sure what the NSClient++ IP should be set to.
What I do know for certain is that I can get this servers to connect through SSH. I am thinking that I should be using another port or perhaps I need to open many ports in the firewall. At this point I am at a standstill.
NSCLient++ by default uses port 12489, as the error message reports.
Try
Of course this requires that NSClient++ is actually running and listening on that port. Your command would forward port 1433 - where did you get that port number?