Check_by_ssh issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_by_ssh issue

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_by_ssh issue

Post 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?
Former Nagios Employee
MarMottE
Posts: 25
Joined: Thu Aug 18, 2016 3:00 am

Re: Check_by_ssh issue

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Check_by_ssh issue

Post 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!
Former Nagios Employee
Locked