Does check_by_ssh work with ssh-agent and/or keychain ?
Karl DeBisschop
karl at debisschop.net
Sat Mar 20 02:06:40 CET 2004
On Fri, 19 Mar 2004 11:00:59 -0500
Sean Dilda <agrajag at dragaera.net> wrote:
> On Fri, 2004-03-19 at 09:40, Nardus Geldenhuys wrote:
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi People
> >
> > Does check_by_ssh work with ssh-agent and/or keychain ?? Is there
> > anybody with a working system using this method ?
> >
> > I have setup everything. The user is "nagios". I can "ssh user at host"
> > with no problem and no password prompt :) But when I run
> > "/usr/nagios/libexec/check_by_ssh -H support at shark -C /usr/bin/ls" I
> > get this prompt "Enter passphrase for key
> > '/home/nagios/.ssh/id_rsa':".
> >
> > Is the error with ssh or the plugin ?
>
> plugin.
>
> check_by_ssh uses the spopen() function to call ssh. The spopen()
> function is designed for nagios plugins. However, one side-effect of
> spopen() is that it wipes out the environment before executing the
> program.
Not a side effect - a major goal.
--
Karl
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at 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
More information about the Users
mailing list