<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
</HEAD>
<BODY>
On Wed, 2009-09-02 at 14:19 +0300, Juki wrote:
<BLOCKQUOTE TYPE=CITE>
2009/9/2 Thomas Guyot-Sionnest <<A HREF="mailto:dermoth@aei.ca">dermoth@aei.ca</A>>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
This had to do with the server's kay that changed and is being cached in
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BLOCKQUOTE>
the nagios user's ~/.ssh/known_hosts. Find any entry matching the target<BR>
host name or IP and delete them, then connect manually to the host as<BR>
the nagios user.
</BLOCKQUOTE>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Thanks for the reply.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
I deleted the entry matching the remote host's IP from the nagios user's ~/.ssh/known_hosts file on the nagios server. But that
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
didn't help at all.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
</BLOCKQUOTE>
You deleted the old key info, but did you su to the nagios user and then ssh to the host? The first time you ssh to a host you'll get prompted to accept the key fingerprint of the remote host. I believe if you simply su the the nagios user then ssh to the remote host you'll be asked to accept the fingerprint of the remote host, then the error should stop.<BR>
<BR>
<BLOCKQUOTE TYPE=CITE>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
On running the command again, I still got the error;
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
nagios@central-host:/> /usr/local/nagios/libexec/check_by_ssh -H x.x.x.x -C "/export/home/nagios/plugins/check_swap -w 50% -c 10%"
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Remote command execution failed: ###################### !!! WARNING !!! #############################
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
In reply to Grant's comments, my Nagios user's home directory is stored on a local disk partition.
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
Any more pointers?
</BLOCKQUOTE>
<BLOCKQUOTE TYPE=CITE>
<BR>
<BR>
<BR>
<BR>
<PRE>
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. <A HREF="http://p.sf.net/sfu/bobj-july">http://p.sf.net/sfu/bobj-july</A>
_______________________________________________ Nagios-users mailing list <A HREF="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</A> <A HREF="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</A> ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>