| 1 |
/* |
| 2 |
* Argus-5.0 Client Software. Tools to read, analyze and manage Argus data. |
| 3 |
* Copyright (c) 2000-2024 QoSient, LLC |
| 4 |
* All rights reserved. |
| 5 |
* |
| 6 |
* This program is free software, released under the GNU General |
| 7 |
* Public License; you can redistribute it and/or modify it under the terms |
| 8 |
* of the GNU General Public License as published by the Free Software |
| 9 |
* Foundation; either version 3, or any later version. |
| 10 |
* |
| 11 |
* Other licenses are available through QoSient, LLC. |
| 12 |
* Inquire at [email protected]. |
| 13 |
* |
| 14 |
* This program is distributed WITHOUT ANY WARRANTY; without even the |
| 15 |
* implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 16 |
* See the * GNU General Public License for more details. |
| 17 |
* |
| 18 |
* You should have received a copy of the GNU General Public License |
| 19 |
* along with this program; if not, write to the Free Software |
| 20 |
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 21 |
* |
| 22 |
*/ |
| 23 |
|
| 24 |
|
| 25 |
QUICK MAKE |
| 26 |
|
| 27 |
If you are reading this file, all is ready, and you should be able |
| 28 |
to make argus-clients by simply typing: |
| 29 |
|
| 30 |
% ./configure |
| 31 |
% make |
| 32 |
|
| 33 |
If you have any problems with this procedure, read further, if not |
| 34 |
congratulations. You can proceed to INSTALLATION. |
| 35 |
|
| 36 |
|
| 37 |
DEPENDENCIES |
| 38 |
|
| 39 |
The Argus client package is dependant on two public domain packages |
| 40 |
flex and bison(), to generate the flow filter compilers. Both of |
| 41 |
these packages are in most Linux, MacOS X, BSD and Cygwin distributions, |
| 42 |
but must be installed in order to compile argus-clients. |
| 43 |
|
| 44 |
The official site for flex is: |
| 45 |
http://www.gnu.org/software/flex |
| 46 |
|
| 47 |
The official site for bison is: |
| 48 |
http://www.gnu.org/software/bison |
| 49 |
|
| 50 |
Please refer to the individual packages for installation instructions. |
| 51 |
|
| 52 |
Some argus-clients use curses to maintain screen formating, such |
| 53 |
as ratop() and rasqlinsert(). For these programs, you should have a |
| 54 |
curses development package installed, such as "ncurses-devel". |
| 55 |
Ratop would like to use the readline library, if available. While not |
| 56 |
required, readline is recommended. |
| 57 |
|
| 58 |
For Debian, you will need to install readline-dev. |
| 59 |
|
| 60 |
# apt install readline-dev |
| 61 |
|
| 62 |
For other Linux, you may need to install it as |
| 63 |
|
| 64 |
# apt install readline-devel |
| 65 |
|
| 66 |
For some OS's, such as Mac OS X, which does not ship with readline, due to |
| 67 |
licensing issues, installing these packages is optional. Using Brew to |
| 68 |
install needed packages for compiling argus and argus-clients is recommended. |
| 69 |
That's what we do. |
| 70 |
|
| 71 |
Argus 5.0 supports the use of uuid's as source id's. To use uuid's effective, |
| 72 |
argus clients uses libuuid-devel to parse and generate uuid strings. |
| 73 |
This will need to be installed to turn on all features. |
| 74 |
|
| 75 |
Some argi are configured to use strong authentication and encryption |
| 76 |
when transporting it data over the wire. Argus clients can be compiled |
| 77 |
to support this strong authentication strategy by compiling with ARGUS_SASL |
| 78 |
support and linking to the cryptographic package SASL, the Simple Authentication |
| 79 |
and Security Layer. Because of its features and flexibility, we highly |
| 80 |
recommend using SASL, and becoming experienced with its administration. |
| 81 |
|
| 82 |
cyrus-sasl-1.5.24 |
| 83 |
Carnegie Mellon Univeristy |
| 84 |
http://asg.web.cmu.edu/sasl |
| 85 |
ftp://ftp.andrew.cmu.edu/pub/cyrus-mail |
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
CONFIGURE |
| 90 |
|
| 91 |
The program, ./configure, will scan the file system, looking for |
| 92 |
the various programs, routines and libraries needed to compile |
| 93 |
the argus clients. There are a large number of options that can |
| 94 |
be used when compiling the argus client programs. Run: |
| 95 |
|
| 96 |
./configure --help |
| 97 |
|
| 98 |
to see what options are available. |
| 99 |
|
| 100 |
|
| 101 |
BUILDING ARGUS-CLIENTS |
| 102 |
So, after all that, to build Argus on a supported platform, first run |
| 103 |
./configure. ./configure will determine your system attributes and |
| 104 |
generate subdirectories and the appropriate Makefiles from the Makefile.in |
| 105 |
files found in the distribution. After running ./configure, run "make". |
| 106 |
If everything goes well, appropriate libraries and binaries will be found |
| 107 |
in the ./bin and ./lib subdirectories. So, .... |
| 108 |
|
| 109 |
% ./configure |
| 110 |
% make |
| 111 |
|
| 112 |
The argus clients will be found in the ./bin directory, all starting with "ra". |
| 113 |
|
| 114 |
|
| 115 |
So, at this point you should have all the execuables needed. But, |
| 116 |
if you are having problems, it may be related to your compiler, or |
| 117 |
the flex and bison utilities, the availability of sasl or readline, |
| 118 |
or other libraries that argus-clients needs. So, ... |
| 119 |
|
| 120 |
You will need an ANSI C compiler to build argus. If your compiler |
| 121 |
is not ANSI compliant, we highly recommend using the GNU C compiler, |
| 122 |
available via anonymous ftp: |
| 123 |
|
| 124 |
ftp://prep.ai.mit.edu/pub/gnu/gcc-*.tar.gz |
| 125 |
|
| 126 |
|
| 127 |
As mentioned above, argus clients require bison and flex. For |
| 128 |
flex, version 2.4.6 or higher is recommended. The current version |
| 129 |
of flex and bison are available via anonymous ftp: |
| 130 |
|
| 131 |
ftp://prep.ai.mit.edu/pub/gnu/bison-*.tar.gz |
| 132 |
ftp://prep.ai.mit.edu/pub/non-gnu/flex/flex-*.tar.gz |
| 133 |
|
| 134 |
|
| 135 |
In order to support some specific DSR processing, argus clients needs |
| 136 |
the XDR library, which is now provided in the libtirpc-devel package |
| 137 |
on Linux. Without the XDR functions, argus-clients will not be able |
| 138 |
to process the ARGUS_JITTER_DSR metrics, but argus-clients will build |
| 139 |
without the library. |
| 140 |
|
| 141 |
Getting this library is different for most platforms. For |
| 142 |
Centos Stream 9, as an example, libtirpc is available in the Base OS |
| 143 |
repository using 'dnf', but the needed libtirpc-devel package is in |
| 144 |
the CRB repository. You will need to configure 'dnf' to add CRB to the |
| 145 |
repo lists. |
| 146 |
|
| 147 |
# dnf config-manager --set-enabled crb |
| 148 |
|
| 149 |
For other Linux that use 'dnf', you won't need the above command, but |
| 150 |
you will need to install libtirpc. |
| 151 |
|
| 152 |
# dnf install libtirpc-devel |
| 153 |
|
| 154 |
|
| 155 |
Now, if you are still having problems, ..., well its hard to say |
| 156 |
from here what it might be. So, you may want to send us some email. |
| 157 |
|
| 158 |
|
| 159 |
ISSUES INVOLVING PERL |
| 160 |
|
| 161 |
There are a number of perl scripts in the argus-clients distribution, |
| 162 |
and if you are like many sites, you may have multiple versions of perl |
| 163 |
on your system. We do not current provide a self configuring perl package |
| 164 |
for all the perl scripts, instead, we use ./configure to configure the |
| 165 |
perl scripts to find the path to the correct version of perl. |
| 166 |
|
| 167 |
If you want to specify a path for perl other than the discovered standard |
| 168 |
path for perl, use the "--with-perl dir" option to ./configure. I use this |
| 169 |
option on my Snow Leopard machine, as I've installed the perl from MacPorts |
| 170 |
onto my system. |
| 171 |
|
| 172 |
% ./configure --with-perl=/opt/local/bin |
| 173 |
|
| 174 |
|
| 175 |
|
| 176 |
INSTALLATION |
| 177 |
|
| 178 |
QUICK INSTALL |
| 179 |
|
| 180 |
If all things are well at this point, and you will be using |
| 181 |
the installation strategy that we provide, all you need to do |
| 182 |
now is: |
| 183 |
|
| 184 |
# make install |
| 185 |
|
| 186 |
|
| 187 |
By default, "make install" will install the argus-clients |
| 188 |
programs, scripts, and configuration files into: |
| 189 |
/usr/local/bin |
| 190 |
/usr/local/sbin |
| 191 |
/usr/local/argus |
| 192 |
|
| 193 |
This convention is a compromise between Unix, Linux, Debian, and |
| 194 |
MacOS, which have different philosophies regarding expected paths |
| 195 |
for user and system programs. |
| 196 |
|
| 197 |
Attempts are made to ensure that all scripts adhere to this |
| 198 |
convention, although many of the programs are developed in many |
| 199 |
different groups and environments, and there maybe some inconsistency |
| 200 |
when working with the example programs. |
| 201 |
|
| 202 |
Please check that your scripts have valid pathnames for system programs |
| 203 |
and system / group configurations, which could refer to other Linux |
| 204 |
standard installation destinations, such as: |
| 205 |
/usr/argus |
| 206 |
/etc/argus |
| 207 |
|
| 208 |
|
| 209 |
If you are unsure about the standard installtion, run |
| 210 |
|
| 211 |
% make -n install |
| 212 |
|
| 213 |
to review what make will try to do. If you would like to |
| 214 |
do something other than the standard install, then please |
| 215 |
continue to read through this file. |
| 216 |
|
| 217 |
|
| 218 |
YOUR OWN INSTALL |
| 219 |
|
| 220 |
Argus-clients do not have any installation retrictions, so you |
| 221 |
can install them anywhere. There are some conventions that have |
| 222 |
been established, and I'll present them here, but you can, of |
| 223 |
course, do your own thing. |
| 224 |
|
| 225 |
By default, argus-clients installation involves installing: |
| 226 |
1. the argus-client ra* executables into /usr/local/bin |
| 227 |
2. radium() into /usr/local/sbin |
| 228 |
3. argus-client include files into /usr/local/include/argus |
| 229 |
4. documentation into /usr/local/share/[man | doc] |
| 230 |
5. pkgconfig configuruation, argus-clients.pc, into /usr/local/lib/pkgconfig |
| 231 |
6. support files into /usr/local/argus |
| 232 |
|
| 233 |
All of these destinations share "/usr/local" which is the default ARGUSHOME. |
| 234 |
Changing this strategy is accomplished through the ./configure program. |
| 235 |
|
| 236 |
The ./configure program provides a large number of options for |
| 237 |
configuring your package. Type "./configure --help" to see all |
| 238 |
the options that are available. |
| 239 |
|
| 240 |
I have found it useful in the past to have an argus home directory |
| 241 |
to hold the binaries, client configuration files, and hold my argus |
| 242 |
data archive. With time, of course, things change, and the need for |
| 243 |
these functions to be in a common directory is no longer important. |
| 244 |
However, consolidating argus into a common directory structure is a |
| 245 |
good thing for many. |
| 246 |
|
| 247 |
|
| 248 |
This is easily done setting the ./configure $prefix variable at run time. |
| 249 |
|
| 250 |
% ./configure --prefix=/usr/argus |
| 251 |
% make install |
| 252 |
|
| 253 |
This will result in creation of the /usr/argus directory, containing |
| 254 |
populated ./argus, ./bin, ./include, ./lib, ./sbin and ./share directories. |
| 255 |
|
| 256 |
I have used /usr/argus, /opt/argus, /opt/local/argus with varying |
| 257 |
degrees of success, depending on the OS. If you have any problems, do |
| 258 |
send email to the developers mailing list, or send a bug report. |
| 259 |
|
| 260 |
|
| 261 |
Argus-clients have a rc style configuration strategy, to set things |
| 262 |
like the output date format, what columns to print out etc .. |
| 263 |
You can have a system wide configuration file that would reside |
| 264 |
as /etc/ra.conf. Clients will look here by default for its base |
| 265 |
configuration, and then look for a .rarc file in your home directory. |
| 266 |
So you don't have to have a system wide configuration file, unless |
| 267 |
you prefer it. |
| 268 |
|
| 269 |
# cp ./support/Config/ra.conf /etc/ra.conf |
| 270 |
|
| 271 |
You will want to edit this file to choose values of your |
| 272 |
liking. The sample has all the common values set and is |
| 273 |
a good suggestion. Please refer to the sample to make your |
| 274 |
personal changes. |
| 275 |
|
| 276 |
|
| 277 |
This should handle the basic installion. |
| 278 |
|
| 279 |
Any comments, patches, bug reports or additions should be sent to |
| 280 |
[email protected]. |
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
PORTABILITY |
| 285 |
|
| 286 |
Argus-clients have been developed on Sparc architectures under SunOS 4.1.x |
| 287 |
and Solaris 2.7, and have been successfully ported to Solaris, SGI, Ultrix, |
| 288 |
Linux, OpenBSD and FreeBSD platforms, as well as Cygwin. |
| 289 |
|
| 290 |
No claim is made as to the portability of argus-clients to other platforms, |
| 291 |
although it is much easier now that we've addressed the big endian little |
| 292 |
endian issues. If you make any modifications to support installing and |
| 293 |
running argus-clients in any other environment, please send us comments |
| 294 |
and/or patches. We will be most grateful. |
| 295 |
|