On Wed, 2009-09-02 at 14:19 +0300, Juki wrote:
> 2009/9/2 Thomas Guyot-Sionnest <[email protected]>
>
>
>
> This had to do with the server's kay that changed and is being
> cached in
>
> the nagios user's ~/.ssh/known_hosts. Find any entry matching
> the target
> host name or IP and delete them, then connect manually to the
> host as
> the nagios user.
>
>
>
> Thanks for the reply.
>
>
>
>
> 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
> didn't help at all.
>
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.
>
> On running the command again, I still got the error;
>
>
> nag...@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%"
>
>
> Remote command execution failed: ###################### !!!
> WARNING !!! #############################
>
>
>
>
> In reply to Grant's comments, my Nagios user's home directory is
> stored on a local disk partition.
>
>
> Any more pointers?
>
>
>
>
>
>
> ------------------------------------------------------------------------------
> 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. http://p.sf.net/sfu/bobj-july
> _______________________________________________ Nagios-users mailing list
> [email protected]
> 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
------------------------------------------------------------------------------
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. http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
[email protected]
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