forked from blair/orca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL
446 lines (321 loc) · 17.3 KB
/
INSTALL
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
Outline:
1) Install Perl 5.005_03 or later.
2) Configure Orca.
a) Overview of the 'configure' script.
b) Decide where Orca's binaries, raw data, RRD and HTML
directories will reside. Make sure performance concerns are
handled.
c) Find out where Orca's input files are located.
d) Other 'configure' command line options.
e) Run the configure script to configure Orca.
3) Make Orca and any necessary Perl modules.
4) Test if the the Perl modules were properly compiled.
5) Doing an upgrade from Orca 0.23 or older? Follow these steps.
6) Install Orca and any Perl modules Orca requires.
7) [Solaris Only and Optional] Install orcallator.
a) Install the SE toolkit.
b) Apply a patch to the SE 3.0 toolkit if necessary.
c) Examine Orca/orcallator programs.
d) Install orcallator boot and halt time start/stop scripts in
/etc/init.d/ and /etc/rc?.d/.
e) Run start_orcallator on all systems.
f) Edit orcallator.cfg.
8) [Systems with System Statistics in /proc, i.e. Linux] Install procallator.
9) Run Orca.
1) Install Perl 5.005_03 or later.
This step is too large to go into here. The bottom line is to
follow the instructions at
http://www.perl.com/download.csp
or download a binary package from
http://aspn.activestate.com/ASPN/Downloads/ActivePerl/
if you happen to run Linux, Solaris or Windows.
If you run Solaris, you can also get a binary Perl package from
http://www.sunfreeware.com/
2) Configure Orca.
Orca is configured when the user runs the 'configure' script
located in the same directory as this INSTALL file.
a) Overview of the 'configure' script.
The 'configure' shell script attempts to guess correct values
for various system-dependent variables used during compilation.
It uses those values to create a 'Makefile' in each directory
of the package. It may also create one or more '.h' files
containing system-dependent definitions. Finally, it creates a
shell script 'config.status' that you can run in the future to
recreate the current configuration, and a file 'config.log'
containing compiler output (useful mainly for debugging
'configure').
The 'configure' script will find where your version of Perl and
some other assorted programs are located. It will also
determine if you have the necessary Perl modules to run Orca.
If it does not find the required Perl modules, the modules that
are included with the Orca distribution will be built.
The 'configure' script will also determine if you run one of
the operating systems where a shared RRDtool library
(librrd.so) will be built and installed in $libdir.
The configure script takes a number of optional command line
arguments that customize its behavior. All command line
arguments begin with the -- characters. To see the command
line arguments that 'configure' takes, run it as
./configure --help
or if you are using 'csh' on an old version of System V, you
might need to type
sh ./configure --help
instead to prevent 'csh' from trying to execute 'configure'
itself.
Take a look through the available options, the important ones
are be discussed below.
b) Decide where Orca's binaries, raw data, RRD and HTML
directories will reside. Make sure performance concerns are
handled.
First choose the location where Orca will be installed. By
default, Orca will install into the following structure:
$prefix Prefix, set with --prefix
$prefix/bin Binaries, set with --bindir
$prefix/lib Libraries, set with --libdir
$prefix/man Manual pages, set with --mandir
$prefix/var/orca Data storage directory, set with --with-var-dir
$prefix/var/orca/rrd RRD directory, set with --with-rrd-dir
By default $prefix is set to /usr/local. The -- arguments
shown above should be given to the 'configure'. If you want to
change the installation location of Orca, say into /opt/orca,
you would do so by passing --prefix=/opt/orca to the
'configure' script.
Because Orca is extremely IO intensive, we recommend the
following architecture. Choose one host that can locally mount
all the RRD data files and the directory containing the HTML
and image files that are viewed by Orca users. If these two
locations must be on separate hosts and one directory must be
NFS mounted to the Orca host, then I recommend that the RRD
data file be local instead of the HTML and image files, since
the RRD files are much more read/write intensive.
Orca requires a separate data gathering process to measure and
save the data that Orca will plot. You need to decide where
these data gathering processes will save its data files. Most
data gatherers take a measurement and write to their data files
once every 5 minutes, so IO is not an issue. The issue here is
that most data gatherers need to run as root and all of the
data files from all your hosts need to be written into the same
NFS shared directory that Orca can read. It is not too
important that the directory that data gatherer writes into be
mounted locally on the machine that Orca will run on, since
Orca will only read each file every five minutes.
The HTML output directory is not set by default and must be
specified by the Orca administrator with the
--with-html-dir=DIR
command line option. If you choose nothing else, the
--with-html-dir must always be used, otherwise 'configure' will
fail.
The HTML output directory will normally be accessible by a web
server so that Orca's files can be viewed in a browser. It is
less important that this directory be locally mounted than the
RRD directory, as this directory sees much less IO than the RRD
directory. Orca is smart enough not to update plots that do
not need to be updated even when new data is loaded. For
example, Orca's daily plots do not need to be updated but once
a day, so even though measurements may be taken every five
minutes, only a measurement taken in the new day will cause
Orca to generate an updated plot.
c) Find out where Orca's input files are located.
If you are running a Solaris system and use a web, proxy, or
Squid server, you can have the Solaris orcallator gather
statistics from the log file. Use this table to determine the
appropriate configure command line option to use. LOG_FILENAME
should be the location of the log file to monitor. Note that
Apache and NCSA servers use the Common Log Format.
--with-ncsa-log=LOG_FILENAME
--with-proxy-log=LOG_FILENAME
--with-squid-log=LOG_FILENAME
Log Type Configure Option
-----------------------------------------------------------
Common Log Format --with-ncsa-log
Common Log Format with Proxy Information --with-proxy-log
Squid Log Format --with-squid-log
The 'configure' script will let you use only one of these
options.
d) Other 'configure' command line options.
--with-warn-email
Orca has a 'warn_email' configuration setting which is set
to an email address where Orca should send its warning
messages. By default this address is 'root@localhost'. You
can use this configure option to change the default email
address to use in the Orca configuration scripts in this
distribution.
e) Run the configure script to configure Orca.
--prefix=DIR
--with-var-dir=DIR
--with-rrd-dir=DIR
--with-html-dir=DIR
Now that you have decided where the RRD, HTML, and
optionally the orcallator data files and the web server
access logs, are located, the configure script can be passed
the following arguments:
--prefix=ORCA_PREFIX_DIRECTORY
--with-var-dir=VAR_DIR_LOCATION
--with-rrd-dir=RRD_DIR_LOCATION
--with-html-dir=HTML_DIR_LOCATION
Now run the configure script like
./configure [flags]
with the appropriate flags you want.
3) Make Orca and any necessary Perl modules.
To make Orca and these Perl modules run the following command:
% make [ To optimize: make CFLAGS=-O or CFLAGS=-O3 ]
4) Test if the the Perl modules were properly compiled.
To check if the Perl modules were properly compiled run the
following command:
% make check
5) Doing an upgrade from Orca 0.23 or older? Follow these steps.
Due to various changes to Orca between releases, many of the RRD,
HTML and image filenames that Orca creates have changed names.
There are two separate issues.
The first is that the naming scheme for all generated HTML and
image (either PNG or GIF) files have changed. Unless you want to
leave files with old names around wasting disk space, I recommend
you cd into your HTML directories and delete all files there.
The second issue is that the RRD data files have also changed
names and unless you want to reload all of your source data files
and waste more disk space on unused RRD files, I suggest that you
run following command:
% make upgrade
This will look through the all of the directories that Orca will
install into and use (namely the $prefix, $exec_prefix, $bindir,
$libdir, $ORCALLATOR_DIR, and $RRD_DIR directories) and perform
any necessary file renaming.
If you have some new directories that are not included in the
above list directories that make upgrade will cover, you can run
the orca/upgrade_installation program with a list of directories
to parse and rename. If you want to see what upgrade_installation
will rename without actually doing the rename, give it the -n
option before any directory names.
Here is a description of the various differences between versions.
0.23 -> 0.24
The following substitutions are now done to create any RRD,
HTML and image files.
orcallator -> o
orca -> o
_percent -> _pct
_number -> _num
_times -> _X
# -> _num_
* -> _X_
0.20 -> 0.21
Between version 0.20 and 0.21 of Orca, a major name change
occurred in all of the installed and generated files. Any
filenames containing percollator, percol, and perc had the name
orcallator substituted in place. Filenames containing the word
percent are properly protected and will not be renamed to
contain the word orcallatorent. Percollator.se has been
renamed to orcallator.se and its output files are now named
orcallator. The default percollator.cfg has been renamed to
orcallator.cfg and the version of orcallator.cfg included here
now looks for data filenames of the form orcallator-1999-05-08
and percol-1999-05-8. If you are running an Orca installation
0.20 or older and want to rename all of the files and
directories in your Orca installation to the new scheme, then
kill any running percollator.se's before installing and running
the following commands
6) Install Orca and any Perl modules Orca requires.
Run the following command to install Orca and all the Perl modules
Orca uses.
% make install
This will install the Perl modules into $libdir/perl, so it should
not overwrite or clobber any existing Perl modules that you
already have on your system.
This may also install librrd.so in your $libdir.
7) [Solaris Only and Optional] Install orcallator.
a) Install the SE toolkit.
Get the SE toolkit and use the installation instructions at
http://www.setoolkit.com/
If you are running 2.6 or greater, then download SE 3.2 or
greater. Otherwise you will need SE 3.0.
The web site
http://www.sun.com/sun-on-net/performance/se3/
is an older SE web site that contains other useful information.
b) Apply a patch to the SE 3.0 toolkit. If you are running any
other release of SE, then do not install the patch.
By default the SE toolkit will install into /opt/RICHPse. Run
this command:
% cd /opt/RICHPse % patch -s <
THIS_DIR/patches/p_netstat_class.se.diff
c) Examine Orca/orcallator programs.
Orca's installation scripts also installs several programs and
configuration files necessary to have Orca monitor many
different statistics of your Sun Solaris systems.
The following tools are installed in the $prefix/bin directory:
start_orcallator - start orcallator on a system
stop_orcallator - stop orcallator on a system
restart_orcallator - restart orcallator on a system
orcallator_column - print selected columns from orcallator output
orcallator_running - run to see if any orcallators are not running
d) Install orcallator boot and halt time start/stop scripts in
/etc/init.d/ and /etc/rc?.d/.
If you want to have orcallator run when the machine boots, you
can manually copy data_gatherers/orcallator/S99orcallator into
/etc/init.d/orcallator and set up symbolic links from that file
to the appropriate K* and S* files in /etc/rc?.d/.
To make installing this easier, there are several make targets
available for different operating systems.
For systems with chkconfig, which are normally RedHat based
ones, run
% make orcallator_run_at_boot
from either the top of the Orca source tree or from the
data_gatherers/orcallator directory. This will first delete
any existing start and stop scripts in the locations it will
install files into. By default, it will copy S99orcallator
into /etc/init.d/orcallator and create symbolic links to
/etc/init.d/rc0.d/K01orcallator, /etc/init.d/rc1.d/K01orcallator,
/etc/init.d/rc2.d/K01orcallator, and /etc/rc3.d/S99orcallator.
e) Run start_orcallator on all systems.
Log in as root on all the systems you want to watch and run:
% $prefix/bin/start_orcallator
Orcallator will not generate an output data file until the
first update interval, which will be between 2.5 to 7.5 minutes
after orcallator is started.
f) Edit orcallator.cfg.
You will probably want to edit orcallator.cfg to customize
various parameters for your site.
To change the HTML header and footer's on each web page, modify
the html_page_header and html_page_footer configuration values.
You may also want to edit the html_top_title, which is the
title of the top level HTML page.
You may want to change warn_email, which is the email address
that is sent mail when Orca sends out warning messages, such as
when the input data files (say generated by orcallator) are out
of date, which may signify a orcallator program that has died
and is no longer gathering data.
8) [Systems with System Statistics in /proc, i.e. Linux] Install procallator.
a) Install procallator boot and halt time start/stop scripts in
/etc/init.d/ and /etc/rc?.d/.
If you want to have procallator run when the machine boots, you
can manually copy data_gatherers/procallator/S99procallator
into /etc/init.d/procallator and set up symbolic links from
that file to the appropriate K* and S* files in /etc/rc?.d/.
To make installing this easier, there are several make targets
available for different operating systems.
For systems with chkconfig, which are normally RedHat based
ones, run
% make procallator_run_at_boot_using_chkconfig
from either the top of the Orca source tree or from the
data_gatherers/procallator directory. This uses Linux's
chkconfig's script to install the start and stop scripts in the
approprirate locations. By default, procallator is started in
run levels 2, 3, 4 and 5.
b) Run start_procallator on all systems.
Log in as root on all the systems you want to watch and run:
% /etc/rc.d/init.d/procallator start
Procallator will not generate an output data file until the
first update interval, which will be between 2.5 to 7.5 minutes
after procallator is started.
c) Edit procallator.cfg.
You need to edit the installed procallator.cfg file and remove
all unneeded references. In particular, you'll want to change
warn_email, which is the email address that receives emails
when procallator generated files are out of date, which may
signify a procallator program that has died and is no longer
gathering data.
9) Run Orca.
Log into the system that will run Orca and run the command:
% cd $prefix
% ./bin/orca -v CONFIG_FILE
If you are using orcallator.se, then this command will be
% cd $prefix
% ./bin/orca -v lib/orcallator.cfg