如何在Debian上设置icinga2

最大的问题是CLI向导不能在Debian软件包上运行。 所以icinga2 node wizard是不可能的。

所以我必须手动编辑configuration,但是这太奇怪了,读完之后我就知道了。

几个问题:

  1. satelitte和客户端有什么不同?
  2. 区域和集群有什么区别?
  3. 如果设置区域和端点,我应该看到webpanel上的主机? 或者我必须独立设置?

我想在一个Web面板中看到所有的主机,我想从这台主计算机上pipe理它。

我想,我必须在所有主机上运行icinga2。

我现在所做的是:

在主计算机上,我更改了zones.conf:

 /* * Endpoint and Zone configuration for a cluster setup * This local example requires `NodeName` defined in * constants.conf. */ object Endpoint "chart-left" { host = "127.0.0.1" } object Endpoint "gonzales" { host = "WXYZ" } object Zone "master" { endpoints = [ "chart-left" ] } object Zone "checker" { endpoints = [ "gonzales" ] parent = "master" } /* * Defines a global zone containing templates, * etc. synced to all nodes, if they accept * configuration. All remote nodes need * this zone configured too. */ /* object Zone "global-templates" { global = true } */ 

而在客户端计算机上,zones.conf与IP不同:

 /* * Endpoint and Zone configuration for a cluster setup * This local example requires `NodeName` defined in * constants.conf. */ object Endpoint "chart-left" { host = "ABCD" } object Zone "master" { endpoints = [ "chart-left" ] } object Endpoint "gonzales" { host = "127.0.0.1" } object Zone ZoneName { endpoints = [ "gonzales" ] parent = "master" } /* * Defines a global zone containing templates, * etc. synced to all nodes, if they accept * configuration. All remote nodes need * this zone configured too. */ /* object Zone "global-templates" { global = true } */ 

在这两个日志中出现一些信息:

主:

 [2016-04-13 00:47:17 +0200] information/ApiClient: Reconnecting to API endpoint 'gonzales' via host 'WXYZ' and port 5665 

客户:

 [2016-04-13 00:54:10 +0200] information/ApiListener: New client connection for identity 'chart-left' 

但是看面板,我仍然只能看到localhost(图左) – 这是在hosts.conf中定义的。

这些zones.d树看起来像:

 zones.d/ README checker/ global-templates/ master/ 

没有任何文件在检查/主/全球模板/

这不能回答你的问题,但是解决了CLI不能正常工作的问题。 您可以按照Icinga2入门指南从debam安装软件包(该版本稍微更新一些)。 (确保你实际安装的是新版本而不是jessie中的版本。)然后你可以使用向导。