13.1. Installing Nagios from Sources
Problem
You prefer to build Nagios from source code so that you can control the compiletime options. You also want to get the latest version because the packages in your Linux distribution are several versions behind. What additional libraries do you need?
Solution
You need an HTTP server such as Apache or Lighttpd, the usual Linux build environment, plus libraries to support the statusmap, trends, and histograms. Nagios uses a lot of Common Gateway Interface (CGI) scripts (these are scripts used by web servers to generate pages), so it needs the GD libraries and their dependencies. On Fedora, install these packages:
The Development Tools package group (yum install 'Development Tools')
libgdlibgd-devellibpnglibpng-devellibjpeglibjpeg-develzlibzlib-devel
On Debian, you need these packages:
build-essentiallibgd2libgd2-devlibpng12-0libgd2-devlibjpeg62libjpeg62-devzlib1gzlib1g-dev
There are four Nagios tarballs. These are the versions that were current when this was written:
nagios-2.9.tar.gz
nagios-plugins-1.4.8.tar.gz
nrpe-2.8.1.tar.gz
nsca-2.7.1.tar.gz
The first two contain the core Nagios framework and plug-ins. With these, you can perform host and service checks without installing any client software. The second two require you to install and configure Nagios on the client computers. nrpe performs additional checks, such as CPU status and other hardware checks. ncsa adds all kinds of encryption and security. These might be useful for monitoring important ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access