Amigo segue abaixo as 5 definições que deve ter nos seus arquivos, voce deve
definir um contact, que é ligado ao contactgroup e ai sim vc vai utilizar
eles nos seus hosts e services.
define contact{
contact_namenagiosadmin ; The name of
this contact template
alias Nagios Admin
host_notifications_enabled 1
service_notifications_enabled 1
service_notification_period 24x7; service
notifications can be sent anytime
host_notification_period24x7; host
notifications can be sent anytime
service_notification_optionsw,r,f,s ; send
notifications for all service states, flapping events, and scheduled
downtime events
host_notification_options d,r,f,s ; 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
email [EMAIL PROTECTED]
}
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
define host{
use generic-svr; Name of host
template to use
host_name localhost
alias localhost
address 127.0.0.1
contact_groups admins
check_command check-host-alive
}
define hostgroup{
hostgroup_name Servers ; The name of the hostgroup
alias Servidores Tmais ; Long name of the group
members localhost
)
define service{
use servidores ; Name of service
template to use
host_name localhost
service_description PING
check_command check_ping!100.0,20%!500.0,60%
}
Flww
Caio Conrado de Carvalho
Analista de Telecomunicações
RD - Technology Group
TMais S.A.
Tel: +55 11 2626-1080 r. 1116
www.tmais.com.br
Leading VoIP Revolution
-Mensagem original-
De: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Em nome de Jose
Augusto
Enviada em: segunda-feira, 20 de agosto de 2007 11:05
Para: Unofficial Brazilian (Portuguese) Nagios Users List
Assunto: [Nagios-users-br] Ajuda :(
Caraca, to pensando em desistir do Nagios, hehehe, o bicho num quer
funcionar de jeito nenhum :( só falta isso para resolver:
Error: Contact group 'administrador' specified in service 'NT_DISK_C' for
host 'bsbsup0007' is not defined anywhere!
Checked 6 services.
Checking hosts...
Error: Contact group 'administrador' specified in host 'bsbsup0007' is not
defined anywhere!
e quando eu vou no services.cfg:
define service{
name local-service
name generic-service
active_checks_enabled 1
passive_checks_enabled 1
parallelize_check 1
obsess_over_service 1
check_freshness 0
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
is_volatile 0
check_period 24x7
max_check_attempts 2
normal_check_interval 5
retry_check_interval 1
contact_groups administrador
notification_options w,u,c,r
notification_interval 60
notification_period 24x7
register 0
}
define service{
use generic-service
host_name bsbsup0007
service_description NT_DISK_C
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups administrador
notification_interval 240
notification_period 24x7
notification_options c,r
check_command nt_check_disk_c
}
E no hosts.cfg:
define host{
event_handler_enabled 1
flap_detection_enabled 1
max_check_attempts 5
name generic-host
notification_interval 20
notification_options d,u,r
notification_period 24x7
notifications_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
contact_groups administrador
register 0
}
define host{
name windows-server
use generic-host
address 10.10.30.15
contact_groups administrador
alias maquina_augusto
check_command nt_check_disk_c
host_name bsbsup0007
}
no hostgroup.cfg
Define hostgroup{
hostgroup_name administrador
alias adminitradores
members bsbsup0007
}
E o que está faltando? onde mais eu devo definir o contact_groups???
Abs[]
--
--
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.
Se a gente se lança sem vigor, sete de dez ações tomadas não dão certo. É
extremamente difícil tomar decisões num estado de