Install Guide for Zenoss 2.1 on Suse 10.2
From SysAdminWiki
Operating System: Open SuSe 10.2 (standard install, that has been updated.) No other packages added.
Zenoss Package: zenoss-2.1.2-0.tar.gz
Infomation: This install guide was made from putting together a bunch of different guides and peoples comments i found on the zenoss web site.
- 1. Install a few packages we need to get us started.
# yast -i apache2 # yast -i gcc # yast -i mysql # yast -i mysql-devel # yast -i swig (need to compile from source if suse enterprise SLES. You will also need to yast -i gcc-c++ for this compile.) # yast -i autoconf # zypper install perl-Net-SNMP
- 2. Confirm the packages we just installed meet the required dependancies:
# rpm -qa | grep mysql -> should be >=5.0.22 # rpm -qa | grep swig -> should be >= 1.3 # rpm -qa | grep autoconf -> should be >= 2.53
- 3. Create the zenoss user.
# useradd zenoss -d /home/zenoss -m # chown zenoss.users /home/zenoss
- 4. Add Zenoss Environment Variables to /etc/profile.
echo #### Adding Environment Variables for Zenoss #### >> /etc/profile echo export ZENHOME=/usr/zenoss >> /etc/profile echo export PYTHONPATH=$ZENHOME/lib/python >> /etc/profile echo export PATH=$ZENHOME/bin:$PATH >> /etc/profile
# mkdir /usr/zenoss # chown zenoss.users /usr/zenoss
- 5. Start the core services the zenoss installer will need.
# service mysql start # service apache2 start # chkconfig -s apache2 35 # chkconfig -s mysql 35
- 6. Get and install python. (Note: if you didnt install compling tools yet, go into yast and do a search for gcc. Install all related packages and dependants. You also need to get the phyton-devel, i used yast -i phython-devel. SUSE 10's python install will not work with the Zope installer. You need to build python from http://www.python.org for the install to work properly.)
# wget http://www.python.org/ftp/python/2.4.4/Python-2.4.4.tgz # tar -zxf Python-2.4.4.tgz # cd Python-2.4.4 # ./configure --with-libs=zlib (you can probably get away with just a ./configure. But i ran into an issue where it was complaining about zlib missing when trying to build zope, so i do this now to avoid it. # make # make install
- 7. Get and install Zenoss.
# su - zenoss # Download the latest copy of zenoss from their site. # tar -zxf zenoss-2.X.X.tar.gz # cd zenoss-2.* # ./install.sh
Note: You need to know your mysql root password for this. If you havn't already set it up follow this docuemnt: Click
- 8. If your really lucky 7 went through without any complaints, but i've yet to see that happen. Check the zenbuild.log file which is in your current directory to see what its complaining about, most likely there is development library/package missing. A popular error at this point is something like:
error: invalid Python installation: unable to open /usr/lib/python2.5/config/Makefile (No such file or directory) gmake[1]: *** [pycom-installed] Error 1 gmake[1]: Leaving directory `/local/home/zenoss/zenoss-2.1.2/build/wmi-0.1.5'
If you see that or something similar do a 'yast -i phython-devel'
- 9. Clean up and start Zenoss.
# chown root:users /usr/zenoss/bin/zensocket # chmod 04750 /usr/zenoss/bin/zensocket # $ZENHOME/bin/zenoss start
- 10. Now test to make sure you can hit zenoss from your web browser:
- go to url http://hostname:8080/zport/dmd - username is "admin" - password is the one entered for Zenoss "admin" user
Notes: So you should have a your install ready to configure and devices at this point. So log in and start messing around in there. You may also want to check out Common Zenoss Errors - Post Install if you are having problems still.
