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 -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.