1.2 Compiling Source Code
The Nagios source code is available for download on the project page.[15] The installation description below is for version 3.0, which is provided by the developers as a tarball. A Nagios 2.x installation runs in an almost identical manner:
linux:~ # mkdir /usr/local/src linux:~ # cd /usr/local/src linux:local/src # tar xvzf path/to/nagios-3.0.tar.gz ...
The three commands unpack the source code into the directory created for this purpose, /usr/local/src
. A subdirectory called nagios-3.0
is also created, containing the Nagios sources. To prepare these for compilation, enter the parameter deviating from the default value when running the configure
command. Table 1-1 lists the most important parameters:
linux:~ # cd /usr/local/src/nagios-3.0 ...
Get Nagios, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.