Monday, March 14, 2016

OMD: python problem after CentOS yum update

After yum update I got a problem, related to python, with check_mk in the OMD implementation.


  • CentOS 7
  • check_mk 1.2.4p5
  • omd-1.20

In the check_mk web page you can see a lot of messages like this in each "Check_MK inventory" check.

(Return code of 5 is out of bounds)

and if you issue the check_mk command you get

Cannot read file /omd/sites/prod/share/check_mk/modules/ 'frozenset' object is not callable

My solution was:

cp /omd/versions/1.20/lib/python/ /omd/versions/1.20/lib/python/

cp /usr/lib64/python2.7/ /omd/versions/1.20/lib/python/


  1. I had the same problem. Thanks for the solution

  2. You also have to remove hashlib.pyc to remove the compiled version