Database Reference
In-Depth Information
Installing Nagios
Nagios ships in different packages, such as DIY, student, professional, and business, based
on a number of features and support. One may visit the Nagios website and choose one on
the basis of one's needs. With the number of free plugins, the Nagios free version is gener-
ally a good option. In this section, we will see how to install and configure the Nagios free
version (from the source) on a CentOS machine. These instructions should work on any
RHEL variant. For Ubuntu- or Debian-like environments, you may need to look for an
apt-get equivalent of the yum commands in the script. On the basis of your Linux distri-
bution, the Nagios distribution can be installed from additional repositories. It may or may
not be the latest and greatest among Nagios, but it eases a lot of installation hassles. We use
tarball installation for this topic to keep things generic.
Prerequisites
The Nagios server (PHP-based) has some dependencies to be fulfilled before you can start
installing it:
PHP : You will need to have a PHP processor to run Nagios. Check its availability
using the following command:
$ php -v
PHP 5.3.26 (cli) (built: Jun 24 2013 18:08:10)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2013 Zend
Technologies
If PHP does not exist, install it as follows:
$ sudo yum install php
httpd : The Apache httpd web server serves as the front end to a PHP-based Nagios
web application. To check whether you have httpd or not, execute the following
command:
$ httpd -v
Server version: Apache/2.2.24 (Unix)
Server built: May 20 2013 21:12:45
If httpd does not exist, install it as follows:
Search WWH ::




Custom Search