You are on page 1of 17

NAGIOS

Instalacin

Siguiendo el manual:

(http://assets.nagios.com/downloads/nagioscore/docs/Installing_Nagios_Core_From_Source.pdf)

Instalar los paquetes necesarios antes de instalar Nagios


[root@localhost Desktop]# yum install -y wget httpd php gcc glibc glibc-common gd gd-devel make net-
snmp
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: centos.ifce.edu.br
* extras: centos.ifce.edu.br
* updates: centos.ifce.edu.br
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
updates | 3.5 kB 00:00
Setting up Install Process
Package wget-1.12-1.4.el6.i686 already installed and latest version
Package glibc-2.12-1.80.el6_3.6.i686 already installed and latest version
Package glibc-common-2.12-1.80.el6_3.6.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc.i686 0:4.4.6-4.el6 will be installed
--> Processing Dependency: libgomp = 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.i686
--> Processing Dependency: cpp = 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.i686
--> Processing Dependency: libgcc >= 4.4.6-4.el6 for package: gcc-4.4.6-4.el6.i686
--> Processing Dependency: glibc-devel >= 2.2.90-12 for package: gcc-4.4.6-4.el6.i686
--> Processing Dependency: cloog-ppl >= 0.15 for package: gcc-4.4.6-4.el6.i686
---> Package gd.i686 0:2.0.35-10.el6 will be installed
--> Processing Dependency: libXpm.so.4 for package: gd-2.0.35-10.el6.i686
---> Package gd-devel.i686 0:2.0.35-10.el6 will be installed
--> Processing Dependency: zlib-devel for package: gd-devel-2.0.35-10.el6.i686
--> Processing Dependency: libpng-devel for package: gd-devel-2.0.35-10.el6.i686
--> Processing Dependency: libjpeg-devel for package: gd-devel-2.0.35-10.el6.i686
--> Processing Dependency: libXpm-devel for package: gd-devel-2.0.35-10.el6.i686
--> Processing Dependency: libX11-devel for package: gd-devel-2.0.35-10.el6.i686
--> Processing Dependency: freetype-devel for package: gd-devel-2.0.35-10.el6.i686
--> Processing Dependency: fontconfig-devel for package: gd-devel-2.0.35-10.el6.i686
---> Package httpd.i686 0:2.2.15-15.el6.centos will be updated
---> Package httpd.i686 0:2.2.15-15.el6.centos.1 will be an update
--> Processing Dependency: httpd-tools = 2.2.15-15.el6.centos.1 for package: httpd-2.2.15-
15.el6.centos.1.i686
---> Package make.i686 1:3.81-19.el6 will be updated
---> Package make.i686 1:3.81-20.el6 will be an update
---> Package net-snmp.i686 1:5.5-37.el6 will be updated
---> Package net-snmp.i686 1:5.5-41.el6_3.1 will be an update
--> Processing Dependency: net-snmp-libs = 1:5.5-41.el6_3.1 for package: 1:net-snmp-5.5-41.el6_3.1.i686
---> Package php.i686 0:5.3.3-14.el6_3 will be installed
--> Processing Dependency: php-common = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Processing Dependency: php-cli = 5.3.3-14.el6_3 for package: php-5.3.3-14.el6_3.i686
--> Running transaction check
---> Package cloog-ppl.i686 0:0.15.7-1.2.el6 will be installed
--> Processing Dependency: libppl_c.so.2 for package: cloog-ppl-0.15.7-1.2.el6.i686
--> Processing Dependency: libppl.so.7 for package: cloog-ppl-0.15.7-1.2.el6.i686
---> Package cpp.i686 0:4.4.6-4.el6 will be installed
--> Processing Dependency: libmpfr.so.1 for package: cpp-4.4.6-4.el6.i686
---> Package fontconfig-devel.i686 0:2.8.0-3.el6 will be installed
---> Package freetype-devel.i686 0:2.3.11-6.el6_2.9 will be installed
--> Processing Dependency: freetype = 2.3.11-6.el6_2.9 for package: freetype-devel-2.3.11-
6.el6_2.9.i686
---> Package glibc-devel.i686 0:2.12-1.80.el6_3.6 will be installed
--> Processing Dependency: glibc-headers = 2.12-1.80.el6_3.6 for package: glibc-devel-2.12-
1.80.el6_3.6.i686
--> Processing Dependency: glibc-headers for package: glibc-devel-2.12-1.80.el6_3.6.i686
---> Package httpd-tools.i686 0:2.2.15-15.el6.centos will be updated
---> Package httpd-tools.i686 0:2.2.15-15.el6.centos.1 will be an update
---> Package libX11-devel.i686 0:1.3-2.el6 will be installed
--> Processing Dependency: pkgconfig(xcb) >= 1.1.92 for package: libX11-devel-1.3-2.el6.i686
--> Processing Dependency: pkgconfig(xproto) for package: libX11-devel-1.3-2.el6.i686
--> Processing Dependency: pkgconfig(xcb) for package: libX11-devel-1.3-2.el6.i686
--> Processing Dependency: pkgconfig(kbproto) for package: libX11-devel-1.3-2.el6.i686
--> Processing Dependency: libXdmcp-devel for package: libX11-devel-1.3-2.el6.i686
--> Processing Dependency: libXau-devel for package: libX11-devel-1.3-2.el6.i686
---> Package libXpm.i686 0:3.5.8-2.el6 will be installed
---> Package libXpm-devel.i686 0:3.5.8-2.el6 will be installed
---> Package libgcc.i686 0:4.4.6-3.el6 will be updated
---> Package libgcc.i686 0:4.4.6-4.el6 will be an update
---> Package libgomp.i686 0:4.4.6-3.el6 will be updated
---> Package libgomp.i686 0:4.4.6-4.el6 will be an update
---> Package libjpeg-devel.i686 0:6b-46.el6 will be installed
---> Package libpng-devel.i686 2:1.2.49-1.el6_2 will be installed
--> Processing Dependency: libpng = 2:1.2.49-1.el6_2 for package: 2:libpng-devel-1.2.49-1.el6_2.i686
---> Package net-snmp-libs.i686 1:5.5-37.el6 will be updated
---> Package net-snmp-libs.i686 1:5.5-41.el6_3.1 will be an update
---> Package php-cli.i686 0:5.3.3-14.el6_3 will be installed
---> Package php-common.i686 0:5.3.3-14.el6_3 will be installed
---> Package zlib-devel.i686 0:1.2.3-27.el6 will be installed
--> Running transaction check
---> Package freetype.i686 0:2.3.11-6.el6_1.7 will be updated
---> Package freetype.i686 0:2.3.11-6.el6_2.9 will be an update
---> Package glibc-headers.i686 0:2.12-1.80.el6_3.6 will be installed
--> Processing Dependency: kernel-headers >= 2.2.1 for package: glibc-headers-2.12-1.80.el6_3.6.i686
--> Processing Dependency: kernel-headers for package: glibc-headers-2.12-1.80.el6_3.6.i686
---> Package libXau-devel.i686 0:1.0.5-1.el6 will be installed
---> Package libXdmcp-devel.i686 0:1.0.3-1.el6 will be installed
---> Package libpng.i686 2:1.2.46-1.el6_1 will be updated
---> Package libpng.i686 2:1.2.49-1.el6_2 will be an update
---> Package libxcb-devel.i686 0:1.5-1.el6 will be installed
---> Package mpfr.i686 0:2.4.1-6.el6 will be installed
---> Package ppl.i686 0:0.10.2-11.el6 will be installed
---> Package xorg-x11-proto-devel.noarch 0:7.6-13.el6 will be installed
--> Running transaction check
---> Package kernel-headers.i686 0:2.6.32-279.19.1.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
gcc i686 4.4.6-4.el6 base 8.2 M
gd i686 2.0.35-10.el6 base 141 k
gd-devel i686 2.0.35-10.el6 base 78 k
php i686 5.3.3-14.el6_3 updates 1.1 M
Updating:
httpd i686 2.2.15-15.el6.centos.1 base 819 k
make i686 1:3.81-20.el6 base 386 k
net-snmp i686 1:5.5-41.el6_3.1 updates 301 k
Installing for dependencies:
cloog-ppl i686 0.15.7-1.2.el6 base 93 k
cpp i686 4.4.6-4.el6 base 3.4 M
fontconfig-devel i686 2.8.0-3.el6 base 209 k
freetype-devel i686 2.3.11-6.el6_2.9 base 364 k
glibc-devel i686 2.12-1.80.el6_3.6 updates 971 k
glibc-headers i686 2.12-1.80.el6_3.6 updates 609 k
kernel-headers i686 2.6.32-279.19.1.el6 updates 1.9 M
libX11-devel i686 1.3-2.el6 base 1.0 M
libXau-devel i686 1.0.5-1.el6 base 13 k
libXdmcp-devel i686 1.0.3-1.el6 base 9.6 k
libXpm i686 3.5.8-2.el6 base 58 k
libXpm-devel i686 3.5.8-2.el6 base 32 k
libjpeg-devel i686 6b-46.el6 base 100 k
libpng-devel i686 2:1.2.49-1.el6_2 base 112 k
libxcb-devel i686 1.5-1.el6 base 139 k
mpfr i686 2.4.1-6.el6 base 153 k
php-cli i686 5.3.3-14.el6_3 updates 2.2 M
php-common i686 5.3.3-14.el6_3 updates 523 k
ppl i686 0.10.2-11.el6 base 1.3 M
xorg-x11-proto-devel noarch 7.6-13.el6 base 303 k
zlib-devel i686 1.2.3-27.el6 base 44 k
Updating for dependencies:
freetype i686 2.3.11-6.el6_2.9 base 363 k
httpd-tools i686 2.2.15-15.el6.centos.1 base 70 k
libgcc i686 4.4.6-4.el6 base 111 k
libgomp i686 4.4.6-4.el6 base 119 k
libpng i686 2:1.2.49-1.el6_2 base 184 k
net-snmp-libs i686 1:5.5-41.el6_3.1 updates 1.5 M

Transaction Summary
================================================================================
Install 25 Package(s)
Upgrade 9 Package(s)

Total download size: 27 M
Downloading Packages:
(1/34): cloog-ppl-0.15.7-1.2.el6.i686.rpm | 93 kB 00:01
(2/34): cpp-4.4.6-4.el6.i686.rpm | 3.4 MB 00:28
(3/34): fontconfig-devel-2.8.0-3.el6.i686.rpm | 209 kB 00:02
(4/34): freetype-2.3.11-6.el6_2.9.i686.rpm | 363 kB 00:03
(5/34): freetype-devel-2.3.11-6.el6_2.9.i686.rpm | 364 kB 00:05
(6/34): gcc-4.4.6-4.el6.i686.rpm | 8.2 MB 01:06
(7/34): gd-2.0.35-10.el6.i686.rpm | 141 kB 00:01
(8/34): gd-devel-2.0.35-10.el6.i686.rpm | 78 kB 00:00
(9/34): glibc-devel-2.12-1.80.el6_3.6.i686.rpm | 971 kB 00:08
(10/34): glibc-headers-2.12-1.80.el6_3.6.i686.rpm | 609 kB 00:05
(11/34): httpd-2.2.15-15.el6.centos.1.i686.rpm | 819 kB 00:07
(12/34): httpd-tools-2.2.15-15.el6.centos.1.i686.rpm | 70 kB 00:00
(13/34): kernel-headers-2.6.32-279.19.1.el6.i686.rpm | 1.9 MB 00:15
(14/34): libX11-devel-1.3-2.el6.i686.rpm | 1.0 MB 00:10
(15/34): libXau-devel-1.0.5-1.el6.i686.rpm | 13 kB 00:00
(16/34): libXdmcp-devel-1.0.3-1.el6.i686.rpm | 9.6 kB 00:00
(17/34): libXpm-3.5.8-2.el6.i686.rpm | 58 kB 00:00
(18/34): libXpm-devel-3.5.8-2.el6.i686.rpm | 32 kB 00:00
(19/34): libgcc-4.4.6-4.el6.i686.rpm | 111 kB 00:01
(20/34): libgomp-4.4.6-4.el6.i686.rpm | 119 kB 00:01
(21/34): libjpeg-devel-6b-46.el6.i686.rpm | 100 kB 00:01
(22/34): libpng-1.2.49-1.el6_2.i686.rpm | 184 kB 00:01
(23/34): libpng-devel-1.2.49-1.el6_2.i686.rpm | 112 kB 00:01
(24/34): libxcb-devel-1.5-1.el6.i686.rpm | 139 kB 00:01
(25/34): make-3.81-20.el6.i686.rpm | 386 kB 00:03
(26/34): mpfr-2.4.1-6.el6.i686.rpm | 153 kB 00:01
(27/34): net-snmp-5.5-41.el6_3.1.i686.rpm | 301 kB 00:03
(28/34): net-snmp-libs-5.5-41.el6_3.1.i686.rpm | 1.5 MB 00:12
(29/34): php-5.3.3-14.el6_3.i686.rpm | 1.1 MB 00:09
(30/34): php-cli-5.3.3-14.el6_3.i686.rpm | 2.2 MB 00:17
(31/34): php-common-5.3.3-14.el6_3.i686.rpm | 523 kB 00:04
(32/34): ppl-0.10.2-11.el6.i686.rpm | 1.3 MB 00:10
(33/34): xorg-x11-proto-devel-7.6-13.el6.noarch.rpm | 303 kB 00:02
(34/34): zlib-devel-1.2.3-27.el6.i686.rpm | 44 kB 00:00
--------------------------------------------------------------------------------
Total 109 kB/s | 27 MB 04:11
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : xorg-x11-proto-devel-7.6-13.el6.noarch 1/43
Installing : zlib-devel-1.2.3-27.el6.i686 2/43
Installing : libXau-devel-1.0.5-1.el6.i686 3/43
Installing : libxcb-devel-1.5-1.el6.i686 4/43
Installing : libXdmcp-devel-1.0.3-1.el6.i686 5/43
Installing : libX11-devel-1.3-2.el6.i686 6/43
Installing : libjpeg-devel-6b-46.el6.i686 7/43
Installing : kernel-headers-2.6.32-279.19.1.el6.i686 8/43
Updating : libgcc-4.4.6-4.el6.i686 9/43
Updating : 2:libpng-1.2.49-1.el6_2.i686 10/43
Updating : freetype-2.3.11-6.el6_2.9.i686 11/43
Installing : freetype-devel-2.3.11-6.el6_2.9.i686 12/43
Installing : php-common-5.3.3-14.el6_3.i686 13/43
Installing : libXpm-3.5.8-2.el6.i686 14/43
Installing : fontconfig-devel-2.8.0-3.el6.i686 15/43
Installing : 2:libpng-devel-1.2.49-1.el6_2.i686 16/43
Installing : glibc-headers-2.12-1.80.el6_3.6.i686 17/43
Installing : glibc-devel-2.12-1.80.el6_3.6.i686 18/43
Installing : libXpm-devel-3.5.8-2.el6.i686 19/43
Installing : gd-2.0.35-10.el6.i686 20/43
Installing : php-cli-5.3.3-14.el6_3.i686 21/43
Installing : ppl-0.10.2-11.el6.i686 22/43
Installing : cloog-ppl-0.15.7-1.2.el6.i686 23/43
Updating : 1:net-snmp-libs-5.5-41.el6_3.1.i686 24/43
Updating : libgomp-4.4.6-4.el6.i686 25/43
Updating : httpd-tools-2.2.15-15.el6.centos.1.i686 26/43
Updating : httpd-2.2.15-15.el6.centos.1.i686 27/43
Installing : mpfr-2.4.1-6.el6.i686 28/43
Installing : gd-devel-2.0.35-10.el6.i686 29/43
Installing : cpp-4.4.6-4.el6.i686 30/43
Installing : gcc-4.4.6-4.el6.i686 31/43
Installing : php-5.3.3-14.el6_3.i686 32/43
Updating : 1:net-snmp-5.5-41.el6_3.1.i686 33/43
Updating : 1:make-3.81-20.el6.i686 34/43
Cleanup : 1:net-snmp-5.5-37.el6.i686 35/43
Cleanup : httpd-2.2.15-15.el6.centos.i686 36/43
Cleanup : httpd-tools-2.2.15-15.el6.centos.i686 37/43
Cleanup : 1:net-snmp-libs-5.5-37.el6.i686 38/43
Cleanup : libgcc-4.4.6-3.el6.i686 39/43
Cleanup : 2:libpng-1.2.46-1.el6_1.i686 40/43
Cleanup : libgomp-4.4.6-3.el6.i686 41/43
Cleanup : freetype-2.3.11-6.el6_1.7.i686 42/43
Cleanup : 1:make-3.81-19.el6.i686 43/43

Installed:
gcc.i686 0:4.4.6-4.el6 gd.i686 0:2.0.35-10.el6
gd-devel.i686 0:2.0.35-10.el6 php.i686 0:5.3.3-14.el6_3

Dependency Installed:
cloog-ppl.i686 0:0.15.7-1.2.el6
cpp.i686 0:4.4.6-4.el6
fontconfig-devel.i686 0:2.8.0-3.el6
freetype-devel.i686 0:2.3.11-6.el6_2.9
glibc-devel.i686 0:2.12-1.80.el6_3.6
glibc-headers.i686 0:2.12-1.80.el6_3.6
kernel-headers.i686 0:2.6.32-279.19.1.el6
libX11-devel.i686 0:1.3-2.el6
libXau-devel.i686 0:1.0.5-1.el6
libXdmcp-devel.i686 0:1.0.3-1.el6
libXpm.i686 0:3.5.8-2.el6
libXpm-devel.i686 0:3.5.8-2.el6
libjpeg-devel.i686 0:6b-46.el6
libpng-devel.i686 2:1.2.49-1.el6_2
libxcb-devel.i686 0:1.5-1.el6
mpfr.i686 0:2.4.1-6.el6
php-cli.i686 0:5.3.3-14.el6_3
php-common.i686 0:5.3.3-14.el6_3
ppl.i686 0:0.10.2-11.el6
xorg-x11-proto-devel.noarch 0:7.6-13.el6
zlib-devel.i686 0:1.2.3-27.el6

Updated:
httpd.i686 0:2.2.15-15.el6.centos.1 make.i686 1:3.81-20.el6
net-snmp.i686 1:5.5-41.el6_3.1

Dependency Updated:
freetype.i686 0:2.3.11-6.el6_2.9 httpd-tools.i686 0:2.2.15-15.el6.centos.1
libgcc.i686 0:4.4.6-4.el6 libgomp.i686 0:4.4.6-4.el6
libpng.i686 2:1.2.49-1.el6_2 net-snmp-libs.i686 1:5.5-41.el6_3.1

Complete!
[root@localhost Desktop]#

Descargar el nagios core y el nagios plugins desde http://www.nagios.org/download


Creamos un usuario y grupo

[root@localhost nagios]# useradd nagios
[root@localhost nagios]# groupadd nagcmd
[root@localhost nagios]# usermod -a -G nagcmd nagios
[root@localhost nagios]#

Instalacin de nagios core

Ir a donde se descarg el paquete Nagios core, descomprimirlo y entrar a la carpeta de nagios core


[root@localhost Desktop]# cd /root/Descargas
bash: cd: /root/Descargas: No such file or directory
[root@localhost Desktop]# cd /root/Downloads
[root@localhost Downloads]# ls
Installing_Nagios_Core_From_Source.pdf nagios-plugins-1.4.16
nagios nagios-plugins-1.4.16.tar.gz
nagios-3.4.3.tar.gz
[root@localhost Downloads]# cd nagios


Ejecutar el comando ./configure --with-command-group=nagcmd


[root@localhost nagios]# ./configure --with-command-group=nagcmd
checking for a BSD-compatible install... /usr/bin/install -c
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking for strip... /usr/bin/strip
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking grp.h usability... yes
checking grp.h presence... yes
checking for grp.h... yes
checking libgen.h usability... yes
checking libgen.h presence... yes
checking for libgen.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pthread.h usability... yes
checking pthread.h presence... yes
checking for pthread.h... yes
checking pthreads.h usability... no
checking pthreads.h presence... no
checking for pthreads.h... no
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking regex.h usability... yes
checking regex.h presence... yes
checking for regex.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking socket.h usability... no
checking socket.h presence... no
checking for socket.h... no
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/resource.h usability... yes
checking sys/resource.h presence... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/stat.h... (cached) yes
checking sys/timeb.h usability... yes
checking sys/timeb.h presence... yes
checking for sys/timeb.h... yes
checking sys/un.h usability... yes
checking sys/un.h presence... yes
checking for sys/un.h... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/msg.h usability... yes
checking sys/msg.h presence... yes
checking for sys/msg.h... yes
checking sys/poll.h usability... yes
checking sys/poll.h presence... yes
checking for sys/poll.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking uio.h usability... no
checking uio.h presence... no
checking for uio.h... no
checking for unistd.h... (cached) yes
checking for an ANSI C-conforming const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for va_copy... yes
checking for vsnprintf... yes
checking for snprintf... yes
checking for asprintf... yes
checking for vasprintf... yes
checking for C99 vsnprintf... yes
checking for library containing getservbyname... none required
checking for library containing connect... none required
checking for initgroups... yes
checking for setenv... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for unsetenv... yes
checking for type of socket size... size_t
checking for pthread_create in -lcma... no
checking for pthread_create in -lpthread... yes
checking for library containing nanosleep... none required
checking for mail... /bin/mail
We'll use default routines (in xdata/xsddefault.*) for status data I/O...
We'll use default routines (in xdata/xcddefault.*) for comment data I/O...
We'll use default routines (in xdata/xrddefault.*) for retention data I/O...
We'll use template-based routines (in xdata/xodtemplate.*) for object data I/O...
We'll use default routines (in xdata/xpddefault.*) for performance data I/O...
We'll use default routines (in xdata/xdddefault.*) for scheduled downtime data I/O...
checking for main in -liconv... no
checking for gdImagePng in -lgd (order 1)... no
checking for gdImagePng in -lgd (order 2)... yes
GD library was found!
checking for gdImageCreateTrueColor in -lgd... yes
checking ltdl.h usability... no
checking ltdl.h presence... no
checking for ltdl.h... no
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for dlopen in -ldl... yes
checking for extra flags needed to export symbols... -Wl,-export-dynamic
checking for linker flags for loadable modules... -shared
checking for traceroute... /bin/traceroute
checking for type va_list... yes
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: creating Makefile
config.status: creating subst
config.status: creating pkginfo
config.status: creating base/Makefile
config.status: creating common/Makefile
config.status: creating contrib/Makefile
config.status: creating cgi/Makefile
config.status: creating html/Makefile
config.status: creating module/Makefile
config.status: creating xdata/Makefile
config.status: creating daemon-init
config.status: creating t/Makefile
config.status: creating t-tap/Makefile
config.status: creating include/config.h
config.status: include/config.h is unchanged
config.status: creating include/snprintf.h
config.status: include/snprintf.h is unchanged

Creating sample config files in sample-config/ ...


*** Configuration summary for nagios 3.4.3 11-30-2012 ***:

General Options:
-------------------------
Nagios executable: nagios
Nagios user/group: nagios,nagios
Command user/group: nagios,nagcmd
Embedded Perl: no
Event Broker: yes
Install ${prefix}: /usr/local/nagios
Lock file: ${prefix}/var/nagios.lock
Check result directory: ${prefix}/var/spool/checkresults
Init directory: /etc/rc.d/init.d
Apache conf.d directory: /etc/httpd/conf.d
Mail program: /bin/mail
Host OS: linux-gnu

Web Interface Options:
------------------------
HTML URL: http://localhost/nagios/
CGI URL: http://localhost/nagios/cgi-bin/
Traceroute (used by WAP): /bin/traceroute


Review the options above for accuracy. If they look okay,
type 'make all' to compile the main program and CGIs.

[root@localhost nagios]#

Ahora ejecutar los siguientes comandos uno despus de otro:

make all
make install
make install-init
make install-config
make install-commandmode
make install-webconf
cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
/etc/init.d/nagios start
/etc/init.d/httpd start

[root@localhost nagios]# make all
cd ./base && make
make[1]: Entering directory `/root/Downloads/nagios/base'
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o broker.o broker.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o nebmods.o nebmods.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o ../common/shared.o ../common/shared.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o config.o config.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o commands.o commands.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o events.o events.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o flapping.o flapping.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o logging.o logging.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o macros-base.o ../common/macros.c
../common/macros.c: In function grab_macrox_value_r:
../common/macros.c:1226: warning: implicit declaration of function asprintf
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o netutils.o netutils.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o notifications.o notifications.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o sehandlers.o sehandlers.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o skiplist.o ../common/skiplist.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o utils.o utils.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o retention-base.o sretention.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xretention-base.o ../xdata/xrddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o comments-base.o ../common/comments.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xcomments-base.o ../xdata/xcddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o objects-base.o ../common/objects.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xobjects-base.o ../xdata/xodtemplate.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o statusdata-base.o ../common/statusdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xstatusdata-base.o ../xdata/xsddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o perfdata-base.o perfdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xperfdata-base.o ../xdata/xpddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o downtime-base.o ../common/downtime.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o xdowntime-base.o ../xdata/xdddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o ../common/shared.o
checks.o config.o commands.o events.o flapping.o logging.o macros-base.o netutils.o notifications.o
sehandlers.o skiplist.o utils.o retention-base.o xretention-base.o comments-base.o xcomments-base.o
objects-base.o xobjects-base.o statusdata-base.o xstatusdata-base.o perfdata-base.o xperfdata-base.o
downtime-base.o xdowntime-base.o -Wl,-export-dynamic -lm -lpthread -ldl
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagiostats nagiostats.c -lm
make[1]: Leaving directory `/root/Downloads/nagios/base'
cd ./cgi && make
make[1]: Entering directory `/root/Downloads/nagios/cgi'
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o getcgi.o getcgi.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiutils.o cgiutils.c
cgiutils.c: In function include_ssi_files:
cgiutils.c:1500: warning: unused variable x
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o cgiauth.o cgiauth.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o macros-cgi.o ../common/macros.c
../common/macros.c: In function grab_datetime_macro_r:
../common/macros.c:1545: warning: implicit declaration of function asprintf
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o skiplist.o ../common/skiplist.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o objects-cgi.o ../common/objects.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xobjects-cgi.o ../xdata/xodtemplate.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o statusdata-cgi.o ../common/statusdata.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o xstatusdata-cgi.o ../xdata/xsddefault.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o comments-cgi.o ../common/comments.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o downtime-cgi.o ../common/downtime.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o avail.cgi avail.c ../common/shared.o getcgi.o cgiutils.o
cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -c -o extcmd_list.o extcmd_list.c
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o cmd.cgi cmd.c extcmd_list.o ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o config.cgi config.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o extinfo.cgi extinfo.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o history.cgi history.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o notifications.cgi notifications.c ../common/shared.o
getcgi.o cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o outages.cgi outages.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o showlog.cgi showlog.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o status.cgi status.c ../common/shared.o getcgi.o cgiutils.o
cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statuswml.cgi statuswml.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o summary.cgi summary.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o tac.cgi tac.c ../common/shared.o getcgi.o cgiutils.o
cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
comments-cgi.o downtime-cgi.o
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statuswrl.cgi statuswrl.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lm
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o statusmap.cgi statusmap.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o trends.cgi trends.c ../common/shared.o getcgi.o cgiutils.o
cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o xstatusdata-cgi.o
comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm
gcc -Wall -g -O2 -DHAVE_CONFIG_H -DNSCGI -o histogram.cgi histogram.c ../common/shared.o getcgi.o
cgiutils.o cgiauth.o macros-cgi.o skiplist.o objects-cgi.o xobjects-cgi.o statusdata-cgi.o
xstatusdata-cgi.o comments-cgi.o downtime-cgi.o -lgd -lpng -ljpeg -lz -lm
make[1]: Leaving directory `/root/Downloads/nagios/cgi'
cd ./html && make
make[1]: Entering directory `/root/Downloads/nagios/html'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/Downloads/nagios/html'
if [ xyes = xyes ]; then \
cd ./module && make; \
fi
make[1]: Entering directory `/root/Downloads/nagios/module'
gcc -fPIC -g -O2 -DHAVE_CONFIG_H -o helloworld.o helloworld.c -shared
make[1]: Leaving directory `/root/Downloads/nagios/module'

*** Compile finished ***

If the main program and CGIs compiled without any errors, you
can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

make install
- This installs the main program, CGIs, and HTML files

make install-init
- This installs the init script in /etc/rc.d/init.d

make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file

make install-config
- This installs *SAMPLE* config files in /usr/local/nagios/etc
You'll have to modify these sample files before you can
use Nagios. Read the HTML documentation for more info
on doing this. Pay particular attention to the docs on
object configuration files, as they determine what/how
things get monitored!

make install-webconf
- This installs the Apache config file for the Nagios
web interface

make install-exfoliation
- This installs the Exfoliation theme for the Nagios
web interface

make install-classicui
- This installs the classic theme for the Nagios
web interface


*** Support Notes *******************************************

If you have questions about configuring or running Nagios,
please make sure that you:

- Look at the sample config files
- Read the documentation on the Nagios Library at:
http://library.nagios.com

before you post a question to one of the mailing lists.
Also make sure to include pertinent information that could
help others help you. This might include:

- What version of Nagios you are using
- What version of the plugins you are using
- Relevant snippets from your config files
- Relevant error messages from the Nagios log file

For more information on obtaining support for Nagios, visit:

http://support.nagios.com

*************************************************************

Enjoy.

[root@localhost nagios]# make install
cd ./base && make install
make[1]: Entering directory `/root/Downloads/nagios/base'
make install-basic
make[2]: Entering directory `/root/Downloads/nagios/base'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagiostats /usr/local/nagios/bin
make[2]: Leaving directory `/root/Downloads/nagios/base'
make strip-post-install
make[2]: Entering directory `/root/Downloads/nagios/base'
/usr/bin/strip /usr/local/nagios/bin/nagios
/usr/bin/strip /usr/local/nagios/bin/nagiostats
make[2]: Leaving directory `/root/Downloads/nagios/base'
make[1]: Leaving directory `/root/Downloads/nagios/base'
cd ./cgi && make install
make[1]: Entering directory `/root/Downloads/nagios/cgi'
make install-basic
make[2]: Entering directory `/root/Downloads/nagios/cgi'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/sbin
for file in *.cgi; do \
/usr/bin/install -c -m 775 -o nagios -g nagios $file /usr/local/nagios/sbin; \
done
make[2]: Leaving directory `/root/Downloads/nagios/cgi'
make strip-post-install
make[2]: Entering directory `/root/Downloads/nagios/cgi'
for file in *.cgi; do \
/usr/bin/strip /usr/local/nagios/sbin/$file; \
done
make[2]: Leaving directory `/root/Downloads/nagios/cgi'
make[1]: Leaving directory `/root/Downloads/nagios/cgi'
cd ./html && make install
make[1]: Entering directory `/root/Downloads/nagios/html'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/media
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/stylesheets
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/contexthelp
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/docs/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/js
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/images/logos
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes/rss
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/includes/rss/extlib
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share/ssi
/usr/bin/install -c -m 664 -o nagios -g nagios robots.txt /usr/local/nagios/share
rm -f /usr/local/nagios/share/index.html
rm -f /usr/local/nagios/share/main.html
rm -f /usr/local/nagios/share/side.html
for file in *.php; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share; done
for file in stylesheets/*.css; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/stylesheets;
done
for file in contexthelp/*.html; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/contexthelp;
done
for file in js/*.js; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/js; done
for file in images/*.gif; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.jpg; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.png; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/*.ico; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images; done
for file in images/logos/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/images/logos;
done
for file in includes/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes; done
for file in includes/rss/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file /usr/local/nagios/share/includes/rss;
done
for file in includes/rss/extlib/*.*; \
do /usr/bin/install -c -m 664 -o nagios -g nagios $file
/usr/local/nagios/share/includes/rss/extlib; done
make[1]: Leaving directory `/root/Downloads/nagios/html'
make install-exfoliation
make[1]: Entering directory `/root/Downloads/nagios'
cp -rf contrib/exfoliation/stylesheets/* /usr/local/nagios/share/stylesheets
cp -rf contrib/exfoliation/images/* /usr/local/nagios/share/images

*** Exfoliation theme installed ***
NOTE: Use 'make install-classicui' to revert to classic Nagios theme

make[1]: Leaving directory `/root/Downloads/nagios'
make install-basic
make[1]: Entering directory `/root/Downloads/nagios'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/libexec
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/archives
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/var/spool/checkresults
if [ no = yes ]; then \
/usr/bin/install -c -m 664 -o nagios -g nagios p1.pl /usr/local/nagios/bin; \
fi;

*** Main program, CGIs and HTML files installed ***

You can continue with installing Nagios as follows (type 'make'
without any arguments for a list of all possible options):

make install-init
- This installs the init script in /etc/rc.d/init.d

make install-commandmode
- This installs and configures permissions on the
directory for holding the external command file

make install-config
- This installs sample config files in /usr/local/nagios/etc

make[1]: Leaving directory `/root/Downloads/nagios'
[root@localhost nagios]#

[root@localhost nagios]# make install-init
/usr/bin/install -c -m 755 -d -o root -g root /etc/rc.d/init.d
/usr/bin/install -c -m 755 -o root -g root daemon-init /etc/rc.d/init.d/nagios

*** Init script installed ***

[root@localhost nagios]# make install-config
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/etc/objects
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/nagios.cfg
/usr/local/nagios/etc/nagios.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg
/usr/bin/install -c -b -m 660 -o nagios -g nagios sample-config/resource.cfg
/usr/local/nagios/etc/resource.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/templates.cfg
/usr/local/nagios/etc/objects/templates.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/commands.cfg
/usr/local/nagios/etc/objects/commands.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/contacts.cfg
/usr/local/nagios/etc/objects/contacts.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/timeperiods.cfg
/usr/local/nagios/etc/objects/timeperiods.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/localhost.cfg
/usr/local/nagios/etc/objects/localhost.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/windows.cfg
/usr/local/nagios/etc/objects/windows.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/printer.cfg
/usr/local/nagios/etc/objects/printer.cfg
/usr/bin/install -c -b -m 664 -o nagios -g nagios sample-config/template-object/switch.cfg
/usr/local/nagios/etc/objects/switch.cfg

*** Config files installed ***

Remember, these are *SAMPLE* config files. You'll need to read
the documentation for more information on how to actually define
services, hosts, etc. to fit your particular needs.

[root@localhost nagios]# make install-commandmode
/usr/bin/install -c -m 775 -o nagios -g nagcmd -d /usr/local/nagios/var/rw
chmod g+s /usr/local/nagios/var/rw

*** External command directory configured ***

[root@localhost nagios]# make install-webconf
/usr/bin/install -c -m 644 sample-config/httpd.conf /etc/httpd/conf.d/nagios.conf

*** Nagios/Apache conf file installed ***

[root@localhost nagios]#

[root@localhost nagios]# cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
[root@localhost nagios]# chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
[root@localhost nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.4.3
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-30-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 8 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
[root@localhost nagios]#

[root@localhost nagios]# cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
[root@localhost nagios]# chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers
[root@localhost nagios]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

Nagios Core 3.4.3
Copyright (c) 2009-2011 Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 11-30-2012
License: GPL

Website: http://www.nagios.org
Reading configuration data...
Read main config file okay...
Processing object config file '/usr/local/nagios/etc/objects/commands.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/contacts.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/timeperiods.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/templates.cfg'...
Processing object config file '/usr/local/nagios/etc/objects/localhost.cfg'...
Read object config files okay...

Running pre-flight check on configuration data...

Checking services...
Checked 8 services.
Checking hosts...
Checked 1 hosts.
Checking host groups...
Checked 1 host groups.
Checking service groups...
Checked 0 service groups.
Checking contacts...
Checked 1 contacts.
Checking contact groups...
Checked 1 contact groups.
Checking service escalations...
Checked 0 service escalations.
Checking service dependencies...
Checked 0 service dependencies.
Checking host escalations...
Checked 0 host escalations.
Checking host dependencies...
Checked 0 host dependencies.
Checking commands...
Checked 24 commands.
Checking time periods...
Checked 5 time periods.
Checking for circular paths between hosts...
Checking for circular host and service dependencies...
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Things look okay - No serious problems were detected during the pre-flight check
[root@localhost nagios]#

[root@localhost nagios]# /etc/init.d/nagios start
Starting nagios: done.
[root@localhost nagios]# /etc/init.d/httpd start
Starting httpd: httpd: Could not reliably determine the server's fully qualified domain name, using
localhost.localdomain for ServerName
[ OK ]
[root@localhost nagios]#


Ahora aadimos un usuario para que accese a la interfaz de nagios

(IMPORTANTE: EL GuiN MEDIO es guin corto no largo. NO coje el comando si es guin largo.
Lo que pasa es que copi el comando desde el manual y no coje porque el guin es largo.)

Usuario nagiosadmin
password: admin (o nagiosadmin. No recuerdo, igual puede ser cualquiera)

[root@localhost nagios]# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin
New password:
Re-type new password:
Adding password for user nagiosadmin
[root@localhost nagios]#

Porsiaca reiniciamos los servicios nagios y httpd y ya podemos ingresar a la interface web con el
usuario que acabamos de aadir:



Instalacin de nagios plugins

Descomprimimos el paquete descargado y vamos dentro de la carpeta:

[root@localhost Downloads]# pwd
/root/Downloads
[root@localhost Downloads]# ls
Installing_Nagios_Core_From_Source(2).pdf nagios-3.4.3.tar.gz
Installing_Nagios_Core_From_Source.pdf nagios-plugins-1.4.16
nagios nagios-plugins-1.4.16.tar.gz
[root@localhost Downloads]# cd nagios-plugins-1.4.16
[root@localhost nagios-plugins-1.4.16]#

Ejecutar los siguiente comando (se demora un poco):

para instalar el plugin de nagios seguir estos pasos:

Instalar el Plugin de Nagios
[hostremoto]# cd /home/downloads
[hostremoto]# tar xvfz nagios-plugins-1.4.11.tar.gz
[hostremoto]# cd nagios-plugins-1.4.11
[hostremoto]# export LDFLAGS=-ldl
[hostremoto]# ./configure with-nagios-user=nagios with-nagios-group=nagios enable-redhat-pthread-
workaround
[hostremoto]# make
[hostremoto]# make install
[hostremoto]# chown nagios:nagios /usr/local/nagios
[hostremoto]# chown -R nagios:nagios /usr/local/nagios/libexec/

Fuente: http://www.nagios-do.org/?p=192





******************************************************************************************

Si no se instala hacerlo por paquetes rpm disponibles en:

(tambin buscar las dependencias)

http://rpm.pbone.net/index.php3/stat/4/idpl/18466829/dir/redhat_el_6/com/nagios-plugins-1.4.16-
1.el6.rf.i686.rpm.html

usando el comando

[root@localhost Downloads]# rpm -ivh nagios-plugins-1.4.16-1.el6.rf.i686.rpm

You might also like