最近配置了Nagios监控,检查配置文件都没问题,但是一直有这个个警告:Host 'linux' has no default contacts or contactgroups defined!
以下是相关配置文件
contacts.cfg
define contact{
contact_name wuen ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios wuen ; Full name of user
email nagios@localhost ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
define contactgroup{
contactgroup_name adminstrator
alias Nagios Administrator
members wuen
}
services.cfg
define service {
host_name redhat6.6-linux
service_description check-host-alive
check_period 24x7
max_check_attempts 4
check_interval 3
retry_interval 2
contact_groups adminstrator
notification_interval 10
notification_period 24x7
notification_options w,u,c,r
check_command check-host-alive ;检查主机是否存活
}
求大神们帮忙看看那里出问题了。