CMK version: 2.1.0p40
OS version: Ubuntu 22.04 LTS
Error message:
2024-03-11 23:23:30 [main] Polling failed: Connection timed out
2024-03-11 23:23:33 [main] Polling failed: Connection timed out
2024-03-11 23:23:35 [main] Polling failed: Connection timed out
2024-03-11 23:23:38 [main] Polling failed: Connection timed out
2024-03-11 23:23:40 [main] Polling failed: Connection timed out
2024-03-11 23:23:43 [main] Polling failed: Connection timed out
2024-03-11 23:23:45 [main] Polling failed: Connection timed out
2024-03-11 23:23:47 [client 1] accepted client connection on fd 20
2024-03-11 23:23:47 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:47 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:47 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:48 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:48 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:48 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:48 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:48 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:49 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:49 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:49 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:49 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:49 [main] Polling failed: Connection timed out
2024-03-11 23:23:49 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:50 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:50 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:50 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:50 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:50 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:51 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:51 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:51 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:51 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:51 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:52 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:52 [main] Polling failed: Connection timed out
2024-03-11 23:23:52 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:52 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:52 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:52 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:53 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:53 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:53 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:53 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:53 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:54 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:54 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:54 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:54 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:54 [main] Polling failed: Connection timed out
2024-03-11 23:23:54 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:55 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:55 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:55 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:55 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:55 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:56 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:56 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:56 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:56 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:56 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:57 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:57 [main] Polling failed: Connection timed out
2024-03-11 23:23:57 [client 1] Polling failed: Connection timed out
2024-03-11 23:23:57 [client 1] Timeout of 10000 ms exceeded while reading query
2024-03-11 23:23:57 [client 1] error: terminating client connection: timeout
2024-03-11 23:23:58 [client 2] accepted client connection on fd 20
2024-03-11 23:23:58 [client 2] request: GET hosts\nStats: name !=\nStats: has_been_checked = 0\nStats: has_been_checked = 1\nStats: state = 0\nStatsAnd: 2\nStats: has_been_checked = 1\nStats: state = 1\nStatsAnd: 2\nStats: has_been_checked = 1\nStats: state = 1\nStats: active_checks_enabled = 1\nStats: acknowledged = 0\nStats: scheduled_downtime_depth = 0\nStatsAnd: 5\nStats: has_been_checked = 1\nStats: state = 2\nStatsAnd: 2\nStats: has_been_checked = 1\nStats: state = 2\nStats: active_checks_enabled = 1\nStats: acknowledged = 0\nStats: scheduled_downtime_depth = 0\nStatsAnd: 5\nOutputFormat: json\nResponseHeader: fixed16
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)
I compiled the livestatus.o and unixcat as standalone using the check-mk-raw source using the --with-nagios4
option. The module appears to load fine and xinetd is also configured to serve on port 6557. Connectivity to the port seems to be fine, however, the module would error with the above errors and crash Nagios itself. Really need some assistance with this.
livestatus xinetd
service livestatus
{
type = UNLISTED
port = 6557
socket_type = stream
protocol = tcp
wait = no
cps = 100 3
instances = 500
per_source = 250
flags = NODELAY
user = nagios
server = /usr/local/bin/unixcat
server_args = /opt/nagios/var/rw/live
disable = no
}
nagios.log
[1710199574] Nagios 4.5.1 starting... (PID=540)
[1710199574] Local time is Mon Mar 11 23:26:14 UTC 2024
[1710199574] LOG VERSION: 2.0
[1710199574] qh: Socket '/opt/nagios/var/rw/nagios.qh' successfully initialized
[1710199574] qh: core query handler registered
[1710199574] qh: echo service query handler registered
[1710199574] qh: help for the query handler registered
[1710199574] wproc: Successfully registered manager as @wproc with query handler
[1710199574] wproc: Registry request: name=Core Worker 544;pid=544
[1710199574] wproc: Registry request: name=Core Worker 546;pid=546
[1710199574] wproc: Registry request: name=Core Worker 542;pid=542
[1710199574] wproc: Registry request: name=Core Worker 543;pid=543
[1710199574] wproc: Registry request: name=Core Worker 545;pid=545
[1710199574] wproc: Registry request: name=Core Worker 547;pid=547
[1710199574] livestatus: setting debug level to 7
[1710199574] livestatus: Livestatus by Checkmk GmbH started with PID 540
[1710199574] livestatus: version 2.1.0p40 compiled Mon, 11 Mar 2024 22:17:20 +0000 on 38db34bfb518
[1710199574] livestatus: built with g++-11 (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0, using C++11 regex engine
[1710199574] livestatus: please visit us at https://checkmk.com/
[1710199574] livestatus: socket path = '/opt/nagios/var/rw/live'
[1710199574] livestatus: pnp path = ''
[1710199574] livestatus: inventory path = ''
[1710199574] livestatus: structured status path = ''
[1710199574] livestatus: robotmk html log path = '""'
[1710199574] livestatus: logwatch path = ''
[1710199574] livestatus: log file path = '/opt/nagios/var/livestatus.log'
[1710199574] livestatus: mkeventd socket path = '/opt/nagios/var/rw/mkeventd/status'
[1710199574] livestatus: rrdcached socket path = '/opt/nagios/var/rw/rrdcached.sock'
[1710199574] livestatus: Hint: Please try out Checkmk (https://checkmk.com/)
[1710199574] livestatus: removed old socket file /opt/nagios/var/rw/live
[1710199574] livestatus: opened UNIX socket at /opt/nagios/var/rw/live
[1710199574] livestatus: your event_broker_options are sufficient for livestatus.
[1710199574] livestatus: finished initialization, further log messages go to /opt/nagios/var/livestatus.log
[1710199574] Event broker module '/opt/nagios/mk-livestatus/livestatus.o' initialized successfully.