| 1 | Installing Zenoss on Ubuntu Server |
|---|
| 2 | |
|---|
| 3 | 1. Install Ubuntu 6.10. This install tested on a vmplayer image. |
|---|
| 4 | |
|---|
| 5 | 2. Login as default user. |
|---|
| 6 | |
|---|
| 7 | Commands that need to run as root will be prefixed with sudo. You can sudo from |
|---|
| 8 | the default user. |
|---|
| 9 | |
|---|
| 10 | 3. Need to add universe for apt-get use (svn, mysql dev) (using nano for |
|---|
| 11 | editor): |
|---|
| 12 | |
|---|
| 13 | sudo nano /etc/apt/sources.list |
|---|
| 14 | |
|---|
| 15 | Uncomment the two lines that contain "dapper univers" by removing #: |
|---|
| 16 | |
|---|
| 17 | deb http://ca.archive.ubuntu.com/ubuntu/ dapper universe deb-src |
|---|
| 18 | http://ca.archive.ubuntu.com/ubuntu/ dapper universe |
|---|
| 19 | |
|---|
| 20 | Save file, then refresh at command prompt: |
|---|
| 21 | |
|---|
| 22 | sudo apt-get update |
|---|
| 23 | |
|---|
| 24 | 4. Install development tools needed to build Zenoss. |
|---|
| 25 | |
|---|
| 26 | sudo apt-get install -y build-essential libmysqlclient15-dev \ python-dev |
|---|
| 27 | svn-buildpackage snmpd snmp \ autoconf swig mysql-server-5.0 mysql-client-5.0 |
|---|
| 28 | |
|---|
| 29 | 5. Add zenoss user: |
|---|
| 30 | |
|---|
| 31 | sudo adduser zenoss |
|---|
| 32 | |
|---|
| 33 | 6. Add zenoss install directory: |
|---|
| 34 | |
|---|
| 35 | sudo mkdir /usr/local/zenoss sudo chown zenoss /usr/local/zenoss |
|---|
| 36 | |
|---|
| 37 | 7. Login as zenoss user and set up some variables in login script: |
|---|
| 38 | |
|---|
| 39 | su - zenoss cd (goto home directory) nano .bashrc . .bashrc |
|---|
| 40 | |
|---|
| 41 | Add these lines: |
|---|
| 42 | |
|---|
| 43 | export ZENHOME=/usr/local/zenoss export PYTHONPATH=$ZENHOME/lib/python export |
|---|
| 44 | PATH=$ZENHOME/bin:$PATH |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | 8. Get latest zenoss tarball. To use subversion to download it, need to download |
|---|
| 48 | svn first from universe. Login as root: |
|---|
| 49 | |
|---|
| 50 | apt-get install svn-buildpackage su - zenoss cd |
|---|
| 51 | |
|---|
| 52 | Download latest tar to zenossinst subdir: |
|---|
| 53 | |
|---|
| 54 | svn co http://dev.zenoss.org/svn/trunk/inst zenossinst |
|---|
| 55 | |
|---|
| 56 | |
|---|
| 57 | 9. Install zenoss from its install directory. For mysql, use the default root |
|---|
| 58 | user, with the password you used in step 15. For zenoss password, create a new |
|---|
| 59 | one: |
|---|
| 60 | |
|---|
| 61 | cd zenossinst ./install.sh |
|---|
| 62 | |
|---|
| 63 | 10. Do as the install instructions say and change the permissions on zensocket |
|---|
| 64 | (as root): |
|---|
| 65 | |
|---|
| 66 | sudo chown root:zenoss $ZENHOME/bin/zensocket sudo chmod 04750 |
|---|
| 67 | $ZENHOME/bin/zensocket |
|---|
| 68 | |
|---|
| 69 | 11. Start zenoss: |
|---|
| 70 | |
|---|
| 71 | $ZENHOME/bin/zenoss start |
|---|
| 72 | |
|---|
| 73 | 12. If install fails, cleanup with: |
|---|
| 74 | |
|---|
| 75 | make clean |
|---|
| 76 | |
|---|
| 77 | 13. If install says successful, browse the zenoss portal |
|---|
| 78 | |
|---|
| 79 | Determine your ip address: |
|---|
| 80 | |
|---|
| 81 | /sbin/ifconfig -a | grep addr |
|---|
| 82 | |
|---|
| 83 | Use that address to browse to Zenoss: |
|---|
| 84 | |
|---|
| 85 | |
|---|
| 86 | Go to http://<your address here>:8080/zport/dmd, for example, you might browse |
|---|
| 87 | to http://192.168.1.100:8080/zport/dmd. |
|---|
| 88 | |
|---|
| 89 | Username is "admin" Password is the one entered for Zenoss "admin" user in step |
|---|
| 90 | 9 |
|---|
| 91 | |
|---|
| 92 | 14. To monitor your zenoss server, configure your SNMP agent. After installing, |
|---|
| 93 | you need to configure it to allow 'public' to read all OIDs (default is to read |
|---|
| 94 | very few OIDs): |
|---|
| 95 | |
|---|
| 96 | sudo cp /etc/snmp/snmpd.conf /etc/snmp//snmpd.conf.bak sudo cp |
|---|
| 97 | /home/zenoss/zenossinst/conf/snmpd.conf /etc/snmpd.conf sudo cp snmpd.conf |
|---|
| 98 | /etc/snmp/ sudo /etc/init.d/snmpd restart |
|---|
| 99 | |
|---|
| 100 | 15. Default ubuntu mail agent (MTA) is exim4, which may need to be setup if you |
|---|
| 101 | want email alerts to work with a remote mail server (mail.mydomain.inc): |
|---|
| 102 | |
|---|
| 103 | sudo dpkg-reconfigure exim4-config |
|---|
| 104 | |
|---|
| 105 | # select default options, except for below) mail sent by smarthost; received via |
|---|
| 106 | SMTP or fetchmail mail.mydomain.inc |
|---|
| 107 | |
|---|
| 108 | 16. To test mail agent, need to install a frontend (MUA - mail) to exim4: |
|---|
| 109 | |
|---|
| 110 | apt-get install mailutils echo 'this is a test' | mail -s 'test subject' |
|---|
| 111 | youremail@yourdomain.inc |
|---|
| 112 | |
|---|
| 113 | # to see if mail is sent or still in queue: sudo mailq |
|---|
| 114 | |
|---|
| 115 | |
|---|
| 116 | 17. Read the Admin guide at www.zenoss.com/download/ |
|---|
| 117 | |
|---|
| 118 | |
|---|
| 119 | 18. To add zenoss daemons to run at boot up, login as root. Apached runtime is |
|---|
| 120 | 90, so we use 95 to have it run after it and mysql. Also need to modify zenoss |
|---|
| 121 | script for ZENHOME path: |
|---|
| 122 | |
|---|
| 123 | sudo cp $ZENHOME/bin/zenoss /etc/init.d sudo nano /etc/init.d/zenoss |
|---|
| 124 | |
|---|
| 125 | Add the following line to ensure all scripts can find ZENHOME) |
|---|
| 126 | |
|---|
| 127 | export ZENHOME=/usr/local/zenoss |
|---|
| 128 | |
|---|
| 129 | Run the following to get zenoss to start in the proper order |
|---|
| 130 | |
|---|
| 131 | sudo update-rc.d zenoss defaults 95 |
|---|