I would like to install the Checkmk Raw Edition under Docker.
According to your instructions, this works great on my workstation. (Ubuntu 20.04)
https : / / docs . checkmk . com / latest / de / introduction_docker . html
### 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
Executing post-create script "01_create-sample-config.py"...OK
Created new site cmk with version 2.0.0p8.cre.
The site can be started with omd start cmk.
The default web UI is available at http://d263d224804f/cmk/
The admin user for the web applications is cmkadmin with password: c5JXynPC
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
[ ok ] Starting internet superserver: xinetd.
### STARTING SITE
Temporary filesystem already mounted
Starting mkeventd...OK
Starting rrdcached...OK
Starting npcd...OK
Starting nagios...OK
Starting apache...OK
Starting redis...OK
Initializing Crontab.../var/spool/cron/: mkstemp: Permission denied
Exception ignored in: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>
BrokenPipeError: [Errno 32] Broken pipe
ERROR
To be honest, if I have a host, where I can install docker, personally I wouldn’t bother trying to run CMK in a container, I’d simply install the appropriate package for my distribution and be done with it, to not have to deal with any quirks coming from inside the container environment.
Be that as it may, I’m not sure why you want to run either “check_icmp” or anything as root for that matter. One is supposed to run everything with the siteuser, which in your case is apparently cmk. As it says in your site creation output: Switch to your siteuser with omd su and run whatever you want to run.
Perhaps this is not the answer you wanted to hear, but it may get you a step further, I hope.
I don’t want a native installation, because of the dependencies.
That’s for everyone to decide. The output of check_icmp should not tell you that I want to run it as root, but as site user I don’t get the permission!
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.