Re: Nagios3 no envia notificacions de hosts
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 :)
Reply to: