root/trunk/inst/docs/INSTALL_Source.txt

Revision 9081, 5.5 kB (checked in by ecn, 7 months ago)
* update install directions
Line 
11. Installing Zenoss
2
3This readme describes the installation process for Zenoss from source.  More
4information can be found in the ZenossAdminGuide under the docs directory.
5
6For the really impatient, run install.sh in this directory.  If you experience
7problems continue reading.
8
9There are some platform specific install directions in the docs directory.
10
111.1. Major Dependencies
12
13- A build environment including binutils, gcc/g++.
14
15- MySQL 5.0.x
16
17Where x >= 22.
18
19* Make sure you assign a password to root * Make sure mysql_config is in the
20path
21
22- GNU build environment (GNU Make)
23
24- SWIG >= 1.3
25
26- Autoconf >= 2.53
27
281.2 System Setup
29
30
31- Create the user zenoss under which most of the Zenoss daemons will run:
32
33bash$ useradd zenoss
34
35- Set ZENHOME and PYTHONPATH enironment variables in the zenoss user
36environment; add the following to the appropriate rc or profile for your shell
37(e.g., .bashrc, .profile, etc.):
38
39export ZENHOME=/usr/local/zenoss
40export PYTHONPATH=$ZENHOME/lib/python
41export PATH=$ZENHOME/bin:$PATH
42
43ZENHOME is the path to your zenoss install. PYTHONPATH lets python find the
44libraries we use.
45
46We recommend installing in a directory *other than* the Zenoss' user home
47directory (e.g., don't use /home/zenoss). The reason for this recommendation is
48that once you learn more about Zenoss (or if you encounter problems during
49installation), you may need to reinstall at some point, and this will be much
50easier 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
53user first.
54
55- Create the Zenoss install directory and set the ownership:
56
57bash$ mkdir /usr/local/zenoss
58bash$ chown zenoss /usr/local/zenoss
59
60- Start MySQL (if it's not already started...)
61
621.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
67the svn trunk, but this is only for people who want to live on the bleeding
68edge!
69
70bash$ svn co http://dev.zenoss.org/svn/trunk/inst zenossinst
71
72notes:
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
78bash$ ./install.sh
79
80notes:
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,
86including 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
89from status -> history on deletion.  This trigger requires "SUPER" permission
90which is granted to root by default (but can be granted to other users
91manually).
92
93- By default, the zenoss web server will listen on port 8080. This can changed
94by modifying $ZENHOME/zope.conf and other references to the port number in
95deamon 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
104Web 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
111The daemons perform data collection tasks.
112
113- The entire system can be stopped and started using the "zenoss" script. Start
114it 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
122expected output:
123
124Daemon: zeoctl program running; pid=4295
125Daemon: zopectl program running; pid=4299
126Daemon: zenhub program running; pid=1093
127Daemon: zenping program running; pid=8721
128Daemon: zensyslog program running; pid=8726
129Daemon: zenstatus program running; pid=8731
130Daemon: zenactions program running; pid=8736
131Daemon: zentrap program running; pid=8742
132Daemon: zenmodeler program running; pid=8751
133Daemon: zenperfsnmp program running; pid=8757
134Daemon: zencommand program running; pid=8765
135Daemon: zenprocess program running; pid=8770
136
137
1383. Platform Specific Notes
139
1403.1 Fedora Core 5
141
142If you are doing a clean install of Fedora Core 5, during the installation, you
143must configure your software installations. Under servers, make sure to select
144MySQL.  Under MySQL Optional Packages, check the box for MySQL-devel (developers
145MySQL).  Go back to the main software selection screen and select Development.
146Select Development Libraries and Development Tools.  Once all of these are
147selected you are good to install by following the install directions.
148
149
1503.2  Mac OSX
151
152- To create the zenoss user use System Preferences -> Accounts instead of
153useradd.
154
155If the installer cannot find mysql:
156
157modify the line in .bashrc: export PATH=$ZENHOME/bin:$PATH
158
159to read: export PATH=$ZENHOME/bin:$PATH:/usr/local/mysql/bin
160
161Then cd back up to the install directory and procede with the installation
162process.
163
1643.3 Setting Socket buffers on Unix platforms
165
166- You may want to increase the size of the systems net buffers.
167
168on 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
175to 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
1823.4 Setting up Zenoss to run with a remote MySQL Instance
183
184Please see the section "Using Zenoss with a Remote MySQL Instance" in
185the Zenoss Admin Guide.
Note: See TracBrowser for help on using the browser.