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/

[alert style=”yellow”]$site needs to replaces with the name of your OMD site.[/alert]

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

Sharing is caring

Leave a Reply