Page 6 of 6

Re: Check_by_ssh issue

Posted: Thu Sep 22, 2016 10:29 am
by tgriep
Can you describe how you are creating the ssh session between the Nagios Xi server and the Ubuntu server?
Are you using the nagios user account for the ssh session while logged in to the Xi server as the nagios user?
Can you run the following check_by_ssh command from the XI server while logged in as the nagios user and post back the output?

Code: Select all

/usr/local/nagios/libexec/check_by_ssh -H xxx.xxx.xxx.xxx -C "/usr/local/nagios/libexec/check_disk -w 10 -c 20 -p /" -v
Replace xxx.xxx.xxx.xxx with the actual IP address.

Re: Check_by_ssh issue

Posted: Thu Sep 22, 2016 10:31 am
by rkennedy
rkennedy wrote:What are the permissions of folder?

Code: Select all

ls -al /home/
ls -al /home/nagios/
ls -al /home/nagios/.ssh
Also, are all of your service checks failing that are over SSH or are you just attempting to use the check_disk one? I'm wondering if the problem is under check_disk specifically as there seems to be a bug on the Ubuntu forums with something similar. https://bugs.launchpad.net/ubuntu/+sour ... ug/1516451
To add to what @tgriep mentioned - Is check_disk the only one that you are using with check_by_ssh?

Re: Check_by_ssh issue

Posted: Mon Sep 26, 2016 9:06 am
by MarMottE
Hello,

The issue is solved, I have install a new virtual machine with a basic user and not with the user nagios.

And the check don't goes down when 'im closing my session.

Thanks for your time and your help

Re: Check_by_ssh issue

Posted: Mon Sep 26, 2016 3:39 pm
by rkennedy
Sounds good - I wish we could have found a resolution, because this was really stumping me.

Going to close this one out though!