Nagios 报错 specified in host definition could not be not found

happyxlh 2012-08-16 05:13:49
一 我在nagios.cfg 里添了一条

cfg_file=/www/nagios/etc/objects/test.cfg


我test.cfg只写了
__________________________________________
define host{
use test
host_name testname
alias testname
address xxx.xxx.xxx.xxx //本机的ip地址
}


define service{
use test
host_name testname
service_description CPU Load
check_command check_nrpe!check_cpu
}
__________________________________________
在hosts.cfg中加了
define host {
host_name test
alias test
address 192.168.1.100
contact_groups sagroup //多个联系组用逗号分隔,数据来源于contactgroups.cfg
check_command check-host-alive
max_check_attempts 5
notification_interval 10 //值可调,大小什么值合适需自己测定
notification_period 24x7
notification_options d,u,r
}
然后检查就报错了。请问还有什么地方要配置啊
...全文
148 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
yaoze85106 2012-09-19
  • 打赏
  • 举报
回复
在template里建立一个test模板
happyxlh 2012-08-16
  • 打赏
  • 举报
回复
有没有人会啊?

18,773

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 专题技术讨论区
社区管理员
  • 专题技术讨论区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧