El 15 de julio de 2009 17:12, Juan Andres Ramirez <jandresa...@gmail.com>escribió:
> 2009/7/15 Rolando Mota <barbud...@gmail.com>: > > El 15 de julio de 2009 16:55, Juan Andres Ramirez > > <jandresa...@gmail.com>escribió: > > > >> Hola jovenes: > >> Espero que mi pregunta no sea estúpida, pero estoy recien > >> empesando con nagios para ver su potencial y me tope con un drama en > >> la configuración y de verdad es una tontera, pero no he podido > >> resolverlo, y he buscado en google bastante, la respuesta siempre es > >> la misma. > >> > >> Tengo el archivo hosts.cfg: > >> > >> define host{ > >> host_name dominio1 > >> alias Servidor Dominio > >> address 192.168.100.95 > >> check_command check-host-alive > >> contact_groups gral-admins > >> max_check_attempts 10 > >> notifications_enabled 1 > >> event_handler_enabled 1 > >> flap_detection_enabled 1 > >> process_perf_data 1 > >> retain_status_information 1 > >> notification_interval 480 > >> notification_period 24x7 > >> notification_options d,u,r > >> retain_nonstatus_information 1 > >> register 0 > >> } > >> > >> > >> y el archivo hostgroups.cfg > >> > >> define hostgroup{ > >> hostgroup_name winservers > >> alias Windows Servers > >> members dominio1 > >> } > >> > >> define hostgroup{ > >> hostgroup_name webpages > >> alias Web Pages > >> } > >> > >> define hostgroup{ > >> hostgroup_name BD > >> alias Bases Datos > >> } > >> > >> al correr: nagios -v nagios.cfg > >> > >> Nagios 2.12 > >> Copyright (c) 1999-2007 Ethan Galstad (http://www.nagios.org) > >> Last Modified: 05-19-2008 > >> License: GPL > >> > >> Reading configuration data... > >> > >> Error: Could not find any host matching 'dominio1' > >> Error: Could not expand member hosts specified in hostgroup (config > >> file '/etc/nagios/hostgroups.cfg', starting on line 1) > >> > >> Según los manuales, es el nombre que le dí en el archivo hosts.cfg, > >> pero igual me marca el error a pesar de que es el mismo nombre. > >> Cualquier ayuda sera agradecida en mis oraciones XD, gracias. > >> > >> > > que tal si presionas a tecla [SPACE] entre la t y { , > > así descartamos sintaxis en la linea 1 , te parece ? > > > > Ya lo hice y el error es el mismo > Error: Could not find any host matching 'dominio1' > Error: Could not expand member hosts specified in hostgroup (config > file '/etc/nagios/hostgroups.cfg', starting on line 1) > > > > > > -- > > barbud...@gmail.com > > > > Al parecer has agregado un host a un hostgroup, pero ese host no ha sido definido, cerciorate que tengas la definiciones en los distintos archivos *.cfg , es medio mañoso el hombre. suerte. -- barbud...@gmail.com