CMK 2.0 - Docker | Nagios fails to start, restart loop

Dear Forum.

I just pull’ed the docker image and started it up for the first time.
But its not loading in the browser witht he given url.

When i look at the logs, nagios fails to start, and the startup process is restarted and fails agian.

### CREATING SITE 'cmk'

Adding /opt/omd/sites/cmk/tmp to /etc/fstab.

Going to set TMPFS to off.

Temporary filesystem already mounted

Updating core configuration...

Generating configuration for core (type nagios)...Precompiling host checks...OK

OK

Created new site cmk with version 2.0.0p6.cre.


The site can be started with omd start cmk.

The default web UI is available at http://73cf19ce0994/cmk/


The admin user for the web applications is cmkadmin with password: QsSJNer4

For command line administration of the site, log in with 'omd su cmk'.

After logging in, you can change the password for cmkadmin with 'htpasswd etc/htpasswd cmkadmin'.


### STARTING XINETD

[....] Starting internet superserver: xinetde7[ ok e8.

### STARTING SITE

Temporary filesystem already mounted

Starting mkeventd...OK


Starting rrdcached...OK

Starting npcd...OK

Starting nagios.............ERROR

Starting apache...OK

Starting redis...OK

Initializing Crontab...OK

Any way do debug further?
Other images works fine

CheckMK Version: 2.0.0p6
Edition: RAW
Host: Macbook

Can you share the command you use to start the docker container?
I just tried it with:

docker run -p8082:5000 --rm checkmk/check-mk-raw:2.0.0p6

and can access the webinterface for 2.0.0p6 (CRE)

have you already looked into /omd/sites/cmk/var/log inside the container?

I accessed the cli and ran ‘omd status’ and the apache + nagios was not running.
Not able to view the logs as the docker restarts, with the last lines on the run command

docker container run -dit -p 8080:5000 --ulimit nofile=1024 --tmpfs /opt/omd/sites/cmk/tmp:uid=1000,gid=1000 -v monitoring:/omd/sites --name monitoring -v /etc/localtime:/etc/localtime:ro --restart always checkmk/check-mk-raw:2.0.0-latest

Will have a try without the restart bit

[1624438497] Nagios 3.5.1 starting... (PID=240)
[1624438497] Local time is Wed Jun 23 08:54:57 UTC 2021
[1624438497] LOG VERSION: 2.0
[1624438497] npcdmod: Copyright (c) 2008-2009 Hendrik Baecker (andurin@process-zero.de) - http://www.pnp4nagios.org
[1624438497] npcdmod: /omd/sites/cmk/etc/pnp4nagios/npcd.cfg initialized
[1624438497] npcdmod: spool_dir = '/omd/sites/cmk/var/pnp4nagios/spool/'.
[1624438497] npcdmod: perfdata file '/omd/sites/cmk/var/pnp4nagios/perfdata.dump'.
[1624438497] npcdmod: Ready to run to have some fun!
[1624438497] Event broker module '/omd/sites/cmk/lib/npcdmod.o' initialized successfully.
[1624438497] livestatus: setting number of client threads to 20
[1624438497] livestatus: Path to the license usage '/omd/sites/cmk/var/check_mk/license_usage/history.json' not existing!
[1624438497] livestatus: Check_MK Inventory directory '/omd/sites/cmk/var/check_mk/inventory' not existing!
[1624438497] livestatus: Livestatus by tribe29 GmbH started with PID 240
[1624438497] livestatus: version 2.0.0p6 compiled Tue, 22 Jun 2021 19:26:48 +0000 on debian-10
[1624438497] livestatus: built with g++-10 (GCC) 10.1.0, using RE2 regex engine
[1624438497] livestatus: please visit us at https://checkmk.com/
[1624438497] livestatus: socket path = '/omd/sites/cmk/tmp/run/live'
[1624438497] livestatus: pnp path = '/omd/sites/cmk/var/pnp4nagios/perfdata'
[1624438497] livestatus: inventory path = ''
[1624438497] livestatus: structured status path = ''
[1624438497] livestatus: logwatch path = '/omd/sites/cmk/var/check_mk/logwatch'
[1624438497] livestatus: log file path = '/omd/sites/cmk/var/nagios/livestatus.log'
[1624438497] livestatus: mkeventd socket path = '/omd/sites/cmk/tmp/run/mkeventd/status'
[1624438497] livestatus: rrdcached socket path = '/omd/sites/cmk/tmp/run/rrdcached.sock'
[1624438497] livestatus: running on Checkmk site cmk, cool.
[1624438497] livestatus: opened UNIX socket at /omd/sites/cmk/tmp/run/live
[1624438497] livestatus: your event_broker_options are sufficient for livestatus.
[1624438497] livestatus: finished initialization, further log messages go to /omd/sites/cmk/var/nagios/livestatus.log
[1624438497] Event broker module '/omd/sites/cmk/lib/mk-livestatus/livestatus.o' initialized successfully.
[1624438497] Finished daemonizing... (New PID=243)
[1624438497] livestatus: TIMEPERIOD TRANSITION: 24X7;-1;1
[1624438497] livestatus: Timeperiod cache not updated, there are no timeperiods (yet)
[1624438497] livestatus: logging initial states
[1624438497] livestatus: starting main thread and 20 client threads
[1624438497] livestatus: default stack size is 8388608
[1624438497] livestatus: setting thread stack size to 1048576

This is the nagios log i can get to before it shuts down

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.