解决方法
要添加主机,必须先定义它,例如
linux.cfg:
define host { use linux-server host_name s80 address x.x.x.x check_command check-icmp contact_groups admin }
(对要监视的所有服务执行相同操作)
将此文件的完整路径插入icinga.cfg:
cfg_file=/usr/local/icinga/etc/hosts/linux.cfg
验证您的配置:
# /usr/local/icinga/bin/icinga -v /usr/local/icinga/etc/icinga.cfg
并重新启动Icinga:
# /etc/init.d/icinga reload