| 1 | 1. Installing Zenoss |
|---|
| 2 | |
|---|
| 3 | This readme describes the installation process for Zenoss from source. More |
|---|
| 4 | information can be found in the ZenossAdminGuide under the docs directory. |
|---|
| 5 | |
|---|
| 6 | For the really impatient, run install.sh in this directory. If you experience |
|---|
| 7 | problems continue reading. |
|---|
| 8 | |
|---|
| 9 | There are some platform specific install directions in the docs directory. |
|---|
| 10 | |
|---|
| 11 | 1.1. Major Dependencies |
|---|
| 12 | |
|---|
| 13 | - A build environment including binutils, gcc/g++. |
|---|
| 14 | |
|---|
| 15 | - MySQL 5.0.x |
|---|
| 16 | |
|---|
| 17 | Where x >= 22. |
|---|
| 18 | |
|---|
| 19 | * Make sure you assign a password to root * Make sure mysql_config is in the |
|---|
| 20 | path |
|---|
| 21 | |
|---|
| 22 | - GNU build environment (GNU Make) |
|---|
| 23 | |
|---|
| 24 | - SWIG >= 1.3 |
|---|
| 25 | |
|---|
| 26 | - Autoconf >= 2.53 |
|---|
| 27 | |
|---|
| 28 | 1.2 System Setup |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | - Create the user zenoss under which most of the Zenoss daemons will run: |
|---|
| 32 | |
|---|
| 33 | bash$ useradd zenoss |
|---|
| 34 | |
|---|
| 35 | - Set ZENHOME and PYTHONPATH enironment variables in the zenoss user |
|---|
| 36 | environment; add the following to the appropriate rc or profile for your shell |
|---|
| 37 | (e.g., .bashrc, .profile, etc.): |
|---|
| 38 | |
|---|
| 39 | export ZENHOME=/usr/local/zenoss |
|---|
| 40 | export PYTHONPATH=$ZENHOME/lib/python |
|---|
| 41 | export PATH=$ZENHOME/bin:$PATH |
|---|
| 42 | |
|---|
| 43 | ZENHOME is the path to your zenoss install. PYTHONPATH lets python find the |
|---|
| 44 | libraries we use. |
|---|
| 45 | |
|---|
| 46 | We recommend installing in a directory *other than* the Zenoss' user home |
|---|
| 47 | directory (e.g., don't use /home/zenoss). The reason for this recommendation is |
|---|
| 48 | that once you learn more about Zenoss (or if you encounter problems during |
|---|
| 49 | installation), you may need to reinstall at some point, and this will be much |
|---|
| 50 | easier if you have a dedicated directory for the installtion. |
|---|
| 51 | |
|---|
| 52 | - When you run the install script below, you will need to login as the zenoss |
|---|
| 53 | user first. |
|---|
| 54 | |
|---|
| 55 | - Create the Zenoss install directory and set the ownership: |
|---|
| 56 | |
|---|
| 57 | bash$ mkdir /usr/local/zenoss |
|---|
| 58 | bash$ chown zenoss /usr/local/zenoss |
|---|
| 59 | |
|---|
| 60 | - Start MySQL (if it's not already started...) |
|---|
| 61 | |
|---|
| 62 | 1.3 Build and Install Zenoss |
|---|
| 63 | |
|---|
| 64 | - Login in to the "zenoss" user account that you created above. |
|---|
| 65 | |
|---|
| 66 | - If you are using the tar ball install skip to the next step. You can also use |
|---|
| 67 | the svn trunk, but this is only for people who want to live on the bleeding |
|---|
| 68 | edge! |
|---|
| 69 | |
|---|
| 70 | bash$ svn co http://dev.zenoss.org/svn/trunk/inst zenossinst |
|---|
| 71 | |
|---|
| 72 | notes: |
|---|
| 73 | - this will put the installer files in the directory zenossinst |
|---|
| 74 | - the following commands are run from this directory |
|---|
| 75 | |
|---|
| 76 | - Run the Zenoss installation script |
|---|
| 77 | |
|---|
| 78 | bash$ ./install.sh |
|---|
| 79 | |
|---|
| 80 | notes: |
|---|
| 81 | - to clean a failed install, execute the following command: |
|---|
| 82 | |
|---|
| 83 | bash$ make clean |
|---|
| 84 | |
|---|
| 85 | - all files needed for execution will be built and installed under $ZENHOME, |
|---|
| 86 | including Zenoss and other components such as Zope, RDD, Twisted, etc. |
|---|
| 87 | |
|---|
| 88 | - This script will create several tables as well as a trigger to move events |
|---|
| 89 | from status -> history on deletion. This trigger requires "SUPER" permission |
|---|
| 90 | which is granted to root by default (but can be granted to other users |
|---|
| 91 | manually). |
|---|
| 92 | |
|---|
| 93 | - By default, the zenoss web server will listen on port 8080. This can changed |
|---|
| 94 | by modifying $ZENHOME/zope.conf and other references to the port number in |
|---|
| 95 | deamon configs. |
|---|
| 96 | |
|---|
| 97 | - zensocket needs to be setuid in order to open raw sockets. As root, run: |
|---|
| 98 | |
|---|
| 99 | chown root:zenoss /usr/local/zenoss/bin/zensocket |
|---|
| 100 | chmod 04750 /usr/local/zenoss/bin/zensocket |
|---|
| 101 | |
|---|
| 102 | - Access the Zenoss portal |
|---|
| 103 | |
|---|
| 104 | Web Browser: - go to url http://hostname:8080/zport/dmd |
|---|
| 105 | - username is "admin" |
|---|
| 106 | - password is the one entered for Zenoss "admin" user |
|---|
| 107 | |
|---|
| 108 | 2. Start Daemons |
|---|
| 109 | |
|---|
| 110 | |
|---|
| 111 | The daemons perform data collection tasks. |
|---|
| 112 | |
|---|
| 113 | - The entire system can be stopped and started using the "zenoss" script. Start |
|---|
| 114 | it up: |
|---|
| 115 | |
|---|
| 116 | bash$ $ZENHOME/bin/zenoss start |
|---|
| 117 | |
|---|
| 118 | - Now all daemons should be running. Check by running: |
|---|
| 119 | |
|---|
| 120 | bash$ $ZENHOME/bin/zenoss status |
|---|
| 121 | |
|---|
| 122 | expected output: |
|---|
| 123 | |
|---|
| 124 | Daemon: zeoctl program running; pid=4295 |
|---|
| 125 | Daemon: zopectl program running; pid=4299 |
|---|
| 126 | Daemon: zenhub program running; pid=1093 |
|---|
| 127 | Daemon: zenping program running; pid=8721 |
|---|
| 128 | Daemon: zensyslog program running; pid=8726 |
|---|
| 129 | Daemon: zenstatus program running; pid=8731 |
|---|
| 130 | Daemon: zenactions program running; pid=8736 |
|---|
| 131 | Daemon: zentrap program running; pid=8742 |
|---|
| 132 | Daemon: zenmodeler program running; pid=8751 |
|---|
| 133 | Daemon: zenperfsnmp program running; pid=8757 |
|---|
| 134 | Daemon: zencommand program running; pid=8765 |
|---|
| 135 | Daemon: zenprocess program running; pid=8770 |
|---|
| 136 | |
|---|
| 137 | |
|---|
| 138 | 3. Platform Specific Notes |
|---|
| 139 | |
|---|
| 140 | 3.1 Fedora Core 5 |
|---|
| 141 | |
|---|
| 142 | If you are doing a clean install of Fedora Core 5, during the installation, you |
|---|
| 143 | must configure your software installations. Under servers, make sure to select |
|---|
| 144 | MySQL. Under MySQL Optional Packages, check the box for MySQL-devel (developers |
|---|
| 145 | MySQL). Go back to the main software selection screen and select Development. |
|---|
| 146 | Select Development Libraries and Development Tools. Once all of these are |
|---|
| 147 | selected you are good to install by following the install directions. |
|---|
| 148 | |
|---|
| 149 | |
|---|
| 150 | 3.2 Mac OSX |
|---|
| 151 | |
|---|
| 152 | - To create the zenoss user use System Preferences -> Accounts instead of |
|---|
| 153 | useradd. |
|---|
| 154 | |
|---|
| 155 | If the installer cannot find mysql: |
|---|
| 156 | |
|---|
| 157 | modify the line in .bashrc: export PATH=$ZENHOME/bin:$PATH |
|---|
| 158 | |
|---|
| 159 | to read: export PATH=$ZENHOME/bin:$PATH:/usr/local/mysql/bin |
|---|
| 160 | |
|---|
| 161 | Then cd back up to the install directory and procede with the installation |
|---|
| 162 | process. |
|---|
| 163 | |
|---|
| 164 | 3.3 Setting Socket buffers on Unix platforms |
|---|
| 165 | |
|---|
| 166 | - You may want to increase the size of the systems net buffers. |
|---|
| 167 | |
|---|
| 168 | on linux in the file /etc/sysctl.conf, add: |
|---|
| 169 | |
|---|
| 170 | net.core.rmem_default=1048576 |
|---|
| 171 | net.core.rmem_max=1048576 |
|---|
| 172 | net.core.wmem_default=1048576 |
|---|
| 173 | net.core.wmem_max=1048576 |
|---|
| 174 | |
|---|
| 175 | to configure without a reboot: |
|---|
| 176 | |
|---|
| 177 | sysctl -w net.core.rmem_default=1048576 |
|---|
| 178 | sysctl -w net.core.rmem_max=1048576 |
|---|
| 179 | sysctl -w net.core.wmem_default=1048576 |
|---|
| 180 | sysctl -w net.core.wmem_max=1048576 |
|---|
| 181 | |
|---|
| 182 | 3.4 Setting up Zenoss to run with a remote MySQL Instance |
|---|
| 183 | |
|---|
| 184 | Please see the section "Using Zenoss with a Remote MySQL Instance" in |
|---|
| 185 | the Zenoss Admin Guide. |
|---|