Not able to start check_mk on redhat 6.5

Hi All,

i downloaded check_mk raw edition for redhat 6
note my exact red hat version is red hat 6.5.

i install the rpm package using following command
yum localinstall check-mk-raw-1.6.0p8-el6-38.x86_64.rpm
i followed the installation guide for redhat.
but when i tried to start up the service i am getting below ERROR.

[root@dgcdvtapp01-oob omd]# omd status
Doing ‘status’ on site dev:
mkeventd: stopped
rrdcached: stopped
npcd: stopped
nagios: stopped
apache: stopped
nsca: stopped
crontab: stopped

Overall state: stopped

[root@dgcdvtapp01-oob omd]# omd start dev
Creating temporary filesystem /omd/sites/dev/tmp…Traceback (most recent call last):
File “/usr/bin/omd”, line 65, in
omdlib.main.main()
File “/omd/versions/1.6.0p8.cre/lib/python/omdlib/main.py”, line 4748, in main
command_function(site, args, command_options)
File “/omd/versions/1.6.0p8.cre/lib/python/omdlib/main.py”, line 4440, in
lambda site, args, opts: main_init_action(site, “start”, args, opts), [
File “/omd/versions/1.6.0p8.cre/lib/python/omdlib/main.py”, line 3435, in main_init_action
exit_status = init_action(site, command, args, options)
File “/omd/versions/1.6.0p8.cre/lib/python/omdlib/main.py”, line 2323, in init_action
prepare_and_populate_tmpfs(site)
File “/omd/versions/1.6.0p8.cre/lib/python/omdlib/main.py”, line 1605, in prepare_and_populate_tmpfs
prepare_tmpfs(site)
File “/omd/versions/1.6.0p8.cre/lib/python/omdlib/main.py”, line 1642, in prepare_tmpfs
stderr=subprocess.STDOUT)
File “/omd/versions/1.6.0p8.cre/lib/python2.7/subprocess.py”, line 394, in init
errread, errwrite)
File “/omd/versions/1.6.0p8.cre/lib/python2.7/subprocess.py”, line 1047, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied

not that all the files owned by root and i am trying to start it up using root account only.

below is content of /usr/bin/omd ,

“”"This file is part of OMD - The Open Monitoring Distribution

isort:skip_file"""

Disable YAPF for the moment. There is a larger commit pending that

needs to be merged before YAPFing this file.

yapf: disable

import os
import sys

This hack here is needed to prevent “omd update” problems when updating

as site user from 1.4 versions older than 1.4.0p17.

Previous versios did not unset PYTHONPATH/LD_LIBRARY_PATH before execv()

to the newer version “omd” command which made the newer OMD load the old

python libraries. Newer versions unset these variables before, so this

additional execv() is only needed when updating from older versions.

if len(sys.argv) > 1 and sys.argv[1] == “update”
and (sys.version_info[0] == 2 and sys.version_info[1] == 7 and sys.version_info[2] < 14):
# Prevent inheriting environment variables from this versions/site environment
# into the execed omd call. The OMD call must import the python version related
# modules and libaries. This only works when PYTHONPATH and LD_LIBRARY_PATH are
# not already set when calling “omd update”
try:
del os.environ[“PYTHONPATH”]
except KeyError:
pass

try:
    del os.environ["LD_LIBRARY_PATH"]
except KeyError:
    pass
os.execv(sys.argv[0], sys.argv)
sys.exit("Cannot run execv() %s" % sys.argv[0])

import omdlib.main

if name == “main”:
omdlib.main.main()

note i did same setup on redhat 7 using raw edition for redhat 7 it was working perfectly.

would you please help in this matter.

Best Regards

SELinux enabled ? If so, try to disable it :slight_smile: