服务器 [192.168.100.100:10051] 上没有主动检查:找不到主机 [scidb601]

Che*_*rry 0 zabbix

服务器 zabbix_agentd.conf

服务器=127.0.0.1,192.168.100.100

### Option: ListenPort
#   Agent will listen on this port for connections from the server.
#
# Mandatory: no
# Range: 1024-32767
# Default:
# ListenPort=10050


### Option: ListenIP
#   List of comma delimited IP addresses that the agent should listen on.
#   First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
#
# Mandatory: no
# Default:
# ListenIP=0.0.0.0

### Option: StartAgents
#   Number of pre-forked instances of zabbix_agentd that process passive checks.
#   If set to 0, disables passive checks and the agent will not listen on any TCP port.
#
# Mandatory: no
# Range: 0-100
# Default:
 StartAgents=8

##### Active checks related

### Option: ServerActive
#   List of comma delimited IP:port (or hostname:port) pairs of Zabbix servers for active checks.
#   If port is not specified, default port is used.
#   IPv6 addresses must be enclosed in square brackets if port for that host is specified.
#   If port is not specified, square brackets for IPv6 addresses are optional.
#   If this parameter is not specified, active checks are disabled.
#   Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
#
# Mandatory: no
# Default:
# ServerActive=

ServerActive=192.168.100.100:10051

### Option: Hostname
#   Unique, case sensitive hostname.
#   Required for active checks and must match hostname as configured on the server.
#   Value is acquired from HostnameItem if undefined.
#
# Mandatory: no
# Default:
# Hostname=

Hostname=scidb601
Run Code Online (Sandbox Code Playgroud)

客户端 zabbix_agentd.conf

        Server=192.168.100.100
        ### Option: ListenPort
        #   Agent will listen on this port for connections from the server.
        #
        # Mandatory: no
        # Range: 1024-32767
        # Default:
        # ListenPort=10050
        ### Option: ListenIP
        #   List of comma delimited IP addresses that the agent should listen on.
        #   First IP address is sent to Zabbix server if connecting to it to retrieve list of active checks.
        #
        # Mandatory: no
        # Default:
        # ListenIP=0.0.0.0
        ### Option: StartAgents
        #   Number of pre-forked instances of zabbix_agentd that process passive checks.
        #   If set to 0, disables passive checks and the agent will not listen on any TCP port.
        #
        # Mandatory: no
        # Range: 0-100
        # Default:
        # StartAgents=3
        ##### Active checks related
        ### Option: ServerActive
        #   List of comma delimited IP:port (or hostname:port) pairs of Zabbix servers for active checks.
        #   If port is not specified, default port is used.
        #   IPv6 addresses must be enclosed in square brackets if port for that host is specified.
        #   If port is not specified, square brackets for IPv6 addresses are optional.
        #   If this parameter is not specified, active checks are disabled.
        #   Example: ServerActive=127.0.0.1:20051,zabbix.domain,[::1]:30051,::1,[12fc::1]
        #
        # Mandatory: no
        # Default:
        # ServerActive=
        ServerActive=192.168.100.100
        ### Option: Hostname
        #   Unique, case sensitive hostname.
        #   Required for active checks and must match hostname as configured on the server.
        #   Value is acquired from HostnameItem if undefined.
        #
        # Mandatory: no
        # Default:
        # Hostname=
        Hostname=scidb601

**
Run Code Online (Sandbox Code Playgroud)

zabbix_server.log 显示:无法将活动检查列表发送到 [192.168.100.96]:找不到主机 [scidb601]

And in mysql database, there is a host="scidb601" and user="zabbix".


I can not visit the page which adds a host. 
Run Code Online (Sandbox Code Playgroud)

在此处输入图片说明

请帮我!非常感谢!

在此处输入图片说明

在此处输入图片说明

在此处输入图片说明

[root@scidb601 ~]# service mysqld status
mysqld (pid 22917) is running...
Run Code Online (Sandbox Code Playgroud)

Mysql 错误日志:

150814 20:46:41 [ERROR] Native table 'performance_schema'.'file_summary_by_event_name' has the wrong structure
150814 20:46:41 [ERROR] Native table 'performance_schema'.'file_summary_by_instance' has the wrong structure
150814 20:46:41 [ERROR] Native table 'performance_schema'.'mutex_instances' has the wrong structure
150814 20:46:41 [ERROR] Native table 'performance_schema'.'rwlock_instances' has the wrong structure
150814 20:46:41 [ERROR] Native table 'performance_schema'.'cond_instances' has the wrong structure
150814 20:46:41 [ERROR] Native table 'performance_schema'.'file_instances' has the wrong structure
150814 20:46:41 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.5.44-cll-lve'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Atomicorp
Run Code Online (Sandbox Code Playgroud)

小智 5

问题出在您的代理配置文件中。或者在系统的zabbix监控配置文件中。

此行告诉代理检查服务器的活动检查。

ServerActive=192.168.100.100:10051
Run Code Online (Sandbox Code Playgroud)

如果监控配置文件不包含任何内容,您将收到您看到的系统错误消息。如果您只进行传统的被动检查,则需要这条线。

Server=192.168.100.100
Run Code Online (Sandbox Code Playgroud)

这是在您的配置文件的顶部。

只需注释掉 ServerActive 行,您的问题就会得到解决。