Short tip: OMD and Python error “TypeError: ‘frozenset’ object is not callable”

When configuring and testing a Python Icinga plugin within an OMD site, I stumbled upon the following error recently:

TypeError: 'frozenset' object is not callable

After some tests on other systems, I found out, that the Python library hashlib shipped with OMD seems to be faulty. Copying the system-wide library into the OMD site did the trick for me:

# cp /opt/omd/sites/$site/lib/python/ /opt/omd/sites/$site/lib/python/
# cp /usr/lib64/python2.7/ /opt/omd/sites/$site/lib/python/
$site needs to replaces with the name of your OMD site.

Under CentOS, the package python-libs needs to installed to ensure that the file mentioned above is available.

Sharing is caring

2 comments Write a comment

  1. Good day Christian,

    I owe you so much for helping with discussed above and other issues.
    Much appreciate your generous contribution.

Leave a Reply