Aloquevamos.com Blog, ocasionalmente…

15Mar/104

Nagios y Openfiler 2.3

Ya tengo OpenFiler 2.3 en "producción" y quería monitorizarlo con Nagios. Buscando un poco en google, me he encontrado éste post en el foro de Openfiler. Os "copiopego" por si deja de estar disponible:

conary update gcc  (a C-Compilter to compile the NRPE)
conary update glibc:devel
conary update openssl:devel

Add User
--------
useradd nagios
passwd nagios

INSTALL NRPE
------------
cd /usr/local/src/
wget http://downloads.sourceforge.net/nagios … .12.tar.gz
tar xzfv nrpe-2.12.tar.gz
cd nrpe-2.12
./configure
make all
make install-plugin
make install-daemon
make install-daemon-config
make install-xinetd

Edit /etc/xinetd.d/nrpe file and Change the value of ONLY_FROM to the IP-address of the Nagios server.
Edit the /etc/services file and add a line:  nrpe    5666/tcp    # NRPE
service xinetd restart
Test with: netstat -at | grep nrpe
Otherwise, open your IPTables Firewall: iptables -I RH-Firewall-1-INPUT -p tcp -m tcp --dport 5666 -j ACCEPT
service iptables save

INSTALL NAGIOS TOOLS
--------------------
cd /usr/local/src
wget http://downloads.sourceforge.net/nagios … g_mirror=0
tar xzfv nagios-plugins-1.4.13.tar.gz
cd nagios-plugins-1.4.13
./configure --with-nagios-user=nagios --with-nagios-group=nagios
make
make install

Saludos!

Posted by Chiru

Archivado en: linux, sistemas Comentar
Comentarios (4) Trackbacks (0)
  1. Oye Chiru que acaba de ver el Gabri que nos has linkado! Muchas gracias! Me ha hecho mucha ilusión! Y encima con comentario positivo, que majete, tendré que hacerte llegar un muffin o algo :)

  2. Hombre of course que positivo, y por que no habia positivisisisisiiiisimo :P

    (me apunto lo de la muffin :P )

  3. gracias por el post, anduvo todo perfecto, el unico cambio que tuve q hacer es el ‘configure’ de nrpe lo tuve q hacer con ‘–enable-command-args’ para q pueda pasar argumentos a los comandos. Gracias

  4. Pues no recuerdo esa opción. Se que hay una opción en el fichero de configuración donde puedes decirle si acepta o no parámetros, pero posiblemente, ésta no funcione si el binario no está preparado para ello.

    Me alegro que te haya servido!


Dejar un comentario

(required)

No trackbacks yet.