ruyterpena
(usa Debian)
Enviado em 01/12/2010 - 15:43h
pessoal, consegui add 3 host no meu nagios, só que o problema é que os 2 ultimos host add esta herdando informações do 1º host add, alguem pode me dar uma ajuda, segue abaixo a configuraçao do meu host:
################
# Hosts file- individual hosts and host groups
################
# Generic host definition template - This is NOT a real host, just a template!
define host{
name FOX
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
; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
register 0
}
# local host definition
define host{
use FOX
host_name fox-black
alias Maquina Pessoal
address 192.168.1.216
check_command check-host-alive
max_check_attempts 10
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
##############
# Host groups
##############
# Every host must belong to a host group
define hostgroup{
hostgroup_name maquina-pessoal
alias Maquina Pessoal
members fox-black
}
define host{
name generic-host
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
; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
register 0
}
# local host definition
define host{
use generic-host
host_name localhost
alias Nagios Server
address 127.0.0.1
check_command check-host-alive
max_check_attempts 10
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
##############
# Host groups
##############
# Every host must belong to a host group
define hostgroup{
hostgroup_name test
alias Test Servers
members localhost
}
define host{
name S2008
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
; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
register 0
}
# local host definition
define host{
use S2008
host_name server2008
alias Windows server
address 192.168.1.245
check_command check-host-alive
max_check_attempts 10
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options d,r
contact_groups admins
}
##############
# Host groups
##############
# Every host must belong to a host group
define hostgroup{
hostgroup_name Server-Data
alias Test Servers Data
members server2008
}