Page 1 of 1

Check_by_ssh

Posted: Tue Jul 05, 2016 7:43 am
by ednaldojta
Good morning friends!
I have a problem with Check_by_ssh.
I had already configured once, and until the moment is working properly. However, I tried with another server, and this did not work. Although repitir the same as the previous configuration steps.

so there is a difference between the two: is that this second configuration, so I open SSH port of Nagios server pro, pro Nagios server I do not open the door. However, I can connect to that server Nagios.

Sera that would be the problem of not being able to monitor with check_by_ssh ?

Re: Check_by_ssh

Posted: Tue Jul 05, 2016 9:47 am
by rkennedy
Did you setup SSH keys on the new machine? You'll need these established in order to use check_by_ssh. Take a look at this link - https://assets.nagios.com/downloads/nag ... ng_SSH.pdf

If you've already done this, from the XI machine, can you run ssh [email protected] and see if it works? Let us know the output, and any other debugging you can provide will help as well!

Re: Check_by_ssh

Posted: Tue Jul 05, 2016 10:45 am
by ednaldojta
Yes already implemented the keys.
Ja put the id_rsa.pub to the server to be monitored. I have gone SSH access the Nagios server to machine, but do not have the machine to Nagios!

It will will be able to be the problem?

Note: I already realized the implementation of the keys.

Re: Check_by_ssh

Posted: Tue Jul 05, 2016 11:29 am
by rkennedy
When you run the ssh [email protected] does it prompt for a password, or does it allow you to access it without a password? You won't need an SSH key for the client machine to access the Nagios machine, just what you have setup currently.

Re: Check_by_ssh

Posted: Tue Jul 05, 2016 11:33 am
by ednaldojta
Yes asks password! I already put the key on the other server, however still can not access without a password.

I just got release ida pro SSH, I do not back.

So I have the Nagios for machines
I do not have the machine to Nagios.

Is this the problem?

Re: Check_by_ssh

Posted: Tue Jul 05, 2016 11:42 am
by rkennedy
Did you setup the ssh key for the 'nagios' user specifically? If it still asks for the password then something is setup incorrectly with your SSH key, try running through the document from scratch to see if that helps.