check_by_ssh out of bounds

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_by_ssh out of bounds

Post 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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
iivanyi
Posts: 26
Joined: Tue Jul 03, 2012 3:21 am

Re: check_by_ssh out of bounds

Post 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.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_by_ssh out of bounds

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
iivanyi
Posts: 26
Joined: Tue Jul 03, 2012 3:21 am

Re: check_by_ssh out of bounds

Post 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
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: check_by_ssh out of bounds

Post by tmcdonald »

Well we hope you get this figured out. I'll close this but feel free to start a new thread if needed.
Former Nagios employee
Locked