Hello All,
I hope you all are well. I have experienced some of my Windows agents intermittently disconnecting from the Icinga Master server. The agent will always reconnect again but what is causing the disconnect in the first place. Notifications are sent out when this happens. Below is the icinga2.log file. You can see the “TLS stream disconnect” message and “TLS handshake failed” message. But after some time it will sync back up and start working again. This causes another notification to get sent out that the server owners are asking about. Has anyone experience this?
I have a HA Icinga2 environment. Both Master servers are running version 2.10.5. Most Windows clients (600+) are running version 2.10.5.
[2020-05-28 23:21:57 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:22:47 -0700] information/WorkQueue: #6 (ApiListener, SyncQueue) items: 0, rate: 0/s (0/min 0/5min 0/15min);
[2020-05-28 23:23:17 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:23:50 -0700] warning/TlsStream: TLS stream was disconnected.
[2020-05-28 23:23:50 -0700] warning/JsonRpcConnection: API client disconnected for identity 'Master2'
[2020-05-28 23:23:50 -0700] warning/ApiListener: Removing API client for endpoint 'Master2'. 0 API clients left.
[2020-05-28 23:24:24 -0700] information/WorkQueue: #9 (JsonRpcConnection, #0) items: 0, rate: 0.3/s (18/min 116/5min 364/15min);
[2020-05-28 23:24:47 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:25:07 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:25:17 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (12/min 60/5min 180/15min);
[2020-05-28 23:26:12 -0700] information/ApiListener: New client connection for identity 'Master2' from [::ffff:10.157.1.2]:48788
[2020-05-28 23:26:31 -0700] information/WorkQueue: #5 (ApiListener, RelayQueue) items: 0, rate: 0/s (0/min 0/5min 0/15min);
[2020-05-28 23:26:35 -0700] information/ConfigObject: Dumping program state to file 'C:\ProgramData\icinga2\var\lib\icinga2/icinga2.state'
[2020-05-28 23:28:02 -0700] warning/TlsStream: TLS stream was disconnected.
[2020-05-28 23:28:02 -0700] warning/TlsStream: TLS stream was disconnected.
[2020-05-28 23:28:02 -0700] critical/ApiListener: Client TLS handshake failed (from [::ffff:10.157.1.2]:49938): Error: Socket was closed during TLS handshake.
Context:
(0) Handling new API client connection
[2020-05-28 23:28:02 -0700] critical/ApiListener: Client TLS handshake failed (from [::ffff:10.157.1.2]:49958): Error: Socket was closed during TLS handshake.
Context:
(0) Handling new API client connection
[2020-05-28 23:27:44 -0700] warning/JsonRpcConnection: API client disconnected for identity 'Master1'
[2020-05-28 23:28:02 -0700] information/WorkQueue: #9 (JsonRpcConnection, #0) items: 5, rate: 0.266667/s (16/min 85/5min 332/15min); empty in 1 minute and 27 seconds
[2020-05-28 23:28:02 -0700] information/ApiListener: New client connection for identity 'Master1' from [::ffff:10.156.1.2]:48758
[2020-05-28 23:28:02 -0700] warning/ApiListener: Removing API client for endpoint 'Master1'. 0 API clients left.
[2020-05-28 23:28:03 -0700] information/ApiListener: Requesting new certificate for this Icinga instance from endpoint 'Master2'.
[2020-05-28 23:28:03 -0700] information/ApiListener: Requesting new certificate for this Icinga instance from endpoint 'Master1'.
[2020-05-28 23:28:03 -0700] warning/ApiListener: Ignoring config update. 'api' does not accept config.
[2020-05-28 23:28:03 -0700] information/ApiListener: Sending config updates for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished sending config file updates for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Syncing runtime objects to endpoint 'Master2'.
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished syncing runtime objects to endpoint 'Master2'.
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished sending runtime config updates for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Sending replay log for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Sending config updates for endpoint 'Master1' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished sending config file updates for endpoint 'Master1' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Syncing runtime objects to endpoint 'Master1'.
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished syncing runtime objects to endpoint 'Master1'.
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished sending runtime config updates for endpoint 'Master1' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Sending replay log for endpoint 'Master1' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished sending replay log for endpoint 'Master1' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished syncing endpoint 'Master1' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished sending replay log for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/ApiListener: Finished syncing endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:03 -0700] information/WorkQueue: #6 (ApiListener, SyncQueue) items: 0, rate: 0.0333333/s (2/min 2/5min 2/15min);
[2020-05-28 23:28:03 -0700] warning/ApiListener: Ignoring config update. 'api' does not accept config.
[2020-05-28 23:28:03 -0700] warning/JsonRpcConnection: API client disconnected for identity 'Master2'
[2020-05-28 23:28:03 -0700] warning/ApiListener: Removing API client for endpoint 'Master2'. 0 API clients left.
[2020-05-28 23:28:11 -0700] information/ApiListener: New client connection for identity 'Master2' from [::ffff:10.157.1.2]:49990
[2020-05-28 23:28:11 -0700] information/ApiListener: Requesting new certificate for this Icinga instance from endpoint 'Master2'.
[2020-05-28 23:28:11 -0700] information/ApiListener: Sending config updates for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:11 -0700] information/ApiListener: Finished sending config file updates for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:11 -0700] information/ApiListener: Syncing runtime objects to endpoint 'Master2'.
[2020-05-28 23:28:11 -0700] information/ApiListener: Finished syncing runtime objects to endpoint 'Master2'.
[2020-05-28 23:28:11 -0700] information/ApiListener: Finished sending runtime config updates for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:11 -0700] information/ApiListener: Sending replay log for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:11 -0700] information/ApiListener: Finished sending replay log for endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:11 -0700] information/ApiListener: Finished syncing endpoint 'Master2' in zone 'Master'
[2020-05-28 23:28:11 -0700] warning/ApiListener: Ignoring config update. 'api' does not accept config.
[2020-05-28 23:28:12 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:28:22 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:28:32 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:29:02 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:29:22 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:29:33 -0700] information/WorkQueue: #9 (JsonRpcConnection, #0) items: 0, rate: 0.4/s (24/min 195/5min 434/15min);
[2020-05-28 23:29:43 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:31:32 -0700] information/WorkQueue: #5 (ApiListener, RelayQueue) items: 0, rate: 0/s (0/min 0/5min 0/15min);
[2020-05-28 23:32:33 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:32:53 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:33:02 -0700] information/ConfigObject: Dumping program state to file 'C:\ProgramData\icinga2\var\lib\icinga2/icinga2.state'
[2020-05-28 23:33:03 -0700] information/WorkQueue: #6 (ApiListener, SyncQueue) items: 0, rate: 0/s (0/min 1/5min 3/15min);
[2020-05-28 23:33:44 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
[2020-05-28 23:34:35 -0700] information/WorkQueue: #9 (JsonRpcConnection, #0) items: 0, rate: 0.4/s (24/min 124/5min 436/15min);
[2020-05-28 23:35:14 -0700] information/RemoteCheckQueue: items: 0, rate: 0/s (6/min 30/5min 90/15min);
Thanks in advance for you help.
Alex