Hi,

I'm trying to monitoring SRV11 with new icinga2 remote client instead NRPE. My 
configuration in master is that:

HOSTS.CONF:

object Host "SRV11" {
  import "generic-host" 
  address = "192.168.1.216" 
  vars.os = "Windows" 
  vars.remote_client = "SRV11" 

  vars.notification["mail"] = {
    groups = [ "icingaadmins" ]
  }
}
SERVICES.CONF

apply Service "Disco C" {
  import "generic-service" 

  check_command = "check-disk-windows" 
  command_endpoint = host.vars.remote_client
  assign where host.vars.remote_client
}
The zones.conf is the same on bofh sides, master and remote client:

ZONES.CONF

object Endpoint "srv-master" {
}

object Zone "master" {
        //this is the local node master named  = "master" 
        endpoints = [ "srv-master" ]
}

object Endpoint "SRV11" {
  host = "192.168.1.216" 
}

object Zone "SRV11" {
  endpoints = [ "SRV11" ]
  parent = "master" 
}
On Icinga web interface the result from check-disk-windows is:

UNKNOWN: Remote Icinga instance 'SRV11' is not connected.

What is wrong ? Can you help me ?

The communication between them on port 5665 works.

Best Regards,
Marcio Moreira
-- 
Márcio Filipe Mendes Moreira <[email protected]>
Administrador de Sistemas
Eurotux Informatica, SA | www.eurotux.com
Tel: (+351) 253680300 - Suporte: (+351) 253680301 
Fax: (+351) 253680319

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to