【发布时间】:2016-04-20 23:15:12
【问题描述】:
我刚刚在一个新的 CentOS 7 服务器上设置了 Check_MK(Nagios 和 OMD 也是如此),我很确定一切设置都很好。我通过 OMD 创建了一个新的 check_mk “站点”(称为 staging)。我登录到另一台服务器并安装了 check_mk_agent,然后我转到 staging 站点并添加了主机,并选择了 Check_MK Agent。当我点击 Save & Go To Services 时,我能够看到通过 Check_MK 代理检查的所有内容,因此看起来设置得很好。
但是,当我单击 **Views 菜单下的 All Hosts* 项时,我看不到主机。当我尝试清点我正在监视的主机时,我收到一条错误消息,说它与任何主机都不匹配..
# cmk -I silo-stg-a01
Hostname or tag specification 'silo-stg-a01' does not match any host.
# cmk -I silo-stg-a01.company.com
Hostname or tag specification 'silo-stg-a01.company.com' does not match any host.
# cmk -I 192.168.1.34
Hostname or tag specification '192.168.1.34' does not match any host.
但是,我可以很好地查看原始信息
# check_mk -d 192.168.1.34 | head
<<<check_mk>>>
Version: 1.2.6p16
AgentOS: linux
AgentDirectory: /etc/check-mk-agent
DataDirectory: /var/lib/check_mk_agent
SpoolDirectory: /var/lib/check_mk_agent/spool
PluginsDirectory: /usr/share/check-mk-agent/plugins
LocalDirectory: /usr/share/check-mk-agent/local
OnlyFrom:
<<<df>>>
谁能告诉我我做错了什么?看起来我可能错过了一步,但不确定在哪里。
更新
我刚刚注意到我必须审查并接受更改,一旦我这样做了,我就可以在 All Hosts 视图下看到服务器,但我仍然无法通过 清点它>cmk..
【问题讨论】:
标签: monitoring nagios centos7 check-mk