Re: [Nagios-users-br] Nagios-users-br Digest, Vol 14, Issue 20
Nagios network monitoring software is enterprise server monitoring
Brought to you by:
egalstad,
sawolf-nagios
From: Eduardo R. T. <ete...@ai...> - 2007-08-23 21:01:03
|
Boa tarde pessoal, Estou algum tempo mexendo com nagios, e resolvi participar da lista. *Passo 1: Criar um contato:* ####################################### define contact{ contact_name alerta-admin alias Nagios Admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email alerta-admin@localhost } ####################################### *Passo 2: Vincular ele a um grupo* ####################################### define contactgroup{ contactgroup_name admins alias Nagios Administrators members alerta-admin } ####################################### *Passo 3: Vincular o host template a esse grupo de contato, para que voce receba e-mail em caso de problema nos hosts que usam esse template.* ##################################################################### define host{ name linux-server ; The name of this host template use generic-host ; This template inherits other values from the generic-host template check_period 24x7 ; By default, Linux hosts are checked round the clock max_check_attempts 10 ; Check each Linux host 10 times (max) check_command check-host-alive ; Default command to check Linux hosts notification_period workhours ; Linux admins hate to be woken up, so we only notify during the day ; Note that the notification_period variable is being overridden from ; the value that is inherited from the generic-host template! notification_interval 120 ; Resend notification every 2 hours notification_options d,u,r ; Only send notifications for specific host states contact_groups admins ; Notifications get sent to the admins by default register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } ####################################################################### *Passo 4: Vincular o service template a esse grupo de contato, para que voce receba e-mail em caso de problema nos servicos que usam esse template.* ####################################################################### define service{ name local-service ; The name of this service template use generic-service ; Inherit default values from the generic-service definition check_period 24x7 ; The service can be checked at any time of the day max_check_attempts 4 ; Re-check the service up to 4 times in order to determine its final (hard) state normal_check_interval 3 ; Check the service every 5 minutes under normal conditions retry_check_interval 1 ; Re-check the service every minute until a hard state can be determined contact_groups admins ; Notifications get sent out to everyone in the 'admins' group notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events notification_interval 60 ; Re-notify about service problems every hour notification_period 24x7 ; Notifications can be sent out at any time register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } ##################################################################### Atenciosamente, Eduardo Ribeiro Terzella. nag...@li... wrote: > Send Nagios-users-br mailing list submissions to > nag...@li... > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.sourceforge.net/lists/listinfo/nagios-users-br > or, via email, send a message with subject or body 'help' to > nag...@li... > > You can reach the person managing the list at > nag...@li... > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Nagios-users-br digest..." > > > Today's Topics: > > 1. E-mail (Jose Augusto) > 2. Nagios Web Front-End (Caio Conrado de Carvalho) > 3. Re: Nagios Web Front-End (Shine) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 22 Aug 2007 17:22:32 -0300 > From: "Jose Augusto" <aug...@gm...> > Subject: [Nagios-users-br] E-mail > To: "Unofficial Brazilian (Portuguese) Nagios Users List" > <nag...@li...> > Message-ID: > <507...@ma...> > Content-Type: text/plain; charset=ISO-8859-1 > > Olha eu de novo, heheheeh!! > > Galera, meu nagios n?o t? enviando e-mail? Tem que definir aonde? no > services? no contacgroups? no contacts? > o meu contacts.cfg > > define contact { > contact_name augusto > alias Suporte a Desenvolvimento > host_notification_period 24x7 > service_notification_period 24x7 > host_notification_options d,u,r > service_notification_options w,u,c,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email jos...@em... > > } > > Tem que definir aonde mais? > Eu tenho o postfix rodando na m?quina do Nagios (porque o CACIC necessita > de um server de e-mail hehe) fiz algo de errado? > > Abra?os > > > |