Aloquevamos.com Blog, ocasionalmente…

15Mar/104

Nagios y Openfiler 2.3

Posted by Chiru

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!

Archivado en: linux, sistemas 4 comentarios