Problem with check_by_ssh...

fmml at cedval.org fmml at cedval.org
Tue Nov 11 21:12:07 CET 2003


Hi all,

I want to monitor items on an AIX machine using check_by_ssh. I have
created keys.  From a shell,  I su to nagios and run the following:

/usr/local/nagios/libexec/check_by_ssh -H sweet -C
"/usr/local/nagios/libexec/check_load -w 70,60,50 -c 90,80,70"

OK - load average: 0.58, 0.27, 0.28

That works ok.

Configured my command.cfg as follows:

define command {
    command_name    check_by_ssh
    command_line    $USER1$/check_by_ssh -H $HOSTADDRESS$  -C $ARG1$
}


Configured my service.cfg as follows:

define service {
    use    generic-service
    host_name    sweet
    service_description    Cpu Load
    contact_groups    testadmins
    check_period    workhours
    notification_interval    120
    notification_options    w,u,c,r
    notification_period    24x7
    check_command    check_by_ssh!"/usr/local/nagios/libexec/check_load -w
70,60,50 -c 90,80,70"
    max_check_attempts    3
    normal_check_interval    5
    retry_check_interval    1
}

When nagios is doing that check, it returns "Host key verification failed"

Any ideas???


Thanks in advance,

Francois





-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/
_______________________________________________
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