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
Help with Monitoring Windows over SSH
Re: Help with Monitoring Windows over SSH
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.
"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.
Re: Help with Monitoring Windows over SSH
Yes we are allowed to do that 
Re: Help with Monitoring Windows over SSH
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.
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.
"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.
Re: Help with Monitoring Windows over SSH
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?
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
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.