Page 1 of 1

Help with Monitoring Windows over SSH

Posted: Mon Aug 12, 2013 6:19 am
by MrGrey
Hello everyone.
My Friend and I started working with Nagios as a project.
We have managed to setup nagios fine and its working on the local network.
However we also need to be able to monitor servers on a different network, VPN is not an option for us, since its required to be secure.
We have looked into ssh, but have yet to be able to success in setting it up.

Are there anyone who could help us with our problem? how do we set it up?
We have looked after a few guides on the internet, but haven't manage to find one yet.


Best Regards
Klaus & Mikkel

Re: Help with Monitoring Windows over SSH

Posted: Mon Aug 12, 2013 9:50 am
by abrist
Are you allowed to open and forward ports on the remote network's gateway?

Re: Help with Monitoring Windows over SSH

Posted: Mon Aug 12, 2013 10:50 am
by MrGrey
Yes we are allowed to do that :)

Re: Help with Monitoring Windows over SSH

Posted: Mon Aug 12, 2013 11:42 am
by abrist
Do you have an ssh client on the windows server? Are you running cygwin or similar?
I would suggest NRPE through NSClient instead of ssh as you will get better support for that. SSL is supported with NRPE/NSClient.

Re: Help with Monitoring Windows over SSH

Posted: Tue Aug 13, 2013 1:53 am
by MrGrey
We have freesshd running on our server :)
We just got it to work, thanks for the help ^^

However is it possible to make the command, so that you don't need several of them atm we use

Define command{
command_name check_ssh_load
command_line $USER1$/check_ssh -p xxxxx $ARG1$ $HOSTADDRESS$
}

atm we use the port as well in the command, but that would require several commands by different name, is it possible to change that and add the port in the define host instead?

Re: Help with Monitoring Windows over SSH

Posted: Tue Aug 13, 2013 10:27 am
by slansing
You would need to hard code it or use arguments in the check command definition. You could use one command with $ARGn$ defined for your port, then just change the argument on each service definition based on what port will be used.