I'm trying to install zabbix on a new (virtual) server. But i have troubles with the zabbix_agentd on the zabbix server. I get the error below and don't know how to fix it... Can someone help me out or point me in the correct direction?

Error logging zabbix_agentd (on zabbix server):
16795:20130325:144550.564 Starting Zabbix Agent [server-adres]. Zabbix 2.0.3 (revision 30485).
16795:20130325:144550.580 listener failed: zbx_tcp_listen() fatal error: unable to serve on any address [[-]:10050]

configuration zabbix_agentd on the zabbix server:

PidFile=/var/run/zabbix/zabbix_agentd.pid
LogFile=/var/log/zabbix/zabbix_agentd.log
DebugLevel=4 # for now
Server=127.0.0.1
ServerActive=127.0.0.1
Hostname=server-adress also tried ip adress, same error


with command netstat:
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN 31428/./zabbix_agen
tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN 5690/./zabbix_serve
Tags: None
 
 
解决方法:
 
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:10051 0.0.0.0:* LISTEN
Yup, according to the output you already have processes listening on ports 10050 and 10051 (probably Zabbix processes you started up before). If you are trying to restart the agent/server processes after changing configuration stuff, you MUST kill the processes before you can start new ones up. Do that by running these commands:

1. To kill Zabbix Server - "killall -TERM zabbix_server"
2. To kill Zabbix agentd - "killall -TERM zabbix_agentd"
 
 
03-17 06:33