Zabbix server not starting listener failed: zbx_tcp_listen() fatal error: unable to serve on any address [[-]:10051]
Error in logs
listener failed: zbx_tcp_listen() fatal error: unable to serve on any address [[-]:10051]
[root@abc-zabserver-b zabbix]# netstat -lntp | grep 10051
tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 2150/zabbix_server
tcp 0 0 :::10051 :::* LISTEN 2150/zabbix_server
Service status and when trying to start
[root@abc-zabserver-b zabbix]# service zabbix-server status
zabbix_server is stopped
[root@abc-zabserver-b zabbix]# service zabbix-server start
Starting Zabbix server: [ OK ]
[root@abc-zabserver-b zabbix]# service zabbix-server status
zabbix_server is stopped
Process is running (sometimes shows multiple processes running)
[root@abc-zabserver-b zabbix]# ps afx | grep -i zabbix
3852 pts/1 S+ 0:00 | \_ grep -i zabbix
2150 ? S 0:00 zabbix_server -c /etc/zabbix/zabbix_server.conf
But service still stopped
[root@abc-zabserver-b zabbix]# service zabbix-server status
zabbix_server is stopped
Solution 1:
It can't start because it's already running (and the pid file somehow doesn't reflect that). Kill it yourself, then restart it.
Solution 2:
Late but i hope it could help.
In my case it happened just because there was already a zabbix process running in background.
> service zabbix-agent status
* zabbix_agentd is not running
But if i check PIDS
> pgrep zabbix
14430
14431
14432
So kill them manually
> pgrep zabbix | xargs kill
And just restart and verify the service
> service zabbix-agent restart
> service zabbix-agent status
* zabbix_agentd is running