Icinga2 icingaWeb2:无法将窗口主机注册到Centos主服务器,但在其他Centos服务器上没有问题

时间:2018-07-20 10:42:07

标签: icinga2 icingaweb2

我曾经在Centos上对Icinga2和icingaweb2(带控制器)进行了很好的设置,我可以编写一个bash脚本来自动注册要由此IcingaWeb监视的其他主机(centos和Linux)...但是现在我也希望监视Windows客户端。.按照L https://www.linuxtechi.com/add-remote-linux-windows-host-icinga-2-monitoring/ ...但是当我尝试时,我总是从主机那里得到错误消息:

[2018-07-20 09:48:55 +0000] information/JsonRpcConnection: Received certificate request for CN 'client.domain' signed by our CA.
[2018-07-20 09:48:55 +0000] information/JsonRpcConnection: The certificate for CN 'client.domain' cannot be renewed yet.
[2018-07-20 09:49:55 +0000] warning/JsonRpcConnection: API client disconnected for identity 'client.domain'
[2018-07-20 09:50:30 +0000] information/ApiListener: New client connection for identity 'client.domain' from [10.2.13.227]:56826 (certificate validation failed: code 18: self signed certificate)
[2018-07-20 09:50:30 +0000] information/JsonRpcConnection: Received certificate request for CN 'client.domain' not signed by our CA.
[2018-07-20 09:50:30 +0000] information/JsonRpcConnection: Sending certificate response for CN 'client.domain' to endpoint 'client.domain' (auto-signing ticket).
[2018-07-20 09:50:30 +0000] warning/JsonRpcConnection: API client disconnected for identity 'client.domain'
[2018-07-20 09:50:38 +0000] information/ApiListener: New client connection for identity 'client.domain' from [10.2.13.227]:56843 (no Endpoint object found for identity)
[2018-07-20 09:50:38 +0000] information/JsonRpcConnection: Received certificate request for CN 'client.domain' signed by our CA.
[2018-07-20 09:50:38 +0000] information/JsonRpcConnection: The certificate for CN 'client.domain' cannot be renewed yet.

我怀疑证书存在问题,但我不知道如何解决。

这是在client.domain日志中:

[2018-07-20 10:13:33 -0000] warning/JsonRpcConnection: API client disconnected for identity 'master.domain'
[2018-07-20 10:13:33 -0000] warning/JsonRpcConnection: API client disconnected for identity 'master.domain'
[2018-07-20 10:13:33 -0000] warning/ApiListener: Removing API client for endpoint 'master.domain'. 0 API clients left.
[2018-07-20 10:13:33 -0000] warning/ApiListener: Removing API client for endpoint 'master.domain'. 0 API clients left.
[2018-07-20 10:17:57 -0000] information/ApiListener: Adding new listener on port '5665'
[2018-07-20 10:17:57 -0000] information/CheckerComponent: 'checker' started.
[2018-07-20 10:17:57 -0000] information/ConfigItem: Activated all objects.
[2018-07-20 10:18:06 -0000] information/WorkQueue: #5 (ApiListener, SyncQueue) items: 0, rate:  0/s (0/min 0/5min 0/15min);
[2018-07-20 10:18:06 -0000] information/WorkQueue: #4 (ApiListener, RelayQueue) items: 0, rate: 0.183333/s (11/min 11/5min 11/15min);

[2018-07-20 10:22:57 -0000] information/ConfigObject: Dumping program state to file 'C:\ProgramData\icinga2\var/lib/icinga2/icinga2.state'
[2018-07-20 10:23:06 -0000] information/WorkQueue: #5 (ApiListener, SyncQueue) items: 0, rate:  0/s (0/min 0/5min 0/15min);
[2018-07-20 10:23:06 -0000] information/WorkQueue: #4 (ApiListener, RelayQueue) items: 0, rate: 0.5/s (30/min 152/5min 152/15min);
[2018-07-20 10:27:57 -0000] information/ConfigObject: Dumping program state to file 'C:\ProgramData\icinga2\var/lib/icinga2/icinga2.state'
[2018-07-20 10:28:06 -0000] information/WorkQueue: #4 (ApiListener, RelayQueue) items: 0, rate: 0.5/s (30/min 150/5min 302/15min);
[2018-07-20 10:28:06 -0000] information/WorkQueue: #5 (ApiListener, SyncQueue) items: 0, rate:  0/s (0/min 0/5min 0/15min);
[2018-07-20 10:32:57 -0000] information/ConfigObject: Dumping program state to file 'C:\ProgramData\icinga2\var/lib/icinga2/icinga2.state'
[2018-07-20 10:33:06 -0000] information/WorkQueue: #5 (ApiListener, SyncQueue) items: 0, rate:  0/s (0/min 0/5min 0/15min);
[2018-07-20 10:33:06 -0000] information/WorkQueue: #4 (ApiListener, RelayQueue) items: 0, rate: 0.5/s (30/min 150/5min 452/15min);
[2018-07-20 10:37:57 -0000] information/ConfigObject: Dumping program state to file 'C:\ProgramData\icinga2\var/lib/icinga2/icinga2.state'
[2018-07-20 10:38:06 -0000] information/WorkQueue: #4 (ApiListener, RelayQueue) items: 0, rate: 0.5/s (30/min 144/5min 444/15min);
[2018-07-20 10:38:06 -0000] information/WorkQueue: #5 (ApiListener, SyncQueue) items: 0, rate:  0/s (0/min 0/5min 0/15min);

如您所见..看来主日志只是问题一..那么有什么建议吗?

1 个答案:

答案 0 :(得分:0)

全部..我得到了一个更新..现在,这个问题不仅不再出现在Window上了。.现在在Centos7上进行了新的注册,我也收到了此错误 ->日志:[2018-08-01 09:15:12 +0000]信息/ ApiListener:在区域'dev-graphite-1a-中发送端点'dev-graphite-1a-0.acommercedev.platform'的重播日志0.acommercedev.platform”。 [2018-08-01 09:15:12 +0000]信息/ ApiListener:已完成在区域'dev-graphite-1a-0.acommercedev中发送端点'dev-graphite-1a-0.acommercedev.platform'的重播日志。平台'。 [2018-08-01 09:15:12 +0000]信息/ ApiListener:完成同步区域'dev-graphite-1a-0.acommercedev.platform'中的端点'dev-graphite-1a-0.acommercedev.platform'。 [2018-08-01 09:16:14 +0000]信息/ JsonRpcConnection:在过去60秒内未收到任何标识为'dev-graphite-1a-0.acommercedev.platform'的消息。 [2018-08-01 09:16:14 +0000]警告/ JsonRpcConnection:身份标识'dev-graphite-1a-0.acommercedev.platform'的API客户端已断开连接 [2018-08-01 09:16:14 +0000]警告/ JsonRpcConnection:身份标识'dev-graphite-1a-0.acommercedev.platform'的API客户端已断开连接 [2018-08-01 09:16:14 +0000]警告/ ApiListener:删除端点'dev-graphite-1a-0.acommercedev.platform'的API客户端。还剩0个API客户端。 [2018-08-01 09:16:14 +0000]警告/ ApiListener:删除端点'dev-graphite-1a-0.acommercedev.platform'的API客户端。还剩0个API客户端。

我的Master API出了什么问题?