0

I'm experiencing a problem where Icinga2 is monitoring the lochalhost for example diskusage even though I set the IP to a different server. What do I do wrong?

Heres my config for one of the hosts:

object Host "tellus" {
    import "generic-host"
    address = "10.1.1.48"
    address6 = "::1"
    vars.os = "Linux"
}

object Service "http" {
    host_name = "tellus"
    check_command = "http"
}

object Service "procs" {
    host_name = "tellus"
    check_command = "procs"
}

object Service "load" {
    host_name = "tellus"
    check_command = "load"
}

object Service "users" {
    host_name = "tellus"
    check_command = "users"
}

object Service "disk" {
    host_name = "tellus"
    check_command = "disk"
}

object Service "swap" {
    host_name = "tellus"
    check_command = "swap"
}
4

1 回答 1

1

Those check plugins are executed locally unless you configure a transport (e.g. using the icinga2 client as command endpoint, or SSH, or any other method to execute checks remotely on the client). The address attribute does not influence where checks are executed, it only provides information for specific runtime macros requiring such (e.g. pinging a remote host).

Take a look into the documentation, esp. the distributed monitoring chapter explaining some basics.

于 2016-10-13T22:09:57.107 回答