【问题标题】:Icinga2: Run check on remote host instead of masterIcinga2:在远程主机而不是主机上运行检查
【发布时间】:2017-12-08 14:36:55
【问题描述】:

我刚刚更新到需要检查远程主机的“新”方式的 Icing 2.8,所以我正在尝试让它工作。

在 master 上,我在 zone.d 中添加了一个文件夹,其中包含远程主机的主机名。我添加了一些检查,但它们似乎都是从主机而不是远程执行的。

例如:我需要监控 Redis。我在 /etc/icinga2/zones.d/remotehostname/redis.conf 中的 redis.conf:

apply Service "Redis" {
    import "generic-service"

    check_command = "Redis"

    vars.notification["pushover"] = {
            groups = [ "ADMINS" ]
    }

assign where host.name == "remotehostname"

}

IcingaWeb 中弹出了一项新服务,但出现错误:

execvpe(/usr/lib/nagios/nagios-plugins/check_redis_publish_subscribe.pl) failed: No such file or directory

这是正确的,因为在主服务器上该文件不存在。但是它确实存在于远程主机上。

如何让 Icinga 在远程主机上执行此操作并让该主机将输出返回给主机?

【问题讨论】:

    标签: redis monitoring nagios icinga2


    【解决方案1】:

    您可以将其写入服务:

    command_endpoint = 主机名

    或者您可以尝试创建一个区域并将该区域添加到主机。

    也许这可以帮助你: NetWays Blog

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-04-25
      • 2023-03-03
      • 1970-01-01
      • 2020-06-15
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多