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 netsnmp 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.1515.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.116.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.121.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 xorg-x11-proto-devel noarch zlib-devel i686 Updating for dependencies: freetype i686 httpd-tools i686 libgcc i686 libgomp i686 libpng i686 net-snmp-libs i686

0.10.2-11.el6 7.6-13.el6 1.2.3-27.el6 2.3.11-6.el6_2.9 2.2.15-15.el6.centos.1 4.4.6-4.el6 4.4.6-4.el6 2:1.2.49-1.el6_2 1:5.5-41.el6_3.1

base base base base base base base base updates

1.3 M 303 k 44 k 363 70 111 119 184 1.5 k k k k k 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 Installing Installing Installing Installing Installing Installing Updating Updating Updating Updating Installing Installing Installing Installing Installing Updating Updating Cleanup Cleanup Cleanup Cleanup Cleanup Cleanup Cleanup Cleanup Cleanup

: : : : : : : : : : : : : : : : : : : : : : : : : : :

glibc-headers-2.12-1.80.el6_3.6.i686 glibc-devel-2.12-1.80.el6_3.6.i686 libXpm-devel-3.5.8-2.el6.i686 gd-2.0.35-10.el6.i686 php-cli-5.3.3-14.el6_3.i686 ppl-0.10.2-11.el6.i686 cloog-ppl-0.15.7-1.2.el6.i686 1:net-snmp-libs-5.5-41.el6_3.1.i686 libgomp-4.4.6-4.el6.i686 httpd-tools-2.2.15-15.el6.centos.1.i686 httpd-2.2.15-15.el6.centos.1.i686 mpfr-2.4.1-6.el6.i686 gd-devel-2.0.35-10.el6.i686 cpp-4.4.6-4.el6.i686 gcc-4.4.6-4.el6.i686 php-5.3.3-14.el6_3.i686 1:net-snmp-5.5-41.el6_3.1.i686 1:make-3.81-20.el6.i686 1:net-snmp-5.5-37.el6.i686 httpd-2.2.15-15.el6.centos.i686 httpd-tools-2.2.15-15.el6.centos.i686 1:net-snmp-libs-5.5-37.el6.i686 libgcc-4.4.6-3.el6.i686 2:libpng-1.2.46-1.el6_1.i686 libgomp-4.4.6-3.el6.i686 freetype-2.3.11-6.el6_1.7.i686 1:make-3.81-19.el6.i686 gd.i686 0:2.0.35-10.el6 php.i686 0:5.3.3-14.el6_3

17/43 18/43 19/43 20/43 21/43 22/43 23/43 24/43 25/43 26/43 27/43 28/43 29/43 30/43 31/43 32/43 33/43 34/43 35/43 36/43 37/43 38/43 39/43 40/43 41/43 42/43 43/43

Installed: gcc.i686 0:4.4.6-4.el6 gd-devel.i686 0:2.0.35-10.el6

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 net-snmp.i686 1:5.5-41.el6_3.1 Dependency Updated: freetype.i686 0:2.3.11-6.el6_2.9 libgcc.i686 0:4.4.6-4.el6 libpng.i686 2:1.2.49-1.el6_2 Complete! [root@localhost Desktop]# make.i686 1:3.81-20.el6

httpd-tools.i686 0:2.2.15-15.el6.centos.1 libgomp.i686 0:4.4.6-4.el6 net-snmp-libs.i686 1:5.5-41.el6_3.1

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

Creamos un usuario y grupo


[root@localhost [root@localhost [root@localhost [root@localhost nagios]# useradd nagios nagios]# groupadd nagcmd nagios]# usermod -a -G nagcmd nagios 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 checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking

for a BSD-compatible install... /usr/bin/install -c build system type... i686-pc-linux-gnu host system type... i686-pc-linux-gnu for gcc... gcc for C compiler default output file name... a.out whether the C compiler works... yes whether we are cross compiling... no for suffix of executables... for suffix of object files... o whether we are using the GNU C compiler... yes whether gcc accepts -g... yes for gcc option to accept ANSI C... none needed whether make sets $(MAKE)... yes for strip... /usr/bin/strip how to run the C preprocessor... gcc -E for egrep... grep -E for ANSI C header files... yes whether time.h and sys/time.h may both be included... yes for sys/wait.h that is POSIX.1 compatible... yes for sys/types.h... yes for sys/stat.h... yes for stdlib.h... yes for string.h... yes for memory.h... yes for strings.h... yes for inttypes.h... yes for stdint.h... yes for unistd.h... yes arpa/inet.h usability... yes arpa/inet.h presence... yes for arpa/inet.h... yes ctype.h usability... yes ctype.h presence... yes for ctype.h... yes dirent.h usability... yes dirent.h presence... yes for dirent.h... yes errno.h usability... yes errno.h presence... yes for errno.h... yes fcntl.h usability... yes fcntl.h presence... yes for fcntl.h... yes getopt.h usability... yes getopt.h presence... yes for getopt.h... yes grp.h usability... yes grp.h presence... yes for grp.h... yes libgen.h usability... yes libgen.h presence... yes for libgen.h... yes limits.h usability... yes limits.h presence... yes for limits.h... yes math.h usability... yes math.h presence... yes for math.h... yes netdb.h usability... yes netdb.h presence... yes for netdb.h... yes netinet/in.h usability... yes netinet/in.h presence... yes for netinet/in.h... yes pthread.h usability... yes pthread.h presence... yes for pthread.h... yes pthreads.h usability... no pthreads.h presence... no for pthreads.h... no pwd.h usability... yes pwd.h presence... yes for pwd.h... yes regex.h usability... yes

checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking checking

regex.h presence... yes for regex.h... yes signal.h usability... yes signal.h presence... yes for signal.h... yes socket.h usability... no socket.h presence... no for socket.h... no stdarg.h usability... yes stdarg.h presence... yes for stdarg.h... yes for string.h... (cached) yes for strings.h... (cached) yes sys/mman.h usability... yes sys/mman.h presence... yes for sys/mman.h... yes for sys/types.h... (cached) yes sys/time.h usability... yes sys/time.h presence... yes for sys/time.h... yes sys/resource.h usability... yes sys/resource.h presence... yes for sys/resource.h... yes for sys/wait.h... (cached) yes sys/socket.h usability... yes sys/socket.h presence... yes for sys/socket.h... yes for sys/stat.h... (cached) yes sys/timeb.h usability... yes sys/timeb.h presence... yes for sys/timeb.h... yes sys/un.h usability... yes sys/un.h presence... yes for sys/un.h... yes sys/ipc.h usability... yes sys/ipc.h presence... yes for sys/ipc.h... yes sys/msg.h usability... yes sys/msg.h presence... yes for sys/msg.h... yes sys/poll.h usability... yes sys/poll.h presence... yes for sys/poll.h... yes syslog.h usability... yes syslog.h presence... yes for syslog.h... yes uio.h usability... no uio.h presence... no for uio.h... no for unistd.h... (cached) yes for an ANSI C-conforming const... yes whether struct tm is in sys/time.h or time.h... time.h for struct tm.tm_zone... yes for mode_t... yes for pid_t... yes for size_t... yes return type of signal handlers... void for uid_t in sys/types.h... yes type of array argument to getgroups... gid_t for va_copy... yes for vsnprintf... yes for snprintf... yes for asprintf... yes for vasprintf... yes for C99 vsnprintf... yes for library containing getservbyname... none required for library containing connect... none required for initgroups... yes for setenv... yes for strdup... yes for strstr... yes for strtoul... yes for unsetenv... yes 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 user/group: Command user/group: Embedded Perl: Event Broker: Install ${prefix}: Lock file: Check result directory: Init directory: Apache conf.d directory: Mail program: Host OS: Web Interface Options: -----------------------HTML URL: CGI URL: Traceroute (used by WAP):

nagios nagios,nagios nagios,nagcmd no yes /usr/local/nagios ${prefix}/var/nagios.lock ${prefix}/var/spool/checkresults /etc/rc.d/init.d /etc/httpd/conf.d /bin/mail linux-gnu

http://localhost/nagios/ http://localhost/nagios/cgi-bin/ /bin/traceroute If they look okay,

Review the options above for accuracy.

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/bin/install -c -m 775 -o nagios -g nagios -d /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/local/nagios/etc/nagios.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/bin/install -c -b -m 660 -o nagios -g nagios /usr/local/nagios/etc/resource.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/local/nagios/etc/objects/templates.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/local/nagios/etc/objects/commands.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/local/nagios/etc/objects/contacts.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/local/nagios/etc/objects/timeperiods.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/local/nagios/etc/objects/localhost.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/local/nagios/etc/objects/windows.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /usr/local/nagios/etc/objects/printer.cfg /usr/bin/install -c -b -m 664 -o nagios -g nagios /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 *** /usr/local/nagios/etc /usr/local/nagios/etc/objects sample-config/nagios.cfg sample-config/cgi.cfg /usr/local/nagios/etc/cgi.cfg sample-config/resource.cfg sample-config/template-object/templates.cfg sample-config/template-object/commands.cfg sample-config/template-object/contacts.cfg sample-config/template-object/timeperiods.cfg sample-config/template-object/localhost.cfg sample-config/template-object/windows.cfg sample-config/template-object/printer.cfg sample-config/template-object/switch.cfg

[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]# [hostremoto]# workaround [hostremoto]# [hostremoto]# [hostremoto]# [hostremoto]#

export LDFLAGS=-ldl ./configure with-nagios-user=nagios with-nagios-group=nagios enable-redhat-pthreadmake make install chown nagios:nagios /usr/local/nagios 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.161.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