martes, 17 de mayo de 2011
Aun no he tenido posibilidad de probar a fondo este software de monitorización de redes, pero para empezar, concluiremos con la necesidad de:
Un Ubuntu (en mi caso, la guia encontrada, me ha ido genial)
Y la .iso del nagios (si no tiramos de wget) (nagios.org)
Para la instalación, podemos usar los pasos de:
Instala Nagios 3.2.3 en Ubuntu 7 o superior
Despues, una vez que tengamos apache corriendo nagios correctamente, y accesible,
tendremos que configurar los hosts, e instalar un agente en las máquinas Windows en las que deseemos monitorizar servicios y procesos.
Podemos seguir los pasos de:
Monitorizar Hosts Windows
Edit:
La instalación y puesta en marcha, ha funcionado a la primera.
Modificando nagios.cfg y windows.cfg he empezado a añadir hosts
que puedo ver desde la consola web de Nagios.
He instalado el nsclient, pero aun no he conseguido configurar Nagios
para que use check_nt con el password configurado
Edit 2:
Finalmente, en el cliente %PROGRAMFILES%/nsclient++
modifica nsc.ini
;# PASSWORD
; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.
password=PASS
;
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access
;allowed_hosts=127.0.0.1/32
;
;# USE THIS FILE
; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1
; the registry will be used instead.
use_file=1
allowed_hosts=192.168.1.45
password=PASS
y usa el mismo pass, en el archivo commands.cfg,
en la linea donde esta definido el check_nt:
# 'check_nt' command definition
define command {
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s mipass -v $ARG1$ $ARG2
}
Ya puedo ver si un servicio (el spooler en este caso) está ok, o no ;)
Un Ubuntu (en mi caso, la guia encontrada, me ha ido genial)
Y la .iso del nagios (si no tiramos de wget) (nagios.org)
Para la instalación, podemos usar los pasos de:
Instala Nagios 3.2.3 en Ubuntu 7 o superior
Despues, una vez que tengamos apache corriendo nagios correctamente, y accesible,
tendremos que configurar los hosts, e instalar un agente en las máquinas Windows en las que deseemos monitorizar servicios y procesos.
Podemos seguir los pasos de:
Monitorizar Hosts Windows
Edit:
La instalación y puesta en marcha, ha funcionado a la primera.
Modificando nagios.cfg y windows.cfg he empezado a añadir hosts
que puedo ver desde la consola web de Nagios.
He instalado el nsclient, pero aun no he conseguido configurar Nagios
para que use check_nt con el password configurado
Edit 2:
Finalmente, en el cliente %PROGRAMFILES%/nsclient++
modifica nsc.ini
;# PASSWORD
; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.
password=PASS
;
;# ALLOWED HOST ADDRESSES
; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.
; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).
; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access
;allowed_hosts=127.0.0.1/32
;
;# USE THIS FILE
; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1
; the registry will be used instead.
use_file=1
allowed_hosts=192.168.1.45
password=PASS
y usa el mismo pass, en el archivo commands.cfg,
en la linea donde esta definido el check_nt:
# 'check_nt' command definition
define command {
command_name check_nt
command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s mipass -v $ARG1$ $ARG2
}
Ya puedo ver si un servicio (el spooler en este caso) está ok, o no ;)
Suscribirse a:
Enviar comentarios (Atom)
0 comentarios:
Publicar un comentario