$ tar zxvf nagios-4.2.0.tar.gz
$ tar zxvf nagios-plugins-2.1.2.tar.gz
$ tar zxvf 3.0.tar.gz
Nagios Core Installation
$ cd nagios-4.2.0
$ ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-httpd-conf=/etc/apache2/sites-available/
$ make all
$ make install$ make install-init
$ make install-config
$ make install-commandmode
$ make install-webconf
$ cd /tmp/nagios-plugins-2.1.2
$ ./configure --with-nagios-user=nagios --with-nagios-group=nagios --with-openssl--with-ping-command=ping
$ make
$ make install
Setup NRPE
$ cd /tmp/nrpe-3.0/
$ ./configure
$ make all
$ make install$ make install-config
$ make install-init
Restart Services
$ service apache2 restart
$ service nagios restart
$ service nrpe restart