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

时间:2015-08-14 03:43:08

标签: 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

客户端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

**

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. 

enter image description here

请帮帮我!非常感谢!

enter image description here

enter image description here

enter image description here

[root@scidb601 ~]# service mysqld status
mysqld (pid 22917) is running...

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

2 个答案:

答案 0 :(得分:4)

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

此行告诉代理检查服务器是否有活动检查。

ServerActive=192.168.100.100:10051

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

Server=192.168.100.100

位于配置文件的顶部。

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

答案 1 :(得分:-1)

您是否尝试过升级mysql?

执行:

sudo mysql_upgrade -u [mysqlrootuser] -p

此问题http://kenwheeler.github.io/slick/可能有用。