<!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.10.0">
</HEAD>
<BODY>
Dear all<BR>
when use this check_by_ssh plugin with nagios to check disk on remote servers as this example <A HREF="http://www.nagios-wiki.de/doku.php/nagios/plugins/check_by_ssh">http://www.nagios-wiki.de/doku.php/nagios/plugins/check_by_ssh</A> , the nagios log and web console display this error <BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD ALIGN="left">
<TABLE CELLSPACING="0" CELLPADDING="0">
<TR>
<TD ALIGN="left">
<A HREF="http://192.168.0.150/nagios/cgi-bin/extinfo.cgi?type=2&host=oes-server.valuesys.lan&service=check_by_ssh">check_by_ssh</A>
</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right">
<TABLE CELLSPACING="0" CELLPADDING="0">
<TR>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
UNKNOWN 05-15-2007 18:40:37  0d 3h 33m 45s 3/3 Remote command execution failed: Host key verification failed.  <BR>
<BR>
<BR>
<BR>
the directive in the commands.cfg<BR>
define command{<BR>
        command_name    check_by_ssh_local_disk<BR>
        command_line $USER1$/check_by_ssh -l root -H $HOSTADDRESS$ -C '/tmp/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$'<BR>
<BR>
<FONT COLOR="#0000ff">and this directive in services.cfg</FONT><BR>
<BR>
define service{<BR>
        host_name                            oes-server.valuesys.lan<BR>
        service_description                check_by_ssh<BR>
        is_volatile                              0<BR>
        check_period                         24x7<BR>
        max_check_attempts             3<BR>
        normal_check_interval            5<BR>
        retry_check_interval               1<BR>
        contact_groups                      network_team<BR>
        notification_interval               120<BR>
        notification_period                 24x7<BR>
        notification_options                c,r<BR>
        check_command                   check_by_ssh_local_disk!10%!5%!/<BR>
        }<BR>
<BR>
Thanks<BR>
Armagdon
</BODY>
</HTML>