check_by_ssh failing - host key verification failed

Giorgio Zarrelli zarrelli at linux.it
Wed Apr 14 23:47:22 CEST 2010


If u try an ssh login from Nagios box to the remote box, u can login  
without been asked for a password?


Ciao,

Giorgio

Il giorno 14/apr/2010, alle ore 23.15, "O'Donnell, Robert L" <robert.l.odonnell at intel.com 
 > ha scritto:

> Running nagios 3.0.6 on OpenSUSE and trying to get info from a SUSE  
> enterprise machine.
>
>
>
> Chk_by_ssh returns UNKNOWN and “Remote command execution failed: Hos 
> t key verification failed”,  check_ping works.
>
>
>
> I have played with every combo of options I could think of, but same  
> results.  This is my first setup with remote checks on a linux  
> machine (windows machine checks working fine), so it could be a newb  
> problem.
>
>
>
> (from commands.cfg)
>
> # check_ssh_dummy command definition
>
> define command{
>
>      command_name          check_ssh_dummy
>
>      command_line          $USER1$/check_by_ssh –H $HOSTADDRESS$ -l  
> nagios -2  \
>
>          –I /etc/nagios/.ssh/id_dsa –C “/usr/lib/nagios/plugins/ 
> check_dummy 0”
>
>      }
>
>
>
> I took out the desired response text to eliminate possible double  
> quote issues, but it made no difference
>
>
>
>
>
> (from object config)
>
>
>
> define service{
>
>      use                    local-service
>
>      host_name              (machine_name)
>
>      service_description    PING
>
>      check_command          check_ping!100.0,20%!500.o,60%
>
>      }
>
>
>
> define_service{
>
>      use                     local-service
>
>      host_name               (machine_name)
>
>      service_description     check_ssh_dummy!
>
>      }
>
>
>
>
>
> From the command line, I run:
>
>
>
> /usr/lib/nagios/plugins/check_by_ssh –H (machine_ip) –l nagios – 
> i /etc/nagios.ssh/id_dsa –C “usr/lib/nagios/plugins/check_dummy  
> 0”
>
>
>
> It returns OK
>
>
>
> I am having the same issue with check_ssh_disk.  I do not have a  
> MOTD for the shell, I have tried putting explicit paths in place of  
> USER1, putting in the actual address for HOSTADDRESS, and many  
> options on the
>
>
>
>
>
>     Robert L. O'Donnell
>
>     Advanced Equipment Engineering, IMO
>
> --- 
> --- 
> --- 
> ---------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100414/699560dc/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
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