Instalacion de Nagios

Embed Size (px)

DESCRIPTION

Manual para instalar y configurar nagios

Citation preview

Se requiere abrir la consola en modo root*********** Requisitos de Apache y librerias ***********root@XPSISSRVDEBST01:/home/xpsistemas# apt-get install build-essential apache2 php5-gd wget libgd2-xpm libgd2-xpm-dev*********** Acceso a Descargas de Nagios Core y Nagios Plugin ******root@XPSISSRVDEBST01:/home/xpsistemas# cd /tmproot@XPSISSRVDEBST01:/tmp# wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.5.0.tar.gzroot@XPSISSRVDEBST01:/tmp# wget http://sourceforge.net/projects/nagiosplug/files/nagiosplug/1.4.16/nagios-plugins-1.4.16.tar.gz********** Agregando el Usuario de nagios a linux ********root@XPSISSRVDEBST01:/tmp# useradd nagiosroot@XPSISSRVDEBST01:/tmp# groupadd nagcmdroot@XPSISSRVDEBST01:/tmp# usermod -a -G nagcmd nagios********** Descomprimiendo los archivos descargados de nagios core y nagios plugins ************root@XPSISSRVDEBST01:/tmp# tar zxvf nagios-3.5.0.tar.gzroot@XPSISSRVDEBST01:/tmp# tar zxvf nagios-plugins-1.4.16.tar.gz********* Iniciando la instalacion de Nagios *******root@XPSISSRVDEBST01:/tmp# cd nagiosroot@XPSISSRVDEBST01:/tmp/nagios# ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmailroot@XPSISSRVDEBST01:/tmp/nagios# make allroot@XPSISSRVDEBST01:/tmp/nagios# make-installroot@XPSISSRVDEBST01:/tmp/nagios# make-initroot@XPSISSRVDEBST01:/tmp/nagios# make-configroot@XPSISSRVDEBST01:/tmp/nagios# make-commandmoderoot@XPSISSRVDEBST01:/tmp/nagios# make-webconfroot@XPSISSRVDEBST01:/tmp/nagios# cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/root@XPSISSRVDEBST01:/tmp/nagios# chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlersroot@XPSISSRVDEBST01:/tmp/nagios# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfgroot@XPSISSRVDEBST01:/tmp/nagios# /etc/init.d/nagios start********* Creando el password de nagios *******root@XPSISSRVDEBST01:/tmp/nagios# htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin******** Instalando los plugins ***********root@XPSISSRVDEBST01:/tmp/nagios# cd /tmp/nagios-plugins-1.4.16root@XPSISSRVDEBST01:/tmp/nagios-plugins-1.4.16# ./configure --with-nagios-user=nagios --with-nagios-group=nagiosroot@XPSISSRVDEBST01:/tmp/nagios-plugins-1.4.16# make root@XPSISSRVDEBST01:/tmp/nagios-plugins-1.4.16# make installroot@XPSISSRVDEBST01:/tmp/nagios-plugins-1.4.16# ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios******* Reiniciando el servicio de apache *********root@XPSISSRVDEBST01:/tmp/nagios-plugins-1.4.16# /etc/init.d/apache2 restart