Page 2 of 2
Re: check_by_ssh out of bounds
Posted: Wed Feb 26, 2014 3:36 pm
by sreinhardt
I didn't see this answered before, have you setup mutual ssh keys on the servers this is having issues on or are these actually passwordless accounts?
Re: check_by_ssh out of bounds
Posted: Wed Feb 26, 2014 4:15 pm
by iivanyi
for various reasons... I'm not posting full output however
yes, as you can see from the command-line tests ssh functions via keys
as user nagios from Server to Host
the same public keys are packages on ALL hosts... be they Solaris x86, Sparc or Linux
again from command-line this is functioning on all.
Re: check_by_ssh out of bounds
Posted: Thu Feb 27, 2014 11:56 am
by lmiltchev
It's too bad we cannot test this in house. Can you try running the command with the full path to the plugin? For example, run:
Code: Select all
$ /usr/local/nagios/libexec/check_by_ssh -E -t 60 -H REMOTEHOST -C '/full/path/to/the/plugin/check_init_service cron'
where you substitute the "/full/path/to/the/plugin/" with the actual path. Try a few different checks.
Re: check_by_ssh out of bounds
Posted: Sun Mar 02, 2014 7:51 am
by iivanyi
ok, can close this thread off, I'm suspecting some bug in sshd on solaris sparc
there appear to be no config issues, x86 config is same... setting shell to something else clearly shows "ssh host env" that .profile/.bash_profile is not being read (not permission issue).
and .profile is read when logging in interactively, changing things around a bit (ldap authentication rather than local) it seems that .profile is read about 5% of the time
Re: check_by_ssh out of bounds
Posted: Mon Mar 03, 2014 10:18 am
by tmcdonald
Well we hope you get this figured out. I'll close this but feel free to start a new thread if needed.