Re: Fwd: OLÁ - DÚVIDA!

"..:: S.e.r.i.a.L ::.." <[email protected]>
Newsgroups gmane.network.nagios.user.brazil
Message-ID <[email protected]>
Boa tarde Thiago,

você precisa ter configurado o usuario que ira receber a notificação no
arquivo contactcs.cfg (siga o exemplo que existe dentro dele)
Depois vc cria um grupo de usuario que irão receber as notificações, dentro
de conectcgroups.cfg (siga o exemplo que existe dentro dele).
Depois, no services.cfg, especifique na string "contact_groups" aonde vc vai
apontar o nome do grupo que vc criou em contactgroups.cfg.

Exemplos:

contacts.cfg
define contact{
        contact_name                    admin
        alias                           Nagios Admin
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    u,c,r
        host_notification_options       d,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           [email protected]
        }

contactgroups.cfg
define contactgroup{
        contactgroup_name       admins
        alias                   Nagios Administrators
        members                 admin
        }

define service{
        use                             generic-service
        host_name                       localhost
        service_description             PING
        is_volatile                     0
        check_period                    24x7
        max_check_attempts              4
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  admins
        notification_options            u,c,r
        notification_interval           960
        notification_period             24x7
        check_command                   check_ping!100.0,20%!500.0,60%

Veja se ajuda.


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=/
> --
> [email protected] mailing list
> https://lists.sourceforge.net/lists/listinfo/nagios-users-br
> Wiki: http://nagios-br.sf.net/wiki
>



-- 
[.]´s
..:: S.e.r.i.a.L ::..
-------------------------------------------------------------------------
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=/
-- 
[email protected] mailing list
https://lists.sourceforge.net/lists/listinfo/nagios-users-br
Wiki: http://nagios-br.sf.net/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.