check_by_ssh out of bounds
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: check_by_ssh out of bounds
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.
Re: check_by_ssh out of bounds
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.
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
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:
where you substitute the "/full/path/to/the/plugin/" with the actual path. Try a few different checks.
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'Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_by_ssh out of bounds
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
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
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