我遇到了Icinga2正在监视lochalhost的问题,例如diskusage,即使我将IP设置为其他服务器也是如此。我做错了什么?
下面是其中一个主机的配置:
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"
}
答案 0 :(得分:1)
除非您配置传输(例如,使用icinga2客户端作为命令端点,或SSH或任何其他方法在客户端上远程执行检查),否则将在本地执行这些检查插件。 address属性不会影响执行检查的位置,它只提供需要这些检查的特定运行时宏的信息(例如,ping远程主机)。
查看文档,尤其是分布式监控章节解释了一些基础知识。