Home > OS >  Zabbix agent log an error
Zabbix agent log an error

Time:10-02

35050-20190801:160002.899 Zabbix Agent stopped. The Zabbix 3.0.28 (revision 0867 a35b15).
35475-20190801:160002.910 Starting Zabbix Agent [zabbix1] Zabbix 3.0.28 (revision 0867 a35b15).
35475-20190801:160002.910 * * * * Enabled the features * * * *
35475-20190801:160002.910 IPv6 support: YES
35475-20190801:160002.910 TLS support: YES
35475-20190801:160002.910 * * * * * * * * * * * * * * * * * * * * * * * * * *
35475-20190801:160002.910 using the configuration file:/etc/zabbix/zabbix_agentd conf
35475-20190801:160002.911 agent # 0 started [main process]
35476-20190801:160002.912 agent # 1 started [which]
35477-20190801:160002.913 agent # 2 started/listener # 1
35480-20190801:160002.915 agent # 5 started [active checks # 1]
35478-20190801:160002.919 agent # 3 started [listener # 2]
35479-20190801:160002.920 agent # 4 started [listener # 3]
35480-20190801:160002.922 always parse the list of active checks: always parse the as a valid JSON object: invalid object format, expected opening character '{' at:' ZBX_NOTSUPPORTED '
[root @ zabbix1 zabbix] #
[root @ zabbix1 zabbix] #
=======================================
Below is the configuration file:
# Default:
# Server=
Server=192.168.88.138
ListenPort=10050
ListenIP=192.168.88.138
# Example: ServerActive=127.0.0.1:20051, zabbix. Domain, [: : 1) : 30051, : : 1, [fc: : 1)
ServerActive=192.168.88.138:10050
The Hostname=zabbix1

CodePudding user response:

Server and ServerActive==address are zabbix server's IP address, are you here? Then the zabbix server - the default port is 10051, serverActive behind should be 10051

CodePudding user response:

14887-20190807:155310.780 the listener failed: zbx_tcp_listen () fatal error: unable to serve on any address [[127.0.0.1, 192.168.88.138] : 10051]
[root @ zabbix1 zabbix] #

[root @ zabbix1 zabbix] # more/etc/zabbix/zabbix_agentd conf
# This is a configuration file for Zabbix agent daemon (Unix)
# To get more information about Zabbix, visit http://www.zabbix.com

# # # # # # # # # # # # GENERAL PARAMETERS # # # # # # # # # # # # # # # # #

PidFile=/var/run/zabbix/zabbix_agentd pid
LogFile=/var/log/zabbix/zabbix_agentd log
LogFileSize=0
Server=192.168.88.138
ListenPort=10051
ListenIP=127.0.0.1, 192.168.88.138
# Example: ServerActive=127.0.0.1:20051, zabbix. Domain, [: : 1) : 30051, : : 1, [fc: : 1)
ServerActive=192.168.88.138:10051
The Hostname=zabbix1
===========================================
Still won't do

CodePudding user response:

refer to the second floor loricahndi response:
14887, 20190807:155310.780 the listener failed: zbx_tcp_listen () fatal error: unable to serve on any address [[127.0.0.1, 192.168.88.138] : 10051]
[root @ zabbix1 zabbix] #

[root @ zabbix1 zabbix] # more/etc/zabbix/zabbix_agentd conf
# This is a configuration file for Zabbix agent daemon (Unix)
# To get more information about Zabbix, visit http://www.zabbix.com

# # # # # # # # # # # # GENERAL PARAMETERS # # # # # # # # # # # # # # # # #

PidFile=/var/run/zabbix/zabbix_agentd pid
LogFile=/var/log/zabbix/zabbix_agentd log
LogFileSize=0
Server=192.168.88.138
ListenPort=10051
ListenIP=127.0.0.1, 192.168.88.138
# Example: ServerActive=127.0.0.1:20051, zabbix. Domain, [: : 1) : 30051, : : 1, [fc: : 1)
ServerActive=192.168.88.138:10051
The Hostname=zabbix1
===========================================
Still won't do


You don't change ListenPort=10051 this is the agent port is 10050, 10051 is the zabbix server port
  • Related