That is not quite the same though. Nagios user gets home environment
setup from .bash_profile (or similar) from user's home directory as
well as correct path to .ssh in nagios user's home directory. Nagios
starts as root and does setuid to nagios user but does not get same
path set.

I too recommend you use "-v" option to find what is going on. Also try
specifying exact path to key with -i (and those are best set in a
specific directory with key name coming from host macro variable)

On Mon, Jun 10, 2013 at 2:42 PM, MAHONEY, DANIEL <dm5...@att.com> wrote:
> No, I’m sure that the key is working. When I become the nagios user and run
> the exact same command from the command line, it gives me exactly the result
> I expect.
>
> From: James Pratt [mailto:jpr...@norwich.edu]
> Sent: Monday, June 10, 2013 4:38 PM
> To: Nagios Users List
> Subject: Re: [Nagios-users] Return code of 127 is out of bounds - plugin may
> be missing
>
>
> Hi I haven’t researched this or anything, but is there is a –v option to
> check_by_ssh to get the exact error thrown? – I’m simply wondering if you
> have a bad/mismatched key in ~/.ssh/known_hosts or authorized_keys (sorry,
> ive been too busy to be much help on nagios lately guys)…
>
>
>
> Cheers!
>
> Jamie
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when reporting
> any issue.
> ::: Messages without supporting info will risk being sent to /dev/null

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to