Docker安装zabbix打不开页面

Linux 专栏收录该内容
23 篇文章 0 订阅

环境:CentOS 7.8 ,更新内核到 lt 版本4.4.230,禁用selinux,防火墙放行了http和https服务。

#uname -r
4.4.230-1.el7.elrepo.x86_64

#docker version
Client: Docker Engine - Community
Version: 19.03.12
API version: 1.40
Go version: go1.13.10
Git commit: 48a66213fe
Built: Mon Jun 22 15:46:54 2020
OS/Arch: linux/amd64
Experimental: false

安装zabbix

#docker pull mysql:5.7
#docker pull zabbix/zabbix-server-mysql:centos-4.4-latest
#docker pull zabbix/zabbix-web-nginx-mysql:centos-4.4-latest

#docker network create -d bridge zabbix_net
#docker run -d --name zabbix-mysql --network zabbix_net --restart always \
-e MYSQL_DATABASE=“zabbix” \
-e MYSQL_USER=“zabbix” \
-e MYSQL_PASSWORD=“zabbix123” \
-e MYSQL_ROOT_PASSWORD=“Root123” \
-p 3306:3306 \
-v /etc/localtime:/etc/localtime \
mysql:5.7 --character-set-server=utf8 --collation-server=utf8_bin

#docker run -d --name zabbix-server --network zabbix_net --restart always \
-e DB_SERVER_HOST=“zabbix-mysql” \
-e MYSQL_DATABASE=“zabbix” \
-e MYSQL_USER=“zabbix” \
-e MYSQL_PASSWORD=“zabbix123” \
-e MYSQL_ROOT_PASSWORD=“Root123” \
-v /etc/localtime:/etc/localtime:ro \
-v /data/docker/zabbix/alertscripts:/usr/lib/zabbix/alertscripts \
-v /data/docker/zabbix/externalscripts:/usr/lib/zabbix/externalscripts \
-p 10051:10051 \
zabbix/zabbix-server-mysql:centos-4.4-latest

docker run -d --name zabbix-web-nginx --network zabbix_net --restart=always \
-e DB_SERVER_HOST=“zabbix-mysql” \
-e MYSQL_DATABASE=“zabbix” \
-e MYSQL_USER=“zabbix” \
-e MYSQL_PASSWORD=“zabbix123” \
-e MYSQL_ROOT_PASSWORD=“Root123” \
-e ZBX_SERVER_HOST=“zabbix-server” \
-e PHP_TZ=“Asia/Shanghai” \
-p 80:80 \
zabbix/zabbix-web-nginx-mysql:centos-4.4-latest

#firewall-cmd --add-service=http --permanent
#firewall-cmd --add-service=https --permanent
#firewall-cmd --reload

当访问http://IP/zabbix时打不开,请问哪里不对?
之前用默认的内核版本3.10也是打不开zabbix,更新内核仍然打不开。
将-p 80:80换成-p 8080:8080并开放8080端口仍然打不开。拿官方网站的两个举例,完全照抄也打不开页面:
docker run --name zabbix-appliance -t
-p 10051:10051
-p 80:80
-d zabbix/zabbix-appliance:latest
这个打不开页面,另一个实例也打不开,郁闷了。

附上三个容器的日志:

[root@localhost ~]# docker logs zabbix-mysql
2020-07-13 17:24:54+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.30-1debian10 started.
2020-07-13 17:24:54+08:00 [Note] [Entrypoint]: Switching to dedicated user ‘mysql’
2020-07-13 17:24:54+08:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.30-1debian10 started.
2020-07-13 17:24:54+08:00 [Note] [Entrypoint]: Initializing database files
2020-07-13T09:24:54.988752Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-07-13T09:24:55.120325Z 0 [Warning] InnoDB: New log files created, LSN=45790
2020-07-13T09:24:55.144559Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
2020-07-13T09:24:55.152269Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: b6810857-c4ea-11ea-8339-0242ac120002.
2020-07-13T09:24:55.152795Z 0 [Warning] Gtid table is not ready to be used. Table ‘mysql.gtid_executed’ cannot be opened.
2020-07-13T09:24:55.639020Z 0 [Warning] CA certificate ca.pem is self signed.
2020-07-13T09:24:55.804394Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
2020-07-13 17:24:57+08:00 [Note] [Entrypoint]: Database files initialized
2020-07-13 17:24:57+08:00 [Note] [Entrypoint]: Starting temporary server
2020-07-13 17:24:57+08:00 [Note] [Entrypoint]: Waiting for server startup
2020-07-13T09:24:58.086770Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-07-13T09:24:58.088171Z 0 [Note] mysqld (mysqld 5.7.30) starting as process 77 …
2020-07-13T09:24:58.091376Z 0 [Note] InnoDB: PUNCH HOLE support available
2020-07-13T09:24:58.091395Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-07-13T09:24:58.091398Z 0 [Note] InnoDB: Uses event mutexes
2020-07-13T09:24:58.091400Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-07-13T09:24:58.091401Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-07-13T09:24:58.091403Z 0 [Note] InnoDB: Using Linux native AIO
2020-07-13T09:24:58.091573Z 0 [Note] InnoDB: Number of pools: 1
2020-07-13T09:24:58.091651Z 0 [Note] InnoDB: Using CPU crc32 instructions
2020-07-13T09:24:58.093382Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-07-13T09:24:58.099946Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-07-13T09:24:58.101653Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-07-13T09:24:58.114694Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2020-07-13T09:24:58.126326Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-07-13T09:24:58.126450Z 0 [Note] InnoDB: Setting file ‘./ibtmp1’ size to 12 MB. Physically writing the file full; Please wait …
2020-07-13T09:24:58.137513Z 0 [Note] InnoDB: File ‘./ibtmp1’ size is now 12 MB.
2020-07-13T09:24:58.138010Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2020-07-13T09:24:58.138032Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2020-07-13T09:24:58.140350Z 0 [Note] InnoDB: Waiting for purge to start
2020-07-13T09:24:58.191094Z 0 [Note] InnoDB: 5.7.30 started; log sequence number 2629907
2020-07-13T09:24:58.192348Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2020-07-13T09:24:58.193135Z 0 [Note] Plugin ‘FEDERATED’ is disabled.
2020-07-13T09:24:58.204495Z 0 [Note] InnoDB: Buffer pool(s) load completed at 200713 17:24:58
2020-07-13T09:24:58.213977Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2020-07-13T09:24:58.214023Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2020-07-13T09:24:58.215027Z 0 [Warning] CA certificate ca.pem is self signed.
2020-07-13T09:24:58.215123Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2020-07-13T09:24:58.216423Z 0 [Warning] Insecure configuration for --pid-file: Location ‘/var/run/mysqld’ in the path is accessible to all OS users. Consider choosing a different directory.
2020-07-13T09:24:58.227856Z 0 [Note] Event Scheduler: Loaded 0 events
2020-07-13T09:24:58.228292Z 0 [Note] mysqld: ready for connections.
Version: ‘5.7.30’ socket: ‘/var/run/mysqld/mysqld.sock’ port: 0 MySQL Community Server (GPL)
2020-07-13 17:24:58+08:00 [Note] [Entrypoint]: Temporary server started.
Warning: Unable to load ‘/usr/share/zoneinfo/iso3166.tab’ as time zone. Skipping it.
Warning: Unable to load ‘/usr/share/zoneinfo/leap-seconds.list’ as time zone. Skipping it.
Warning: Unable to load ‘/usr/share/zoneinfo/zone.tab’ as time zone. Skipping it.
Warning: Unable to load ‘/usr/share/zoneinfo/zone1970.tab’ as time zone. Skipping it.
2020-07-13 17:25:00+08:00 [Note] [Entrypoint]: Creating database zabbix
2020-07-13 17:25:00+08:00 [Note] [Entrypoint]: Creating user zabbix
2020-07-13 17:25:00+08:00 [Note] [Entrypoint]: Giving user zabbix access to schema zabbix

2020-07-13 17:25:00+08:00 [Note] [Entrypoint]: Stopping temporary server
2020-07-13T09:25:00.967844Z 0 [Note] Giving 0 client threads a chance to die gracefully
2020-07-13T09:25:00.967867Z 0 [Note] Shutting down slave threads
2020-07-13T09:25:00.967871Z 0 [Note] Forcefully disconnecting 0 remaining clients
2020-07-13T09:25:00.967875Z 0 [Note] Event Scheduler: Purging the queue. 0 events
2020-07-13T09:25:00.967923Z 0 [Note] Binlog end
2020-07-13T09:25:00.968340Z 0 [Note] Shutting down plugin ‘ngram’
2020-07-13T09:25:00.968376Z 0 [Note] Shutting down plugin ‘partition’
2020-07-13T09:25:00.968380Z 0 [Note] Shutting down plugin ‘BLACKHOLE’
2020-07-13T09:25:00.968383Z 0 [Note] Shutting down plugin ‘ARCHIVE’
2020-07-13T09:25:00.968385Z 0 [Note] Shutting down plugin ‘PERFORMANCE_SCHEMA’
2020-07-13T09:25:00.968421Z 0 [Note] Shutting down plugin ‘MRG_MYISAM’
2020-07-13T09:25:00.968426Z 0 [Note] Shutting down plugin ‘MyISAM’
2020-07-13T09:25:00.968435Z 0 [Note] Shutting down plugin ‘INNODB_SYS_VIRTUAL’
2020-07-13T09:25:00.968438Z 0 [Note] Shutting down plugin ‘INNODB_SYS_DATAFILES’
2020-07-13T09:25:00.968440Z 0 [Note] Shutting down plugin ‘INNODB_SYS_TABLESPACES’
2020-07-13T09:25:00.968442Z 0 [Note] Shutting down plugin ‘INNODB_SYS_FOREIGN_COLS’
2020-07-13T09:25:00.968445Z 0 [Note] Shutting down plugin ‘INNODB_SYS_FOREIGN’
2020-07-13T09:25:00.968447Z 0 [Note] Shutting down plugin ‘INNODB_SYS_FIELDS’
2020-07-13T09:25:00.968449Z 0 [Note] Shutting down plugin ‘INNODB_SYS_COLUMNS’
2020-07-13T09:25:00.968451Z 0 [Note] Shutting down plugin ‘INNODB_SYS_INDEXES’
2020-07-13T09:25:00.968453Z 0 [Note] Shutting down plugin ‘INNODB_SYS_TABLESTATS’
2020-07-13T09:25:00.968455Z 0 [Note] Shutting down plugin ‘INNODB_SYS_TABLES’
2020-07-13T09:25:00.968457Z 0 [Note] Shutting down plugin ‘INNODB_FT_INDEX_TABLE’
2020-07-13T09:25:00.968459Z 0 [Note] Shutting down plugin ‘INNODB_FT_INDEX_CACHE’
2020-07-13T09:25:00.968461Z 0 [Note] Shutting down plugin ‘INNODB_FT_CONFIG’
2020-07-13T09:25:00.968463Z 0 [Note] Shutting down plugin ‘INNODB_FT_BEING_DELETED’
2020-07-13T09:25:00.968465Z 0 [Note] Shutting down plugin ‘INNODB_FT_DELETED’
2020-07-13T09:25:00.968467Z 0 [Note] Shutting down plugin ‘INNODB_FT_DEFAULT_STOPWORD’
2020-07-13T09:25:00.968469Z 0 [Note] Shutting down plugin ‘INNODB_METRICS’
2020-07-13T09:25:00.968471Z 0 [Note] Shutting down plugin ‘INNODB_TEMP_TABLE_INFO’
2020-07-13T09:25:00.968474Z 0 [Note] Shutting down plugin ‘INNODB_BUFFER_POOL_STATS’
2020-07-13T09:25:00.968476Z 0 [Note] Shutting down plugin ‘INNODB_BUFFER_PAGE_LRU’
2020-07-13T09:25:00.968478Z 0 [Note] Shutting down plugin ‘INNODB_BUFFER_PAGE’
2020-07-13T09:25:00.968480Z 0 [Note] Shutting down plugin ‘INNODB_CMP_PER_INDEX_RESET’
2020-07-13T09:25:00.968482Z 0 [Note] Shutting down plugin ‘INNODB_CMP_PER_INDEX’
2020-07-13T09:25:00.968484Z 0 [Note] Shutting down plugin ‘INNODB_CMPMEM_RESET’
2020-07-13T09:25:00.968486Z 0 [Note] Shutting down plugin ‘INNODB_CMPMEM’
2020-07-13T09:25:00.968488Z 0 [Note] Shutting down plugin ‘INNODB_CMP_RESET’
2020-07-13T09:25:00.968490Z 0 [Note] Shutting down plugin ‘INNODB_CMP’
2020-07-13T09:25:00.968492Z 0 [Note] Shutting down plugin ‘INNODB_LOCK_WAITS’
2020-07-13T09:25:00.968494Z 0 [Note] Shutting down plugin ‘INNODB_LOCKS’
2020-07-13T09:25:00.968496Z 0 [Note] Shutting down plugin ‘INNODB_TRX’
2020-07-13T09:25:00.968498Z 0 [Note] Shutting down plugin ‘InnoDB’
2020-07-13T09:25:00.968722Z 0 [Note] InnoDB: FTS optimize thread exiting.
2020-07-13T09:25:00.968915Z 0 [Note] InnoDB: Starting shutdown…
2020-07-13T09:25:01.069890Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
2020-07-13T09:25:01.070804Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 200713 17:25:01
2020-07-13T09:25:02.093932Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12522639
2020-07-13T09:25:02.098237Z 0 [Note] InnoDB: Removed temporary tablespace data file: “ibtmp1”
2020-07-13T09:25:02.098290Z 0 [Note] Shutting down plugin ‘MEMORY’
2020-07-13T09:25:02.098299Z 0 [Note] Shutting down plugin ‘CSV’
2020-07-13T09:25:02.098307Z 0 [Note] Shutting down plugin ‘sha256_password’
2020-07-13T09:25:02.098311Z 0 [Note] Shutting down plugin ‘mysql_native_password’
2020-07-13T09:25:02.098581Z 0 [Note] Shutting down plugin ‘binlog’
2020-07-13T09:25:02.099579Z 0 [Note] mysqld: Shutdown complete

2020-07-13 17:25:02+08:00 [Note] [Entrypoint]: Temporary server stopped

2020-07-13 17:25:02+08:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.

2020-07-13T09:25:03.150822Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-07-13T09:25:03.151586Z 0 [Note] mysqld (mysqld 5.7.30) starting as process 1 …
2020-07-13T09:25:03.154002Z 0 [Note] InnoDB: PUNCH HOLE support available
2020-07-13T09:25:03.154030Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-07-13T09:25:03.154034Z 0 [Note] InnoDB: Uses event mutexes
2020-07-13T09:25:03.154037Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-07-13T09:25:03.154039Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-07-13T09:25:03.154041Z 0 [Note] InnoDB: Using Linux native AIO
2020-07-13T09:25:03.154226Z 0 [Note] InnoDB: Number of pools: 1
2020-07-13T09:25:03.154342Z 0 [Note] InnoDB: Using CPU crc32 instructions
2020-07-13T09:25:03.155718Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-07-13T09:25:03.161475Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-07-13T09:25:03.162682Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-07-13T09:25:03.174609Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2020-07-13T09:25:03.181236Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
2020-07-13T09:25:03.181337Z 0 [Note] InnoDB: Setting file ‘./ibtmp1’ size to 12 MB. Physically writing the file full; Please wait …
2020-07-13T09:25:03.189279Z 0 [Note] InnoDB: File ‘./ibtmp1’ size is now 12 MB.
2020-07-13T09:25:03.189796Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
2020-07-13T09:25:03.189819Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
2020-07-13T09:25:03.190410Z 0 [Note] InnoDB: Waiting for purge to start
2020-07-13T09:25:03.241255Z 0 [Note] InnoDB: 5.7.30 started; log sequence number 12522639
2020-07-13T09:25:03.242488Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2020-07-13T09:25:03.243483Z 0 [Note] Plugin ‘FEDERATED’ is disabled.
2020-07-13T09:25:03.252645Z 0 [Note] InnoDB: Buffer pool(s) load completed at 200713 17:25:03
2020-07-13T09:25:03.260641Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
2020-07-13T09:25:03.260761Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
2020-07-13T09:25:03.263133Z 0 [Warning] CA certificate ca.pem is self signed.
2020-07-13T09:25:03.263349Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
2020-07-13T09:25:03.265508Z 0 [Note] Server hostname (bind-address): ‘*’; port: 3306
2020-07-13T09:25:03.266035Z 0 [Note] IPv6 is available.
2020-07-13T09:25:03.266083Z 0 [Note] - ‘::’ resolves to ‘::’;
2020-07-13T09:25:03.266132Z 0 [Note] Server socket created on IP: ‘::’.
2020-07-13T09:25:03.267745Z 0 [Warning] Insecure configuration for --pid-file: Location ‘/var/run/mysqld’ in the path is accessible to all OS users. Consider choosing a different directory.
2020-07-13T09:25:03.300013Z 0 [Note] Event Scheduler: Loaded 0 events
2020-07-13T09:25:03.300740Z 0 [Note] mysqld: ready for connections.
Version: ‘5.7.30’ socket: ‘/var/run/mysqld/mysqld.sock’ port: 3306 MySQL Community Server (GPL)
[root@localhost ~]# docker logs zabbix-server
** Preparing Zabbix server
** Using MYSQL_USER variable from ENV
** Using MYSQL_PASSWORD variable from ENV
** Using MYSQL_ROOT_PASSWORD variable from ENV


  • DB_SERVER_HOST: zabbix-mysql
  • DB_SERVER_PORT: 3306
  • DB_SERVER_DBNAME: zabbix

** Creating ‘zabbix’ user in MySQL database
** Database ‘zabbix’ already exists. Please be careful with database COLLATE!
** Creating ‘zabbix’ schema in MySQL
** Preparing Zabbix server configuration file
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “ListenPort”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “SourceIP”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “LogType”: ‘console’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “LogFile”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “LogFileSize”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “PidFile”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “DebugLevel”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “DBHost”: ‘zabbix-mysql’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “DBName”: ‘zabbix’…updated
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “DBSchema”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “DBUser”: ‘zabbix’…updated
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “DBPort”: ‘3306’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “DBPassword”: ‘****’. Enable DEBUG_MODE to view value …added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “HistoryStorageURL”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “HistoryStorageTypes”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “HistoryStorageDateIndex”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “DBSocket”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StatsAllowedIP”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartPollers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartIPMIPollers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartPollersUnreachable”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartTrappers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartPingers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartDiscoverers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartHTTPPollers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartPreprocessors”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartTimers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartEscalators”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartAlerters”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartTimers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartEscalators”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartLLDProcessors”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “JavaGateway”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “JavaGatewayPort”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartJavaPollers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartVMwareCollectors”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “VMwareFrequency”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “VMwarePerfFrequency”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “VMwareCacheSize”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “VMwareTimeout”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “SNMPTrapperFile”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartSNMPTrapper”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “HousekeepingFrequency”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “MaxHousekeeperDelete”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “SenderFrequency”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “CacheSize”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “CacheUpdateFrequency”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartDBSyncers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “HistoryCacheSize”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “HistoryIndexCacheSize”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “TrendCacheSize”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “ValueCacheSize”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “Timeout”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “TrapperTimeout”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “UnreachablePeriod”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “UnavailableDelay”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “UnreachableDelay”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “AlertScriptsPath”: ‘/usr/lib/zabbix/alertscripts’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “ExternalScripts”: ‘/usr/lib/zabbix/externalscripts’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “FpingLocation”: ‘/usr/sbin/fping’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “Fping6Location”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “SSHKeyLocation”: ‘/var/lib/zabbix/ssh_keys’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “LogSlowQueries”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “StartProxyPollers”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “ProxyConfigFrequency”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “ProxyDataFrequency”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “SSLCertLocation”: ‘/var/lib/zabbix/ssl/certs/’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “SSLKeyLocation”: ‘/var/lib/zabbix/ssl/keys/’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “SSLCALocation”: ‘/var/lib/zabbix/ssl/ssl_ca/’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “LoadModulePath”: ‘/var/lib/zabbix/modules/’…added
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “TLSCAFile”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “TLSCRLFile”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “TLSCertFile”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “TLSKeyFile”: ‘’…removed
** Updating ‘/etc/zabbix/zabbix_server.conf’ parameter “User”: ‘zabbix’…added
Starting Zabbix Server. Zabbix 4.4.10 (revision 4db30af).
Press Ctrl+C to exit.

 6:20200713:172534.155 Starting Zabbix Server. Zabbix 4.4.10 (revision 4db30af).
 6:20200713:172534.155 ****** Enabled features ******
 6:20200713:172534.155 SNMP monitoring:           YES
 6:20200713:172534.155 IPMI monitoring:           YES
 6:20200713:172534.155 Web monitoring:            YES
 6:20200713:172534.155 VMware monitoring:         YES
 6:20200713:172534.155 SMTP authentication:       YES
 6:20200713:172534.155 ODBC:                      YES
 6:20200713:172534.155 SSH support:               YES
 6:20200713:172534.155 IPv6 support:              YES
 6:20200713:172534.155 TLS support:               YES
 6:20200713:172534.155 ******************************
 6:20200713:172534.155 using configuration file: /etc/zabbix/zabbix_server.conf
 6:20200713:172534.165 current database version (mandatory/optional): 04040000/04040002
 6:20200713:172534.165 required mandatory version: 04040000
 6:20200713:172534.176 server #0 started [main process]

164:20200713:172534.176 server #1 started [configuration syncer #1]
165:20200713:172534.279 server #2 started [housekeeper #1]
167:20200713:172534.279 server #4 started [http poller #1]
170:20200713:172534.280 server #7 started [history syncer #2]
172:20200713:172534.281 server #9 started [history syncer #4]
175:20200713:172534.282 server #12 started [self-monitoring #1]
178:20200713:172534.282 server #15 started [poller #2]
180:20200713:172534.286 server #17 started [poller #4]
182:20200713:172534.288 server #19 started [unreachable poller #1]
183:20200713:172534.291 server #20 started [trapper #1]
188:20200713:172534.292 server #25 started [icmp pinger #1]
187:20200713:172534.294 server #24 started [trapper #5]
174:20200713:172534.304 server #11 started [proxy poller #1]
177:20200713:172534.307 server #14 started [poller #1]
173:20200713:172534.309 server #10 started [escalator #1]
176:20200713:172534.312 server #13 started [task manager #1]
179:20200713:172534.312 server #16 started [poller #3]
181:20200713:172534.319 server #18 started [poller #5]
190:20200713:172534.321 server #27 started [alerter #1]
189:20200713:172534.322 server #26 started [alert manager #1]
191:20200713:172534.326 server #28 started [alerter #2]
197:20200713:172534.328 server #34 started [lld manager #1]
169:20200713:172534.329 server #6 started [history syncer #1]
168:20200713:172534.329 server #5 started [discoverer #1]
198:20200713:172534.330 server #35 started [lld worker #1]
199:20200713:172534.330 server #36 started [lld worker #2]
200:20200713:172534.331 server #37 started [alert syncer #1]
171:20200713:172534.331 server #8 started [history syncer #3]
166:20200713:172534.346 server #3 started [timer #1]
193:20200713:172534.347 server #30 started [preprocessing manager #1]
185:20200713:172534.351 server #22 started [trapper #3]
186:20200713:172534.353 server #23 started [trapper #4]
184:20200713:172534.378 server #21 started [trapper #2]
192:20200713:172534.395 server #29 started [alerter #3]
196:20200713:172534.435 server #33 started [preprocessing worker #3]
194:20200713:172534.435 server #31 started [preprocessing worker #1]
195:20200713:172534.444 server #32 started [preprocessing worker #2]
172:20200713:172542.363 item “Zabbix server:zabbix[process,ipmi poller,avg,busy]” became not supported: No “ipmi poller” processes started.
171:20200713:172543.391 item “Zabbix server:zabbix[process,java poller,avg,busy]” became not supported: No “java poller” processes started.
171:20200713:172548.404 item “Zabbix server:zabbix[process,snmp trapper,avg,busy]” became not supported: No “snmp trapper” processes started.
171:20200713:172548.404 item “Zabbix server:zabbix[process,ipmi manager,avg,busy]” became not supported: No “ipmi manager” processes started.
170:20200713:172549.406 item “Zabbix server:zabbix[process,vmware collector,avg,busy]” became not supported: No “vmware collector” processes started.
181:20200713:172554.452 Zabbix agent item “system.uptime” on host “Zabbix server” failed: first network error, wait for 15 seconds
169:20200713:172556.426 item “Zabbix server:zabbix[vmware,buffer,pused]” became not supported: No “vmware collector” processes started.
182:20200713:172609.468 Zabbix agent item “system.cpu.num” on host “Zabbix server” failed: another network error, wait for 15 seconds
182:20200713:172624.554 Zabbix agent item “system.cpu.util[,softirq]” on host “Zabbix server” failed: another network error, wait for 15 seconds
182:20200713:172639.572 temporarily disabling Zabbix agent checks on host “Zabbix server”: host unavailable
[root@localhost ~]# docker logs zabbix-web-nginx
** Deploying Zabbix web-interface (Nginx) with MySQL database
** Using MYSQL_USER variable from ENV
** Using MYSQL_PASSWORD variable from ENV


  • DB_SERVER_HOST: zabbix-mysql
  • DB_SERVER_PORT: 3306
  • DB_SERVER_DBNAME: zabbix

** Adding Zabbix virtual host (HTTP)
**** Impossible to enable SSL support for Nginx. Certificates are missed.
** Preparing Zabbix frontend configuration file
** Updating ‘/etc/php-fpm.d/zabbix.conf’ parameter “php_value[max_execution_time]”: ‘600’… updated
** Updating ‘/etc/php-fpm.d/zabbix.conf’ parameter “php_value[memory_limit]”: ‘128M’… updated
** Updating ‘/etc/php-fpm.d/zabbix.conf’ parameter “php_value[post_max_size]”: ‘16M’… updated
** Updating ‘/etc/php-fpm.d/zabbix.conf’ parameter “php_value[upload_max_filesize]”: ‘2M’… updated
** Updating ‘/etc/php-fpm.d/zabbix.conf’ parameter “php_value[max_input_time]”: ‘300’… updated
** Updating ‘/etc/php-fpm.d/zabbix.conf’ parameter “php_value[date.timezone]”: ‘Asia/Shanghai’… added
########################################################
** Executing supervisord
2020-07-13 09:25:40,490 INFO Included extra file “/etc/supervisor/conf.d/supervisord_zabbix.conf” during parsing
2020-07-13 09:25:40,490 INFO Included extra file “/etc/supervisor/conf.d/supervisord_zabbix.conf” during parsing
2020-07-13 09:25:40,495 INFO RPC interface ‘supervisor’ initialized
2020-07-13 09:25:40,495 INFO RPC interface ‘supervisor’ initialized
2020-07-13 09:25:40,496 INFO supervisord started with pid 1
2020-07-13 09:25:40,496 INFO supervisord started with pid 1
2020-07-13 09:25:41,502 INFO spawned: ‘nginx’ with pid 43
2020-07-13 09:25:41,502 INFO spawned: ‘nginx’ with pid 43
2020-07-13 09:25:41,508 INFO spawned: ‘php-fpm’ with pid 44
2020-07-13 09:25:41,508 INFO spawned: ‘php-fpm’ with pid 44
[13-Jul-2020 09:25:41] NOTICE: fpm is running, pid 44
[13-Jul-2020 09:25:41] NOTICE: ready to handle connections
[13-Jul-2020 09:25:41] NOTICE: systemd monitor interval set to 10000ms
2020-07-13 09:25:43,624 INFO success: nginx entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
2020-07-13 09:25:43,624 INFO success: nginx entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
2020-07-13 09:25:43,625 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
2020-07-13 09:25:43,625 INFO success: php-fpm entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
[root@localhost ~]#

  • 0
    点赞
  • 6
    评论
  • 0
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

©️2022 CSDN 皮肤主题:大白 设计师:CSDN官方博客 返回首页

打赏作者

liuyuhui_gdtyj

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值