leitura

http://nagios.sourceforge.net/docs/3_0/notifications.html

Bom, isto tudo no 3.0.2, se você utiliza o nagios 2.x ai tem que ver na
documentação, mas não é muito diferente não :)

Abs[]

2008/8/27 Augusto Ferronato <[EMAIL PROTECTED]>

> Tem que ter um MTA na máquina instalado, ou usar um plugin que use
> autenticação externa.
>
> No meu caso, tem um MTA na máquina, defini no command.cfg
>
> define command{
>         *command_name    notify-host-by-email*
>         command_line    /usr/bin/printf "%b" "***** Nagios
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
> $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
> $LONGDATETIME$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert:
> $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
>         }
>
> Ai tem o contact.cfg
>
> define contact{
>         contact_name                    nagiosadmin             ; Short
> name of user
>         use                             criticost         ; Inherit default
> values from generic-contact template (defined above)
>         alias                           Administradores            ; Full
> name of user
>         host_notifications_enabled              1
>         service_notifications_enabled   1
>         service_notification_period     24x7
>         host_notification_period        24x7
>         service_notification_options    w,u,c,r
>         service_notification_commands   notify-service-by-email
>         host_notification_options       d,u,r
>        * host_notification_commands      notify-host-by-email*
>         email                           [EMAIL PROTECTED]  ;
>         }
>
>
> e no templates.cfg
>
> define contact{
>         name                            criticos        ; The name of this
> contact template
>         service_notification_period     24x7                    ; service
> notifications can be sent anytime
>         host_notification_period        24x7                    ; host
> notifications can be sent anytime
>         service_notification_options    c,r             ; send
> notifications for all service states, flapping events, and scheduled
> downtime events
>         host_notification_options       d               ; send
> notifications for all host states, flapping events, and scheduled downtime
> events
>         service_notification_commands   notify-service-by-email ; send
> service notifications via email
>        * host_notification_commands      notify-host-by-email *   ; send
> host notifications via email
>         register                        0                       ;
>         }
>
> Nesse caso ele tá me avisando somente do host, se quiser avisar do serviço,
> ai já é outra coisa, mas já vem configurado no Nagios, basta ativar o MTA :)
>
> Abs[]
>
>
>
> 2008/8/27 Thiago Braga <[EMAIL PROTECTED]>
>
> galera!
>> primeiramente uma boa tarde a todos!
>> Bom é a primeira vez que passo por aqui, venho por meio desta falar que
>> estou feliz em aparecer por aqui e já venho con dúvida hehe
>>
>>
>> bom, tenho o nagios implementado aqui na empresa, e fiquei com uma certa
>> dúvida:
>> Como faço pra colocá-lo pra enviar email de notificação?
>>
>> Abraços!
>>
>>
>> --
>> --
>> Atenciosamente,
>> Thiago Braga Ramos
>> Paróquia Santa Rita dos Impossíveis (Ramos)
>> EESA - Projeto KeKaKo
>> Tel: Residencia (021) 3527-0867
>> Celular (021) 8612-0574
>> Celular (021) 8866-7320
>> Trabalho: (021) 3860-7510 - Ramal 219
>>
>>
>>
>>
>>
>>
>> --
>> --
>> Atenciosamente,
>> Thiago Braga Ramos
>> Paróquia Santa Rita dos Impossíveis (Ramos)
>> EESA - Projeto KeKaKo
>> Tel: Residencia (021) 3527-0867
>> Celular (021) 8612-0574
>> Celular (021) 8866-7320
>> Trabalho: (021) 3860-7510 - Ramal 219
>> -------------------------------------------------------------------------
>> This SF.Net email is sponsored by the Moblin Your Move Developer's
>> challenge
>> Build the coolest Linux based applications with Moblin SDK & win great
>> prizes
>> Grand prize is a trip for two to an Open Source event anywhere in the
>> world
>> http://moblin-contest.org/redirect.php?banner_id=100&url=/
>> --
>> Nagios-users-br@lists.sourceforge.net mailing list
>> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
>> Wiki: http://nagios-br.sf.net/wiki
>>
>
>
>
> --
> ------------------------------
> "Segurança da Informação se faz com tecnologia, processos e pessoas, e a
> formação destas exige mais que uma seqüência de treinamentos. Porque você
> treina macacos. Pessoas,você educa."
>
> FreeBSD: The Freedom to Perform!
> http://www.spreadbsd.org/aff/40/1
>



-- 
------------------------------
"Segurança da Informação se faz com tecnologia, processos e pessoas, e a
formação destas exige mais que uma seqüência de treinamentos. Porque você
treina macacos. Pessoas,você educa."

FreeBSD: The Freedom to Perform!
http://www.spreadbsd.org/aff/40/1
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
-- 
Nagios-users-br@lists.sourceforge.net mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki

Responder a