2015-08-14 1 views
0

на сервер zabbix_agentd.confотсутствуют активные проверки на сервере [192.168.100.100:10051]: хост [scidb601] не найден

Server = 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 

** 

The 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

[[email protected] ~]# 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

Добавил (а) хобби в zabbix? – StephenKing

+0

Возможно, этот вопрос релевантен: http://serverfault.com/questions/711048/zabbix-cannot-send-list-of-active-checks/. – asaveljevs

+0

mysql> использовать mysql; Изменена база данных mysql> выберите хост, пользователь из пользователя; + ----------- + -------- + | хост | пользователь | + ----------- + -------- + | 127.0.0.1 | корень | | localhost | корень | | localhost | zabbix | | scidb601 | zabbix | + ----------- + -------- + 4 строки в наборе (0.00 сек) В базе данных mysql я могу найти хост = «scidb601», а пользователь = "Zabbix". – Cherry

ответ

0

Вы пробовали модернизации MySQL?

Execute:

sudo mysql_upgrade -u [mysqlrootuser] -p 

Этот вопрос here может быть полезным.

2

Проблема в файле конфигурации вашего агента. Или в профиле мониторинга zabbix для системы.

Эта строка сообщает агенту проверить сервер на наличие активных проверок.

ServerActive=192.168.100.100:10051 

Если в профиле мониторинга не указаны данные, вы получите сообщение об ошибке, которое вы видите для системы. Вы хотите эту строку вместо этого, если вы делаете только традиционные пассивные проверки.

Server=192.168.100.100 

, который находится в верхней части конфигурационного файла.

Просто закомментируйте строку ServerActive и ваши проблемы будут исправлены.

 Смежные вопросы

  • Нет связанных вопросов^_^