Help with Monitoring Windows over SSH

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
MrGrey
Posts: 3
Joined: Mon Aug 12, 2013 5:55 am

Help with Monitoring Windows over SSH

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Help with Monitoring Windows over SSH

Post by abrist »

Are you allowed to open and forward ports on the remote network's gateway?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MrGrey
Posts: 3
Joined: Mon Aug 12, 2013 5:55 am

Re: Help with Monitoring Windows over SSH

Post by MrGrey »

Yes we are allowed to do that :)
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Help with Monitoring Windows over SSH

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MrGrey
Posts: 3
Joined: Mon Aug 12, 2013 5:55 am

Re: Help with Monitoring Windows over SSH

Post 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?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Help with Monitoring Windows over SSH

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