[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Nagios3 no envia notificacions de hosts





--- El lun 11-may-09, Martí Cardús <marti.cardus@ilimit.net> escribió:

> De:: Martí Cardús <marti.cardus@ilimit.net>
> Asunto: Re: Nagios3 no envia notificacions de hosts
> A: "Michel Blankleder" <michel.blankleder@gmail.com>
> Cc: "Debian User Spanish" <debian-user-spanish@lists.debian.org>
> Fecha: lunes 11 de mayo de 2009, 9:38
> #yiv598045685 p
> {margin:0;}
> ----- "Michel Blankleder"
> <michel.blankleder@gmail.com> escribió:
> 
> > 2009/5/11 Martí Cardús
> <marti.cardus@ilimit.net>:
> > >
> > > ----- "Michel Blankleder"
> <michel.blankleder@gmail.com> escribió:
> > >> 2009/5/11 Martí Cardús
> <marti.cardus@ilimit.net>:
> > >> >
> > >> > ----- "Marc Aymerich"
> <glicerinu@gmail.com> escribió:
> > >> >> 2009/5/11 Martí Cardús
> <marti.cardus@ilimit.net>:
> > >> >> >
> > >> >> > ----- "Adrian
> Chapela" <achapela.rexistros@gmail.com>
> escribió:
> > >> >> >> Martí Cardús escribió:
> > >> >> >> > Hola lista!
> > >> >> >> >
> > >> >> >> > Tengo un problema
> ciertamente curioso, instalé nagios3 bajo Debian
> > >> >> >> > Lenny, y funciona casi
> a la perfeccion excepto un par de cosas, la
> > >> >> >> > primera es que no
> manda notificacions de cuando un host se
> > >> >> >> > cae/revive,
> > >> >> >> > en el log aparece como
> se cae y rearranca la maquina, pero este no
> > >> >> >> > manda ninguna
> notificación. La configuración es correcta, pues
> > >> >> >> > tengo
> > >> >> >> > activadas las
> notificaciones, pero hace caso omiso, a alguien le
> > >> >> >> > ha
> > >> >> >> > pasado algo parecido?
> > >> >> >> >
> > >> >> >> > El segundo problemilla
> que tengo, es que a veces manda una
> > >> >> >> > notificacion de un
> servicio (ya sea critical o warning) pero luego
> > >> >> >> > no
> > >> >> >> > me manda la
> notificacion de OK de nuevo....
> > >> >> >> >
> > >> >> >> > No entiendo que puede
> estar pasando, sugerencias?
> > >> >> >> >
> > >> >> >> > Gracias a todos!
> > >> >> >> Eso depende de como definas
> los host y los servicios y luego cómo
> > >> >> >> definas los usuarios que
> reciben las alertas. Es mejor que pongas la
> > >> >> >> configuración de alguno de
> esos host y services que te fallan.
> > >> >> >>
> > >> >> >>
> > >> >> >> --
> > >> >> >> To UNSUBSCRIBE, email to
> > >> >> >>
> debian-user-spanish-REQUEST@lists.debian.org
> > >> >> >> with a subject of
> "unsubscribe". Trouble? Contact
> > >> >> >>
> listmaster@lists.debian.org
> > >> >> >>
> > >> >> >>
> > >> >> >
> > >> >> > Hola,
> > >> >> >
> > >> >> > Os paso una definicion de host,
> servicio y contanto
> > >> >> >
> > >> >> > Definicion de hosts
> > >> >> > define host {
> > >> >> >
>        
> name                           
> generic-host
> > >> >> >
>        
> process_perf_data              
> 1
> > >> >> >
>        
> retain_status_information      
> 1
> > >> >> >
>        
> flap_detection_enabled         
> 1
> > >> >> >
>        
> retain_nonstatus_information    1
> > >> >> >
>        
> active_checks_enabled          
> 1
> > >> >> >
>        
> passive_checks_enabled         
> 1
> > >> >> >
>        
> check_period                   
> 24x7
> > >> >> >
>        
> obsess_over_host               
> 1
> > >> >> >
>        
> check_freshness                
> 0
> > >> >> >
>        
> check_command                  
> check-host-alive
> > >> >> >
>        
> max_check_attempts             
> 1
> > >> >> >
>        
> check_interval                 
> 1
> > >> >> >
>        
> event_handler_enabled          
> 1
> > >> >> >
>        
> notifications_enabled          
> 1
> > >> >> >
>        
> notification_interval          
> 120
> > >> >> >
>        
> notification_period            
> 24x7
> > >> >> >
>        
> notification_options           
> d,u,r
> > >> >> >
>        
> register                       
> 0
> > >> >> > }
> > >> >> > define host {
> > >> >> >
>        
> host_name                      
> host1
> > >> >> >
>        
> alias                          
> host
> > >> >> >
>        
> address                        
> 192.168.10.1
> > >> >> >
>        
> use                            
> generic-host
> > >> >> > }
> > >> >> >
> > >> >> > Definicion de servicio
> > >> >> > define service {
> > >> >> >
>        
> name                           
> generic-service
> > >> >> >
>        
> is_volatile                    
> 0
> > >> >> >
>        
> check_period                   
> 24x7
> > >> >> >
>        
> max_check_attempts             
> 4
> > >> >> >
>        
> normal_check_interval          
> 5
> > >> >> >
>        
> retry_check_interval           
> 1
> > >> >> >
>        
> active_checks_enabled          
> 1
> > >> >> >
>        
> passive_checks_enabled         
> 1
> > >> >> >
>        
> parallelize_check              
> 1
> > >> >> >
>        
> obsess_over_service            
> 1
> > >> >> >
>        
> check_freshness                
> 0
> > >> >> >
>        
> notifications_enabled          
> 1
> > >> >> >
>        
> notification_interval          
> 0
> > >> >> >
>        
> notification_period            
> 24x7
> > >> >> >
>        
> notification_options           
> w,u,c,r
> > >> >> >
>        
> event_handler_enabled          
> 1
> > >> >> >
>        
> flap_detection_enabled         
> 1
> > >> >> >
>        
> process_perf_data              
> 1
> > >> >> >
>        
> retain_status_information      
> 1
> > >> >> >
>        
> retain_nonstatus_information    1
> > >> >> >
>        
> contact_groups                 
> admins
> > >> >> >
>        
> register                       
> 0
> > >> >> > }
> > >> >> > define service {
> > >> >> >
>        
> service_description            
> PING
> > >> >> >
>        
> use                            
> generic-service
> > >> >> >
>        
> host_name                      
> host1
> > >> >> >
>        
> check_command                  
> check-host-alive
> > >> >> > }
> > >> >> >
> > >> >> > Defnicion de contactos
> > >> >> >
> > >> >> > define contact {
> > >> >> >
>        
> name                           
> tecnic
> > >> >> >
>        
> host_notification_period       
> 24x7
> > >> >> >
>        
> service_notification_period     24x7
> > >> >> >
>        
> host_notification_options      
> d,u,r
> > >> >> >
>        
> service_notification_options    u,c,w,r
> > >> >> >
>        
> host_notification_commands     
> host-notify-by-email
> > >> >> >
>        
> service_notification_commands   notify-by-email
> > >> >> >
>        
> register                       
> 0
> > >> >> > }
> > >> >> > define contact {
> > >> >> >
>        
> contact_name                   
> marti
> > >> >> >
>        
> use                            
> tecnic
> > >> >> >
>        
> alias                          
> Marti Cardus
> > >> >> >
>         email
> > >> >> >
> marti.cardus(BORRAME)@(BORRAME)ilimit.net
> > >> >> >
>        
> host_notification_commands     
> notify-by-email
> > >> >> > }
> > >> >> >
> > >> >> > Supongo que con esto valdra.
> > >> >> >
> > >> >> > Gracias
> > >> >>
> > >> >>
> > >> >> Revisa el contact-group del
> generic-service :)
> > >> >>
> > >> >
> > >> > Hola Marc,
> > >> >
> > >> > Gracias por la advertencio, pero el
> contactgroup ya esta bien, os paso
> > >> > la
> > >> > definicion:
> > >> >
> > >> > define contactgroup {
> > >> >
>        
> contactgroup_name              
> admins
> > >> >
>        
> alias                          
> Administradors
> > >> >
>        
> members                     
> marti
> > >> > }
> > >> >
> > >> > Como he dicho en el primer correo,
> aparentamente la configuracion esta
> > >> > toda
> > >> > correcta, el problema es que no manda
> ninguna de las notificaciones de
> > >> > host,
> > >> > y a veces no manda algunas de las
> recuperaciones de servicios.
> > >> >
> > >> > Saludos
> > >> >
> > >>
> > >> Si tenes un chequeo a un router que esta por
> delante del host que
> > >> chequeas, y esta caido. El que esta por
> delante bloquea los demas
> > >> chequeos.
> > >> Saludos
> > >> Michel
> > >>
> > >> Buenas de nuevo, ¿revisaste los logs del
> servidor de correo?
> > >>
> > >> saludos.
> > >
> > > Buenas de nuevo lista,
> > >
> > > Michel, eso que dices ya lo tengo asumido, el
> tema, es que SOLO se cae un
> > > host, y no me llega ninguna notificacion de ello,
> tampoco de servicios, pero
> > > eso es normal, pues el host esta caido entonces
> no llegan notificaciones de
> > > servicio, el tema es que no me manda la del host
> y es un problema muy
> > > grande.
> > >
> > > Marc, he revisado todos los logs, en el de correo
> no hay nada, en el de
> > > nagios veo como el host esta caido, pero este no
> manda correos.
> > >
> > > Saludos
> > >
> > 
> > En la definicion del host te falta el contact group.
> > Saludos
> > Michel
> > 
> 
> Hola Michel,
> 
> Parece que tenias razon, ahora si me ha mandado las
> notificaciones, pero la manda "mal", me llega esto
> al correo:
> Service: $
> Host: host-test
> State: $ for $
> Address: XXX.XXX.XXX.XXX
> 
> Saludos
> 

 Checa la definicion de  notify-by-email.


Saludos,

Marcela Alegria





      ¡Obtén la mejor experiencia en la web! Descarga gratis el nuevo Internet Explorer 8. http://downloads.yahoo.com/ieak8/?l=mx


Reply to: