我设置了一个icinga2安装来监视一组服务器。在客户机节点(ubuntu16.04,通过从Ubuntu存储库通过apt安装的icinga2 )上,我用hosts.conf设置:
object Host NodeName {
/* Import the default host template defined in `templates.conf`. */
display_name = "Gitlab-CI"
import "generic-host"
/* Specify the address attributes for checks e.g. `ssh` or `http`. */
address = "127.0.0.1"
address6 = "::1"
/* Set custom attribute `os` for hostgroup assignment in `groups.conf`. */
vars.os = "Linux"
}但是在web接口中,我只看到它的FQDN gitlabci.example.com。
我可以在不删除NodeName指令的情况下更改显示的名称,因为这是一个很好的特性,具有标准的Ubuntu (我认为所有标准的Icinga2设置)配置。
发布于 2017-03-29 06:52:11
我从自下而上移动到自上而下的配置模式,并将Icinga2更新到2.6.0版本,然后按照上面的问题进行工作。
https://stackoverflow.com/questions/40516530
复制相似问题