Icinga disk_check client shows server disk

Hi there,

i switched from nagios to Icinga2 and build a master / client system to my Debian Client.

My Object Host:

object Host "debian {
  import "generic-host"
  address = "37.120.hidden"
  // vars.noagent = true
  vars.notification["mail"] = {
    groups = [ "icingaadmins" ]
  }
  vars.client_endpoint = name
  check_command = "hostalive"
  vars.os = "Linux"
   vars.disks["disk"] = {
    /* No parameters. */
   }
   vars.disks["disk /"] = {
   disk_partitions = "/"
   }
}

IcingaWeb shows the disk but that is the quota from my master/Server. Whats wrong here?

Thx a lot

The definitions you have are telling it to use a local check.
As in nagios, the check is run via a remote client on the end device ( if you have not changed anything on the remote nodes, this will be NRPE), and as such you need to tell Icinga to use the nrpe
https://icinga.com/docs/icinga2/latest/doc/10-icinga-template-library/#nrpe
command to execute the check on the remote host.

Also see

https://icinga.com/docs/icinga2/latest/doc/07-agent-based-monitoring/

Thx @Markus
@Assaf:

My clients are using the icinga2 client, i changed from nrpe.
Now i solved the disk problem by:

apply Service "disks" {
  import "generic-service"
  check_command = "disk"
  command_endpoint = host.vars.client_endpoint
  vars.disk_wfree = "12%"
  vars.disk_cfree = "5%"

  assign where host.vars.client_endpoint
}