Hello,
When launching the container as described in the README.md, I cannot push data to Zabbix as it seems its not listening on port 10051 (inside the container). Therefore I cannot push data from agents to this server.
Tested with
. Docker 1.7.1-1.el7.centos.x86_64 on CentOS Linux release 7.1.1503 (Core)
. Docker version 1.6.2, build ba1f6c3/1.6.2`, on CentOS Linux release 7.1.1503 (Core)
. Docker version 1.7.0, build 0baf609, on Ubuntu 15.04
$ docker run -d --name zabbix -p 8080:80 -p 10051:10051 --env="DB_ADDRESS=192.168.33.10" --env="DB_USER=zabbix" --env="DB_PASS=zabbix" zabbix/zabbix-server-2.4:2.4.4
2c081abf133d1521109256a8e408d0568bb130215f697f6768dfe2acb7bc30bc
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
2c081abf133d zabbix/zabbix-server-2.4:2.4.4 "/config/bootstrap.s 4 seconds ago Up 3 seconds 443/tcp, 10052/tcp, 0.0.0.0:10051->10051/tcp, 0.0.0.0:8080->80/tcp zabbix
The start logs seems OK
$ docker logs zabbix
Nginx status page: allowed address set to 127.0.0.1.
PHP-FPM status page: allowed address set to 127.0.0.1.
[LOG 11:33:10] Preparing server configuration
[LOG 11:33:10] Config updated.
[LOG 11:33:10] Enabling Logging and pid management.
[LOG 11:33:10] Done
[LOG 11:33:10] Checking if Database exists or fresh install
[LOG 11:33:10] Zabbix DB Exists. Starting server.
2015-07-23 11:33:10,771 CRIT Supervisor running as root (no user in config file)
2015-07-23 11:33:10,771 WARN Included extra file "/etc/supervisor.d/zabbix.conf" during parsing
2015-07-23 11:33:10,771 WARN Included extra file "/etc/supervisor.d/php-fpm.conf" during parsing
2015-07-23 11:33:10,771 WARN Included extra file "/etc/supervisor.d/nginx.conf" during parsing
2015-07-23 11:33:10,780 INFO RPC interface 'supervisor' initialized
2015-07-23 11:33:10,781 INFO supervisord started with pid 80
2015-07-23 11:33:11,783 INFO spawned: 'nginx' with pid 88
2015-07-23 11:33:11,785 INFO spawned: 'nginx-reload' with pid 89
2015-07-23 11:33:11,786 INFO spawned: 'php-fpm' with pid 90
2015-07-23 11:33:11,788 INFO spawned: 'zabbix-server' with pid 91
2015-07-23 11:33:11,800 DEBG 'nginx' stderr output:
2015/07/23 11:33:11 [notice] 88#0: using the "epoll" event method
2015/07/23 11:33:11 [notice] 88#0: nginx/1.8.0
2015/07/23 11:33:11 [notice] 88#0: built by gcc 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC)
2015/07/23 11:33:11 [notice] 88#0: OS: Linux 3.19.0-22-generic
2015/07/23 11:33:11 [notice] 88#0: getrlimit(RLIMIT_NOFILE): 1048576:1048576
2015/07/23 11:33:11 [notice] 88#0: start worker processes
2015-07-23 11:33:11,801 DEBG 'nginx' stderr output:
2015/07/23 11:33:11 [notice] 88#0: start worker process 94
2015/07/23 11:33:11 [notice] 88#0: start worker process 95
2015-07-23 11:33:11,801 DEBG 'nginx' stderr output:
2015/07/23 11:33:11 [notice] 88#0: start worker process 96
2015-07-23 11:33:11,801 DEBG 'nginx' stderr output:
2015/07/23 11:33:11 [notice] 88#0: start worker process 97
2015-07-23 11:33:11,865 DEBG fd 13 closed, stopped monitoring <POutputDispatcher at 140625428393136 for <Subprocess at 140625430825584 with name php-fpm in state STARTING> (stdout)>
2015-07-23 11:33:11,865 DEBG 'php-fpm' stderr output:
[23-Jul-2015 11:33:11] WARNING: Nothing matches the include pattern '/data/conf/php-fpm-www-*.conf' from /etc/php-fpm.d/www.conf at line 18.
2015-07-23 11:33:11,866 DEBG fd 17 closed, stopped monitoring <POutputDispatcher at 140625428392848 for <Subprocess at 140625430825584 with name php-fpm in state STARTING> (stderr)>
2015-07-23 11:33:12,867 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-23 11:33:12,868 INFO success: nginx-reload entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-23 11:33:12,868 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2015-07-23 11:33:12,868 INFO success: zabbix-server entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
When diving into the container, there is nothing listening on port 10051
$ docker exec -ti 2c081abf133d bash
[root@2c081abf133d /]# netstat -lpn
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:80 0.0.0.0:* LISTEN 88/nginx: master pr
tcp 0 0 0.0.0.0:9111 0.0.0.0:* LISTEN 80/python
tcp 0 0 0.0.0.0:10050 0.0.0.0:* LISTEN -
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 27530893 90/php-fpm: master /var/run/php-fpm-www.sock
However, all required processes seems to be here, especially zabbix_server
[root@2c081abf133d /]# ps -ef
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 11:33 ? 00:00:00 /bin/bash /config/bootstrap.sh
zabbix 79 1 0 11:33 ? 00:00:00 zabbix_agentd -c /usr/local/etc/zabbix_agentd.conf
root 80 1 0 11:33 ? 00:00:00 /usr/bin/python /usr/bin/supervisord -n -c /etc/supervisord.conf
zabbix 81 79 0 11:33 ? 00:00:00 zabbix_agentd: collector [idle 1 sec]
zabbix 82 79 0 11:33 ? 00:00:00 zabbix_agentd: listener #1 [waiting for connection]
zabbix 83 79 0 11:33 ? 00:00:00 zabbix_agentd: listener #2 [waiting for connection]
zabbix 84 79 0 11:33 ? 00:00:00 zabbix_agentd: listener #3 [waiting for connection]
zabbix 85 79 0 11:33 ? 00:00:00 zabbix_agentd: active checks #1 [idle 1 sec]
root 88 80 0 11:33 ? 00:00:00 nginx: master process /usr/sbin/nginx
root 89 80 0 11:33 ? 00:00:00 bash -c while inotifywait -q -r -e create,delete,modify,move,attrib --exclude "/\." /etc/nginx/ /data/conf/nginx/; do nginx -t && nginx -s reload; done
root 90 80 0 11:33 ? 00:00:00 php-fpm: master process (/etc/php-fpm.conf)
root 91 80 0 11:33 ? 00:00:00 /bin/sh /config/ds.sh /var/run/zabbix_server.pid zabbix_server -c /usr/local/etc/zabbix_server.conf
root 92 89 0 11:33 ? 00:00:00 inotifywait -q -r -e create,delete,modify,move,attrib --exclude /\. /etc/nginx/ /data/conf/nginx/
www 94 88 0 11:33 ? 00:00:00 nginx: worker process
www 95 88 0 11:33 ? 00:00:00 nginx: worker process
www 96 88 0 11:33 ? 00:00:00 nginx: worker process
www 97 88 0 11:33 ? 00:00:00 nginx: worker process
zabbix 99 1 0 11:33 ? 00:00:00 zabbix_server -c /usr/local/etc/zabbix_server.conf
root 542 0 0 11:35 ? 00:00:00 bash
root 1194 91 0 11:37 ? 00:00:00 sleep 0.5
root 1195 542 0 11:37 ? 00:00:00 ps -ef
Server conf is the default one
[root@2c081abf133d /]# sed -e '/^#/d' -e '/^$/d' /usr/local/etc/zabbix_server.conf
LogFile=/var/log/zabbix/zabbix_server.log
DebugLevel=0
PidFile=/var/run/zabbix_server.pid
DBHost=zabbix.db
DBName=zabbix
DBUser=zabbix
DBPassword=zabbix
StartPollers=1
StartIPMIPollers=1
StartTrappers=1
JavaGateway=127.0.0.1
StartJavaPollers=1
StartVMwareCollectors=1
VMwareFrequency=10
VMwareCacheSize=256K
SNMPTrapperFile=/var/log/snmptt/snmptt.log
SenderFrequency=10
CacheUpdateFrequency=10
StartDBSyncers=1
HistoryCacheSize=8M
TrendCacheSize=4M
HistoryTextCacheSize=16M
ValueCacheSize=8M
Timeout=30
UnreachablePeriod=10
UnavailableDelay=10
UnreachableDelay=10
Zabbix server logs says nothing about not being able to listen on port 10051
[root@2c081abf133d /]# cat /var/log/zabbix/zabbix_server.log
99:20150723:113311.808 Starting Zabbix Server. Zabbix 2.4.4 (revision {ZABBIX_REVISION}).
99:20150723:113311.808 ****** Enabled features ******
99:20150723:113311.808 SNMP monitoring: YES
99:20150723:113311.808 IPMI monitoring: YES
99:20150723:113311.808 WEB monitoring: YES
99:20150723:113311.808 VMware monitoring: YES
99:20150723:113311.808 Jabber notifications: NO
99:20150723:113311.809 Ez Texting notifications: YES
99:20150723:113311.809 ODBC: NO
99:20150723:113311.809 SSH2 support: NO
99:20150723:113311.809 IPv6 support: NO
99:20150723:113311.809 ******************************
99:20150723:113311.809 using configuration file: /usr/local/etc/zabbix_server.conf
I hope I'm using this image correctly. Let me know if you need more info.
Thanks in advance for your help!