【问题标题】:Icinga2 is monitoring the same hostIcinga2 正在监控同一个主机
【发布时间】:2016-10-13 09:16:53
【问题描述】:

我遇到了一个问题,即 Icinga2 正在监视 lochalhost,例如磁盘使用,即使我将 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"
}

【问题讨论】:

  • 尝试删除 address6 = "::1" 这是 ipv6 的环回地址,因此您可能会发现您的机器更喜欢“真实”主机

标签: ubuntu monitoring icinga icinga2


【解决方案1】:

除非您配置传输,否则这些检查插件将在本地执行(例如,使用 icinga2 客户端作为命令端点,或 SSH,或任何其他在客户端上远程执行检查的方法)。 address 属性不影响 在哪里 执行检查,它只为需要此类检查的特定运行时宏提供信息(例如 ping 远程主机)。

查看文档,尤其是。分布式监控章节,解释一些基础知识。

【讨论】:

  • 感谢您的回答。如何使用 icinga2 客户端进行远程监控?我一直在阅读文档,但我发现很难理解。 @dnsmichi
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2011-11-09
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-08
相关资源
最近更新 更多