Ejercicios Nagios.pdf
Vista previa de texto
http://pcN.ws.nsrc.org/nagios3/
- Cuando pregunta por un usuario y contrasena usa:
user: nagiosadmin
pass: <clave del taller>
Vas a ver que Nagios tiene una entrada por tu maquina (pcN.ws.nsrc.org
como "localhost" y por el enlace del puerto (gateway) de nuestra red
del taller.
3. REVISAR LOS ARCHIVOS DE CONFIGURACION
$ cd /etc/nagios3/
# ls -l
-rw-r--r--rw-r--r--rw-r--r-drwxr-xr-x
-rw-r--r--rw-r--r--rw-r----drwxr-xr-x
1
1
1
2
1
1
1
2
root
root
root
root
root
root
root
root
root
1882 2008-12-18 13:42 apache2.conf
root
10524 2008-12-18 13:44 cgi.cfg
root
2429 2008-12-18 13:44 commands.cfg
root
4096 2009-02-14 12:33 conf.d
root
26 2009-02-14 12:36 htpasswd.users
root
42539 2008-12-18 13:44 nagios.cfg
nagios 1293 2008-12-18 13:42 resource.cfg
root
4096 2009-02-14 12:32 stylesheets
$ ls -l conf.d/
-rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--rw-r--r--
1
1
1
1
1
1
1
1
1
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
root
1695
418
1152
1803
210
976
2167
1005
1609
2008-12-18
2008-12-18
2008-12-18
2008-12-18
2009-02-14
2008-12-18
2008-12-18
2008-12-18
2008-12-18
13:42
13:42
13:42
13:42
12:33
13:42
13:42
13:42
13:42
contacts_nagios2.cfg
extinfo_nagios2.cfg
generic-host_nagios2.cfg
generic-service_nagios2.cfg
host-gateway_nagios3.cfg
hostgroups_nagios2.cfg
localhost_nagios2.cfg
services_nagios2.cfg
timeperiods_nagios2.cfg
Archivos con un "2" en su nombre no han cambiado desde version 2 de Nagios.
El archivo host-gateway_nagios3.cfg fue cambiado entre versiones, asi tiene
un nombre nuevo.
4. REVISA EL ARCHIVO DE CONFIGURACION POR EL GATEWAY DEL CURSO
$ cd /etc/nagios3/conf.d/
$ cat host-gateway_nagios3.cfg
Vas a ver algo como:
# a host definition for the gateway of the default route
define host {
host_name
gateway