Zenoss on Fedora 8

I've wasted 1.5 day trying to get zenoss from their RPM to run on my F8 laptop using compat-python24 from livna. I've tried lots of ways like recompiling, export PYTHON and PYTHONPATH env variables etc but without much luck. I solved it just now after looking into the python files and noticed that they are all hardcoded with /usr/bin/python instead of /usr/bin/env python. There are even some that uses /opt/zenoss/bin/python. Here's my little hackfix to make zenoss starts cleanly.

Before running this, I recommend existing zenoss install to be removed, rm -rf /opt/zenoss, and reinstall it clean.



find . -type f -exec sed -i "s|/usr/bin/python|${ZENOSS_DIR}/bin/python|g" '{}' ';'

cd $ZENOSS_DIR/bin
rm python
ln -s $PYTHON python

A little description about the above script. It simply change all /usr/bin/python to /opt/zenoss/bin/python and replace the symlink /opt/zenoss/bin/python to point to /usr/bin/python2.4

Now Zenoss can be started using /sbin/service zenoss start.

Happy that I have a test instance now, time to figure out how to install it on freebsd qemu. >.<


Hi KageSenshi,

I came across your blog while doing a search for "Zenoss" and "Fedora". I work on the Zenoss project and I am responsible for the RPMs we distribute.

First I'd like to say that I'm sorry to hear you feel like you wasted a day and a half on installing our software. We've worked very hard to try to make the installation of Zenoss as easy as possible. There clearly was a breakdown here, and regardless of where or why that breakdown occurred I would like to apologize for the time you feel you've lost. I'd like for you and I to work together so that other people don't experience the same problem. Would you be willing to contact me on the zenoss-users forum? My handle on there is "blunck2".

Second I'd like to find out more about why your particular installation failed. I'd like for us to do that on the zenoss-users forum so that others can follow along.

We are working on Fedora 8 RPMs and I believe we will publish them in our next official release (or spring - whatever they are called these days!). When we prepared the Fedora 8 RPM we came across some python scripts that referenced #!/usr/bin/python rather than #!/opt/zenoss/bin/python.

On older releases that was ok because we did not include our own Python when we shipped Zenoss. But in our current version it won't work.

I hope you are willing to provide us with some additional information over on zenoss-users. I'll keep an eye out for your post!

Popular posts from this blog

Announcing PlatoCDP, a Plone distribution for enterprises.

Adding simple popup to Plone frontpage

An Open Letter for the Rector of PETRONAS University of Technology