Install Guide for Zenoss 2.1 on Ubuntu 7.10

From SysAdminWiki

Jump to: navigation, search

Operating system: 'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016)' (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. Note i have already run 'apt-get update' on the system so make sure you have done so as well.

1. Install some dependant/required packages.

 # apt-get install python-dev gcc g++ make bzip2 sudo subversion sysv-rc-conf snmp snmpd patch

2. Setup /etc/apt/sources.list with the dotdeb repo information. Then update.

eb http://packages.dotdeb.org stable all
deb-src http://packages.dotdeb.org stable all
# apt-get update

3. Install autoconf and swiq.

 # apt-get autoconf swig 

NOTE: If you don't already have mysql 5.0 and the dev package type the following:

apt-get install mysql-server-5.0 libmysqlclient15-dev

4. Type 'visudo' and add the following.

#Zenoss Settings
Defaults env_reset
Defaults env_keep = "PYTHONPATH ZENHOME"
zenoss ALL=(ALL) NOPASSWD: ALL

5. Create then switch to the zenoss user.

# useradd -m -d /home/zenoss -s /bin/bash zenoss
# passwd zenoss
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
# su - zenoss

6. Add the following lines to .bashrc. Also type it in manually so you have that variable set for this session.

 export ZENHOME=/usr/local/zenoss 

7. Grab the install sources. Wait for them to download.

svn co http://dev.zenoss.org/svn/trunk/inst

8. Create the $ZENHOME directory.

$ sudo mkdir -p $ZENHOME
$ sudo chown -R zenoss $ZENHOME

9. Run the zenoss installer script. You should know your root mysql password before starting this.

$ cd inst/
$ ./install.sh

10. Add a zenoss to /etc/init.d

$ ln -s $ZENHOME/bin/zenoss /etc/init.d

11. Use 'sudo sysv-rc-conf' and add zenoss to run levels 2,3,4,5.

12.Setup the permissons on zensocket.

 
chown root:zenoss $ZENHOME/bin/zensocket
chmod 04750 $ZENHOME/bin/zensocket

So this should have Zenoss installed. Open a web browser and hit your server on port 8080. (ex 192.168.2.100:8080) Log in as admin and what ever password you set eariler. We still need to configure SNMP a little bit, here is a quick blurb on it, the rest of the info is other parts of the site, under the category Zenoss.

11. So first we setup SNMP. Do this as root. Run through the prompts and fill in the system info:

 # snmpconf -g basic_setup 

12. After that try to add the device into zenoss using the snmp community string you setup during that snmpconfig.

Advertisement