我刚刚更新到 Icing 2.8,它需要检查远程主机的"new"方式,所以我正在努力让它工作。
在主机上,我在 zones.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
这是正确的,因为在 master 上该文件不存在。但是它确实存在于远程主机上。
如何让 Icinga 在远程主机上执行此操作并让该主机将输出返回给主机?
最佳答案
关于redis - Icinga2:在远程主机而不是主机上运行检查,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47716489/