Problems checking external host

ReynierPM rperezm at uci.cu
Wed Nov 11 05:31:33 CET 2009


Hi every:
I'm trying to check a external server using check_by_ssh command but I'm
getting this errors:
1. Remote command execution failed: Host key verification failed.
2. (Return code of 127 is out of bounds - plugin may be missing)

My config is as follow for bacula-server.cfg:

# HOST DEFINITION
define host{
   use                     linux-server
   host_name               bacula-server
   alias                   bacula
   address                 10.128.50.11
}

# SERVICE DEFINITIONS
define service{
   use                       generic-service
   host_name                 bacula-server
   service_description       PING
   check_command             check_nrpe!check_ping!100.0,20%!500.0,60%
}

define service{
   use                      generic-service
   host_name                bacula-server
   service_description      Linux LVM Space SDA2
   check_command            check_nrpe!check_sda2!20%!10%!/
}

define service{
   use                      generic-service
   host_name                bacula-server
   service_description      SAN Space SDB1
   check_command            check_nrpe!check_sdb1!20%!10%!/
}

define service{
  use                       generic-service
  host_name                 bacula-server
  service_description       Current Users
  check_command             check_nrpe!check_users!20!50
}

define service{
   use                      generic-service
   host_name                bacula-server
   service_description      Total Processes
   check_command            check_nrpe!check_procs!250!400!RSZDT
}
define service{
   use                      generic-service
   host_name                bacula-server
   service_description      Current Load
  check_command            check_nrpe!check_load!5.0,4.0,3.0!10.0,6.0,4.0
}
define service{
  use                       generic-service
  host_name                 bacula-server
  service_description       Swap Usage
  check_command             check_nrpe!check_swap!20!10
}
define service{
  use                       generic-service
  host_name                 bacula-server
  service_description       Bacula FD Daemon
  check_command             check_spezial_procs_by_ssh!2:!1:!bacula-fd
}

define service{
  use                       generic-service
  host_name                 bacula-server
  service_description       Bacula SD Daemon
  check_command             check_spezial_procs_by_ssh!2:!1:!bacula-sd
}

define service{
  use                       generic-service
  host_name                 bacula-server
  service_description       Bacula DIR Daemon
  check_command             check_spezial_procs_by_ssh!2:!1:!bacula-dir
}


The check_spezial_procs_by_ssh is defined in commands.cfg file as follow:

define command {
   command_name  check_spezial_procs_by_ssh
   command_line  $USER1$/check_by_ssh -t 60 -H $HOSTADDRESS$ -C 
"/usr/local/nagios/libexec/check_procs -w $ARG1$ -c $ARG2$ -C $ARG3$"
}

Why it fails?
Cheers and thanks in advance
-- 
ReynierPM


------------------------------------------------------------------------------
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
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