zoukankan      html  css  js  c++  java
  • 记录一次docker安装zabbix5.0

    安装docker

    1.安装阿里源
    阿里源
    mv /etc/yum.repos.d/epel.repo /etc/yum.repos.d/epel.repo.backup
    mv /etc/yum.repos.d/epel-testing.repo /etc/yum.repos.d/epel-testing.repo.backup
    wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

    mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
    wget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repo

    2.下载docker
    yum install docker -y
    镜像加速
    sudo mkdir -p /etc/docker
    sudo tee /etc/docker/daemon.json <<-'EOF'
    {
    "registry-mirrors": ["https://k4fay0p8.mirror.aliyuncs.com"]
    }
    EOF
    sudo systemctl daemon-reload
    sudo systemctl restart docker

    3.容器构建

    a.启动空 MySQL 服务器实例

    docker run --name mysql-server -t
    -e MYSQL_DATABASE="zabbix"
    -e MYSQL_USER="zabbix"
    -e MYSQL_PASSWORD="zabbix_pwd"
    -e MYSQL_ROOT_PASSWORD="root_pwd"
    -d mysql:8.0
    --character-set-server=utf8 --collation-server=utf8_bin
    --default-authentication-plugin=mysql_native_password

    b. 启动 Zabbix Java 网关实例
    docker run --name zabbix-java-gateway -t
    -d zabbix/zabbix-java-gateway:latest

    c.启动 Zabbix 服务器实例,将实例与创建的 MySQL 服务器实例链接

    docker run --name zabbix-server-mysql -t
    -e DB_SERVER_HOST="mysql-server"
    -e MYSQL_DATABASE="zabbix"
    -e MYSQL_USER="zabbix"
    -e MYSQL_PASSWORD="zabbix_pwd"
    -e MYSQL_ROOT_PASSWORD="root_pwd"
    -e ZBX_JAVAGATEWAY="zabbix-java-gateway"
    --link mysql-server:mysql
    --link zabbix-java-gateway:zabbix-java-gateway
    -p 10051:10051
    -d zabbix/zabbix-server-mysql:latest

    d.启动 Zabbix Web 界面,将实例与创建的 MySQL 服务器和 Zabbix 服务器实例链接
    docker run --name zabbix-web-nginx-mysql -t
    -e DB_SERVER_HOST="mysql-server"
    -e MYSQL_DATABASE="zabbix"
    -e MYSQL_USER="zabbix"
    -e MYSQL_PASSWORD="zabbix_pwd"
    -e MYSQL_ROOT_PASSWORD="root_pwd"
    --link mysql-server:mysql
    --link zabbix-server-mysql:zabbix-server
    -p 80:8080
    -d zabbix/zabbix-web-nginx-mysql:latest

    查看容器
    file://c:usersmarshallappdatalocal	emp	mpdmvsas1.png
    容器构建出现问题可以查看日志
    [root@localhost ~]# docker logs -tf 1e5e7af09c81 mysql
    2020-06-30T02:13:44.663583000Z 2020-06-30 02:13:44+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.20-1debian10 started.
    2020-06-30T02:13:44.791081000Z 2020-06-30 02:13:44+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
    2020-06-30T02:13:44.801069000Z 2020-06-30 02:13:44+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 8.0.20-1debian10 started.
    2020-06-30T02:13:44.896049000Z 2020-06-30 02:13:44+00:00 [Note] [Entrypoint]: Initializing database files
    2020-06-30T02:13:44.919276000Z 2020-06-30T02:13:44.897547Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
    2020-06-30T02:13:44.919551000Z 2020-06-30T02:13:44.897672Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.20) initializing of server in progress as process 41
    2020-06-30T02:13:44.919786000Z 2020-06-30T02:13:44.898714Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
    2020-06-30T02:13:44.920030000Z 2020-06-30T02:13:44.898721Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8_bin' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
    2020-06-30T02:13:44.920254000Z 2020-06-30T02:13:44.904954Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
    2020-06-30T02:13:45.998701000Z 2020-06-30T02:13:45.994427Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
    2020-06-30T02:13:47.398296000Z 2020-06-30T02:13:47.392159Z 6 [Warning] [MY-010453] [Server] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
    2020-06-30T02:13:49.962164000Z 2020-06-30 02:13:49+00:00 [Note] [Entrypoint]: Database files initialized
    2020-06-30T02:13:49.967289000Z 2020-06-30 02:13:49+00:00 [Note] [Entrypoint]: Starting temporary server
    2020-06-30T02:13:50.426301000Z mysqld will log errors to /var/lib/mysql/1e5e7af09c81.err
    2020-06-30T02:13:51.802730000Z mysqld is running as pid 90
    2020-06-30T02:13:51.820315000Z 2020-06-30 02:13:51+00:00 [Note] [Entrypoint]: Temporary server started.
    2020-06-30T02:13:53.020084000Z Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
    2020-06-30T02:13:53.020386000Z Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
    2020-06-30T02:13:55.151809000Z Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
    2020-06-30T02:13:55.152143000Z Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
    2020-06-30T02:13:55.358634000Z 2020-06-30 02:13:55+00:00 [Note] [Entrypoint]: Creating database zabbix
    2020-06-30T02:13:55.377614000Z 2020-06-30 02:13:55+00:00 [Note] [Entrypoint]: Creating user zabbix
    2020-06-30T02:13:55.392608000Z 2020-06-30 02:13:55+00:00 [Note] [Entrypoint]: Giving user zabbix access to schema zabbix
    2020-06-30T02:13:55.426864000Z
    2020-06-30T02:13:55.432800000Z 2020-06-30 02:13:55+00:00 [Note] [Entrypoint]: Stopping temporary server
    2020-06-30T02:13:58.488851000Z 2020-06-30 02:13:58+00:00 [Note] [Entrypoint]: Temporary server stopped
    2020-06-30T02:13:58.489706000Z
    2020-06-30T02:13:58.496546000Z 2020-06-30 02:13:58+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
    2020-06-30T02:13:58.497454000Z
    2020-06-30T02:13:58.856629000Z 2020-06-30T02:13:58.844276Z 0 [Warning] [MY-011070] [Server] 'Disabling symbolic links using --skip-symbolic-links (or equivalent) is the default. Consider not using this option as it' is deprecated and will be removed in a future release.
    2020-06-30T02:13:58.856885000Z 2020-06-30T02:13:58.844447Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.20) starting as process 1
    2020-06-30T02:13:58.857175000Z 2020-06-30T02:13:58.847244Z 0 [Warning] [MY-013242] [Server] --character-set-server: 'utf8' is currently an alias for the character set UTF8MB3, but will be an alias for UTF8MB4 in a future release. Please consider using UTF8MB4 in order to be unambiguous.
    2020-06-30T02:13:58.857392000Z 2020-06-30T02:13:58.847257Z 0 [Warning] [MY-013244] [Server] --collation-server: 'utf8_bin' is a collation of the deprecated character set UTF8MB3. Please consider using UTF8MB4 with an appropriate collation instead.
    2020-06-30T02:13:58.861623000Z 2020-06-30T02:13:58.857844Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started.
    2020-06-30T02:13:59.434714000Z 2020-06-30T02:13:59.431031Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended.
    2020-06-30T02:13:59.688224000Z 2020-06-30T02:13:59.672584Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Socket: '/var/run/mysqld/mysqlx.sock' bind-address: '::' port: 33060
    2020-06-30T02:13:59.852381000Z 2020-06-30T02:13:59.849686Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.
    2020-06-30T02:13:59.858341000Z 2020-06-30T02:13:59.853610Z 0 [Warning] [MY-011810] [Server] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
    2020-06-30T02:13:59.884760000Z 2020-06-30T02:13:59.883447Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.20' socket: '/var/run/mysqld/mysqld.sock' port: 3306 MySQL Community Server - GPL.
    2020-06-30T02:16:03.219318000Z mbind: Operation not permitted
    2020-06-30T02:16:03.927181000Z mbind: Operation not permitted
    ------------------------------
    [root@localhost ~]# docker logs -tf 6c9b5c32bad8 java-gateway
    2020-06-30T02:14:41.268628000Z ** Preparing Zabbix Java Gateway
    2020-06-30T02:14:41.268974000Z ** Preparing Zabbix Java Gateway log configuration file
    2020-06-30T02:14:42.254914000Z 2020-06-30 02:14:42.239 [main] INFO com.zabbix.gateway.JavaGateway - Zabbix Java Gateway 5.0.1 (revision c2a0b03) has started
    2020-06-30T02:14:42.273170000Z 2020-06-30 02:14:42.268 [main] INFO com.zabbix.gateway.JavaGateway - listening on 0.0.0.0/0.0.0.0:10052
    ------------------------------
    [root@localhost ~]# docker logs -tf e11ca2fec8af zabbix-server
    2020-06-30T02:15:35.975050000Z ** Preparing Zabbix server
    2020-06-30T02:15:35.975332000Z ** Using MYSQL_USER variable from ENV
    2020-06-30T02:15:35.975646000Z ** Using MYSQL_PASSWORD variable from ENV
    2020-06-30T02:15:35.975868000Z ** Using MYSQL_ROOT_PASSWORD variable from ENV
    2020-06-30T02:15:35.976103000Z ********************
    2020-06-30T02:15:35.976371000Z * DB_SERVER_HOST: mysql-server
    2020-06-30T02:15:35.976581000Z * DB_SERVER_PORT: 3306
    2020-06-30T02:15:35.976787000Z * DB_SERVER_DBNAME: zabbix
    2020-06-30T02:15:35.976993000Z ********************
    2020-06-30T02:15:36.036616000Z ** Creating 'zabbix' user in MySQL database
    2020-06-30T02:15:36.123404000Z ** Database 'zabbix' already exists. Please be careful with database COLLATE!
    2020-06-30T02:15:36.143561000Z ** Creating 'zabbix' schema in MySQL
    2020-06-30T02:16:02.690313000Z ** Preparing Zabbix server configuration file
    2020-06-30T02:16:02.700439000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ListenPort": ''...removed
    2020-06-30T02:16:02.702559000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SourceIP": ''...removed
    2020-06-30T02:16:02.713945000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogType": 'console'...added
    2020-06-30T02:16:02.717007000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogFile": ''...removed
    2020-06-30T02:16:02.719907000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogFileSize": ''...removed
    2020-06-30T02:16:02.733389000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "PidFile": ''...removed
    2020-06-30T02:16:02.735573000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DebugLevel": ''...removed
    2020-06-30T02:16:02.753215000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBHost": 'mysql-server'...added
    2020-06-30T02:16:02.760558000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBName": 'zabbix'...updated
    2020-06-30T02:16:02.762386000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBSchema": ''...removed
    2020-06-30T02:16:02.768407000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBUser": 'zabbix'...updated
    2020-06-30T02:16:02.776786000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBPort": '3306'...added
    2020-06-30T02:16:02.788826000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBPassword": '****'. Enable DEBUG_MODE to view value ...added
    2020-06-30T02:16:02.791883000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageURL": ''...removed
    2020-06-30T02:16:02.795431000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageTypes": ''...removed
    2020-06-30T02:16:02.798523000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryStorageDateIndex": ''...removed
    2020-06-30T02:16:02.803104000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "DBSocket": ''...removed
    2020-06-30T02:16:02.806776000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StatsAllowedIP": ''...removed
    2020-06-30T02:16:02.809765000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPollers": ''...removed
    2020-06-30T02:16:02.812805000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartIPMIPollers": ''...removed
    2020-06-30T02:16:02.815587000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPollersUnreachable": ''...removed
    2020-06-30T02:16:02.818753000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTrappers": ''...removed
    2020-06-30T02:16:02.821539000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPingers": ''...removed
    2020-06-30T02:16:02.824340000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartDiscoverers": ''...removed
    2020-06-30T02:16:02.827110000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartHTTPPollers": ''...removed
    2020-06-30T02:16:02.829974000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartPreprocessors": ''...removed
    2020-06-30T02:16:02.832953000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTimers": ''...removed
    2020-06-30T02:16:02.835968000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartEscalators": ''...removed
    2020-06-30T02:16:02.838989000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartAlerters": ''...removed
    2020-06-30T02:16:02.841987000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartTimers": ''...removed
    2020-06-30T02:16:02.844912000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartEscalators": ''...removed
    2020-06-30T02:16:02.847941000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartLLDProcessors": ''...removed
    2020-06-30T02:16:02.850891000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "JavaGateway": ''...removed
    2020-06-30T02:16:02.854159000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "JavaGatewayPort": ''...removed
    2020-06-30T02:16:02.857363000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartJavaPollers": ''...removed
    2020-06-30T02:16:02.860256000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartVMwareCollectors": ''...removed
    2020-06-30T02:16:02.863685000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareFrequency": ''...removed
    2020-06-30T02:16:02.866813000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwarePerfFrequency": ''...removed
    2020-06-30T02:16:02.869672000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareCacheSize": ''...removed
    2020-06-30T02:16:02.872658000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "VMwareTimeout": ''...removed
    2020-06-30T02:16:02.875559000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SNMPTrapperFile": ''...removed
    2020-06-30T02:16:02.878595000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartSNMPTrapper": ''...removed
    2020-06-30T02:16:02.881626000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HousekeepingFrequency": ''...removed
    2020-06-30T02:16:02.884632000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "MaxHousekeeperDelete": ''...removed
    2020-06-30T02:16:02.888930000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SenderFrequency": ''...removed
    2020-06-30T02:16:02.892030000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "CacheSize": ''...removed
    2020-06-30T02:16:02.895287000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "CacheUpdateFrequency": ''...removed
    2020-06-30T02:16:02.898414000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartDBSyncers": ''...removed
    2020-06-30T02:16:02.901481000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryCacheSize": ''...removed
    2020-06-30T02:16:02.904386000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "HistoryIndexCacheSize": ''...removed
    2020-06-30T02:16:02.907273000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TrendCacheSize": ''...removed
    2020-06-30T02:16:02.910292000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ValueCacheSize": ''...removed
    2020-06-30T02:16:02.913422000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "Timeout": ''...removed
    2020-06-30T02:16:02.916373000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TrapperTimeout": ''...removed
    2020-06-30T02:16:02.919310000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnreachablePeriod": ''...removed
    2020-06-30T02:16:02.922217000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnavailableDelay": ''...removed
    2020-06-30T02:16:02.924520000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "UnreachableDelay": ''...removed
    2020-06-30T02:16:02.933147000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "AlertScriptsPath": '/usr/lib/zabbix/alertscripts'...added
    2020-06-30T02:16:02.941583000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ExternalScripts": '/usr/lib/zabbix/externalscripts'...added
    2020-06-30T02:16:02.950989000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "FpingLocation": '/usr/sbin/fping'...added
    2020-06-30T02:16:02.953751000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "Fping6Location": ''...removed
    2020-06-30T02:16:02.963376000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSHKeyLocation": '/var/lib/zabbix/ssh_keys'...added
    2020-06-30T02:16:02.966284000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LogSlowQueries": ''...removed
    2020-06-30T02:16:02.969142000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "StartProxyPollers": ''...removed
    2020-06-30T02:16:02.972110000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ProxyConfigFrequency": ''...removed
    2020-06-30T02:16:02.974121000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "ProxyDataFrequency": ''...removed
    2020-06-30T02:16:02.982834000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLCertLocation": '/var/lib/zabbix/ssl/certs/'...added
    2020-06-30T02:16:02.991367000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLKeyLocation": '/var/lib/zabbix/ssl/keys/'...added
    2020-06-30T02:16:02.999476000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "SSLCALocation": '/var/lib/zabbix/ssl/ssl_ca/'...added
    2020-06-30T02:16:03.010303000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "LoadModulePath": '/var/lib/zabbix/modules/'...added
    2020-06-30T02:16:03.013042000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCAFile": ''...removed
    2020-06-30T02:16:03.015841000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCRLFile": ''...removed
    2020-06-30T02:16:03.018849000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSCertFile": ''...removed
    2020-06-30T02:16:03.021854000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSKeyFile": ''...removed
    2020-06-30T02:16:03.026301000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSPSKIdentity": ''...removed
    2020-06-30T02:16:03.028515000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "TLSPSKFile": ''...removed
    2020-06-30T02:16:03.039409000Z ** Updating '/etc/zabbix/zabbix_server.conf' parameter "User": 'zabbix'...added
    2020-06-30T02:16:03.109476000Z Starting Zabbix Server. Zabbix 5.0.1 (revision c2a0b03).
    2020-06-30T02:16:03.109806000Z Press Ctrl+C to exit.
    2020-06-30T02:16:03.110049000Z
    2020-06-30T02:16:03.110317000Z 6:20200630:021603.108 Starting Zabbix Server. Zabbix 5.0.1 (revision c2a0b03).
    2020-06-30T02:16:03.110555000Z 6:20200630:021603.108 ****** Enabled features ******
    2020-06-30T02:16:03.110823000Z 6:20200630:021603.108 SNMP monitoring: YES
    2020-06-30T02:16:03.111041000Z 6:20200630:021603.108 IPMI monitoring: YES
    2020-06-30T02:16:03.111292000Z 6:20200630:021603.108 Web monitoring: YES
    2020-06-30T02:16:03.111509000Z 6:20200630:021603.108 VMware monitoring: YES
    2020-06-30T02:16:03.111764000Z 6:20200630:021603.108 SMTP authentication: YES
    2020-06-30T02:16:03.111994000Z 6:20200630:021603.108 ODBC: YES
    2020-06-30T02:16:03.112204000Z 6:20200630:021603.108 SSH support: YES
    2020-06-30T02:16:03.112457000Z 6:20200630:021603.108 IPv6 support: YES
    2020-06-30T02:16:03.112666000Z 6:20200630:021603.108 TLS support: YES
    2020-06-30T02:16:03.113024000Z 6:20200630:021603.108 ******************************
    2020-06-30T02:16:03.113280000Z 6:20200630:021603.108 using configuration file: /etc/zabbix/zabbix_server.conf
    2020-06-30T02:16:03.138384000Z 6:20200630:021603.131 current database version (mandatory/optional): 05000000/05000000
    2020-06-30T02:16:03.138656000Z 6:20200630:021603.131 required mandatory version: 05000000
    2020-06-30T02:16:03.156455000Z 6:20200630:021603.154 server #0 started [main process]
    2020-06-30T02:16:03.156709000Z 156:20200630:021603.154 server #1 started [configuration syncer #1]
    2020-06-30T02:16:03.268492000Z 159:20200630:021603.264 server #4 started [http poller #1]
    2020-06-30T02:16:03.268880000Z 160:20200630:021603.265 server #5 started [discoverer #1]
    2020-06-30T02:16:03.275297000Z 157:20200630:021603.269 server #2 started [housekeeper #1]
    2020-06-30T02:16:03.275587000Z 158:20200630:021603.270 server #3 started [timer #1]
    2020-06-30T02:16:03.275866000Z 161:20200630:021603.270 server #6 started [history syncer #1]
    2020-06-30T02:16:03.282536000Z 162:20200630:021603.276 server #7 started [history syncer #2]
    2020-06-30T02:16:03.283047000Z 163:20200630:021603.277 server #8 started [history syncer #3]
    2020-06-30T02:16:03.283403000Z 164:20200630:021603.277 server #9 started [history syncer #4]
    2020-06-30T02:16:03.283710000Z 168:20200630:021603.277 server #13 started [task manager #1]
    2020-06-30T02:16:03.284018000Z 174:20200630:021603.278 server #19 started [unreachable poller #1]
    2020-06-30T02:16:03.291109000Z 171:20200630:021603.285 server #16 started [poller #3]
    2020-06-30T02:16:03.291428000Z 169:20200630:021603.287 server #14 started [poller #1]
    2020-06-30T02:16:03.295535000Z 170:20200630:021603.292 server #15 started [poller #2]
    2020-06-30T02:16:03.299473000Z 173:20200630:021603.296 server #18 started [poller #5]
    2020-06-30T02:16:03.304197000Z 172:20200630:021603.300 server #17 started [poller #4]
    2020-06-30T02:16:03.308356000Z 175:20200630:021603.304 server #20 started [trapper #1]
    2020-06-30T02:16:03.313559000Z 167:20200630:021603.309 server #12 started [self-monitoring #1]
    2020-06-30T02:16:03.340745000Z 166:20200630:021603.338 server #11 started [proxy poller #1]
    2020-06-30T02:16:03.359553000Z 180:20200630:021603.353 server #25 started [icmp pinger #1]
    2020-06-30T02:16:03.360062000Z 182:20200630:021603.353 server #27 started [alerter #1]
    2020-06-30T02:16:03.360427000Z 181:20200630:021603.354 server #26 started [alert manager #1]
    2020-06-30T02:16:03.360906000Z 177:20200630:021603.355 server #22 started [trapper #3]
    2020-06-30T02:16:03.369242000Z 179:20200630:021603.367 server #24 started [trapper #5]
    2020-06-30T02:16:03.377348000Z 183:20200630:021603.374 server #28 started [alerter #2]
    2020-06-30T02:16:03.377652000Z 178:20200630:021603.374 server #23 started [trapper #4]
    2020-06-30T02:16:03.385404000Z 176:20200630:021603.380 server #21 started [trapper #2]
    2020-06-30T02:16:03.452449000Z 185:20200630:021603.446 server #30 started [preprocessing manager #1]
    2020-06-30T02:16:03.452744000Z 184:20200630:021603.447 server #29 started [alerter #3]
    2020-06-30T02:16:03.459579000Z 165:20200630:021603.457 server #10 started [escalator #1]
    2020-06-30T02:16:03.485357000Z 187:20200630:021603.479 server #32 started [preprocessing worker #2]
    2020-06-30T02:16:03.485647000Z 189:20200630:021603.479 server #34 started [lld manager #1]
    2020-06-30T02:16:03.485926000Z 190:20200630:021603.479 server #35 started [lld worker #1]
    2020-06-30T02:16:03.486170000Z 188:20200630:021603.480 server #33 started [preprocessing worker #3]
    2020-06-30T02:16:03.486431000Z 191:20200630:021603.480 server #36 started [lld worker #2]
    2020-06-30T02:16:03.486683000Z 192:20200630:021603.481 server #37 started [alert syncer #1]
    2020-06-30T02:16:03.501455000Z 186:20200630:021603.497 server #31 started [preprocessing worker #1]
    2020-06-30T02:16:04.934574000Z 170:20200630:021604.932 Zabbix agent item "system.cpu.util[,guest_nice]" on host "Zabbix server" failed: first network error, wait for 15 seconds
    2020-06-30T02:16:19.967597000Z 174:20200630:021619.964 Zabbix agent item "system.cpu.util[,guest]" on host "Zabbix server" failed: another network error, wait for 15 seconds
    2020-06-30T02:16:34.011791000Z 174:20200630:021634.010 Zabbix agent item "system.swap.size[,pfree]" on host "Zabbix server" failed: another network error, wait for 15 seconds
    2020-06-30T02:16:42.434394000Z 164:20200630:021642.421 item "Zabbix server:zabbix[process,ipmi poller,avg,busy]" became not supported: No "ipmi poller" processes started.
    2020-06-30T02:16:43.441217000Z 163:20200630:021643.435 item "Zabbix server:zabbix[process,java poller,avg,busy]" became not supported: No "java poller" processes started.
    2020-06-30T02:16:48.461128000Z 164:20200630:021648.457 item "Zabbix server:zabbix[process,ipmi manager,avg,busy]" became not supported: No "ipmi manager" processes started.
    2020-06-30T02:16:48.462279000Z 164:20200630:021648.457 item "Zabbix server:zabbix[process,snmp trapper,avg,busy]" became not supported: No "snmp trapper" processes started.
    2020-06-30T02:16:49.035515000Z 174:20200630:021649.033 temporarily disabling Zabbix agent checks on host "Zabbix server": host unavailable
    2020-06-30T02:16:49.465837000Z 161:20200630:021649.460 item "Zabbix server:zabbix[process,vmware collector,avg,busy]" became not supported: No "vmware collector" processes started.
    2020-06-30T02:16:55.505335000Z 164:20200630:021655.501 item "Zabbix server:zabbix[vmware,buffer,pused]" became not supported: No "vmware collector" processes started.

    ---------------------------------------
    [root@localhost ~]# docker logs -tf 2b6cd926258b web
    2020-06-30T02:16:13.358994000Z ** Deploying Zabbix web-interface (Nginx) with MySQL database
    2020-06-30T02:16:13.359308000Z ** Using MYSQL_USER variable from ENV
    2020-06-30T02:16:13.359571000Z ** Using MYSQL_PASSWORD variable from ENV
    2020-06-30T02:16:13.359954000Z ********************
    2020-06-30T02:16:13.360209000Z * DB_SERVER_HOST: mysql-server
    2020-06-30T02:16:13.360450000Z * DB_SERVER_PORT: 3306
    2020-06-30T02:16:13.360688000Z * DB_SERVER_DBNAME: zabbix
    2020-06-30T02:16:13.360957000Z ********************
    2020-06-30T02:16:13.392923000Z ** Adding Zabbix virtual host (HTTP)
    2020-06-30T02:16:13.394871000Z **** Impossible to enable SSL support for Nginx. Certificates are missed.
    2020-06-30T02:16:13.395120000Z ** Preparing Zabbix frontend configuration file
    2020-06-30T02:16:13.400114000Z ** Updating '/etc/php7/php-fpm.d/zabbix.conf' parameter "php_value[max_execution_time]": '600'... updated
    2020-06-30T02:16:13.404627000Z ** Updating '/etc/php7/php-fpm.d/zabbix.conf' parameter "php_value[memory_limit]": '128M'... updated
    2020-06-30T02:16:13.410605000Z ** Updating '/etc/php7/php-fpm.d/zabbix.conf' parameter "php_value[post_max_size]": '16M'... updated
    2020-06-30T02:16:13.415303000Z ** Updating '/etc/php7/php-fpm.d/zabbix.conf' parameter "php_value[upload_max_filesize]": '2M'... updated
    2020-06-30T02:16:13.419818000Z ** Updating '/etc/php7/php-fpm.d/zabbix.conf' parameter "php_value[max_input_time]": '300'... updated
    2020-06-30T02:16:13.425871000Z ** Updating '/etc/php7/php-fpm.d/zabbix.conf' parameter "php_value[date.timezone]": 'Europe/Riga'... added
    2020-06-30T02:16:13.446273000Z ########################################################
    2020-06-30T02:16:13.446541000Z ** Executing supervisord
    2020-06-30T02:16:13.877739000Z 2020-06-30 02:16:13,873 INFO Included extra file "/etc/supervisor/conf.d/supervisord_zabbix.conf" during parsing
    2020-06-30T02:16:13.878005000Z 2020-06-30 02:16:13,873 INFO Included extra file "/etc/supervisor/conf.d/supervisord_zabbix.conf" during parsing
    2020-06-30T02:16:13.881512000Z 2020-06-30 02:16:13,880 INFO RPC interface 'supervisor' initialized
    2020-06-30T02:16:13.881771000Z 2020-06-30 02:16:13,880 INFO RPC interface 'supervisor' initialized
    2020-06-30T02:16:13.881984000Z 2020-06-30 02:16:13,880 INFO supervisord started with pid 1
    2020-06-30T02:16:13.882194000Z 2020-06-30 02:16:13,880 INFO supervisord started with pid 1
    2020-06-30T02:16:14.894392000Z 2020-06-30 02:16:14,890 INFO spawned: 'nginx' with pid 44
    2020-06-30T02:16:14.895100000Z 2020-06-30 02:16:14,890 INFO spawned: 'nginx' with pid 44
    2020-06-30T02:16:14.914525000Z 2020-06-30 02:16:14,902 INFO spawned: 'php-fpm7' with pid 45
    2020-06-30T02:16:14.915262000Z 2020-06-30 02:16:14,902 INFO spawned: 'php-fpm7' with pid 45
    2020-06-30T02:16:15.089508000Z [30-Jun-2020 02:16:15] NOTICE: fpm is running, pid 45
    2020-06-30T02:16:15.093767000Z [30-Jun-2020 02:16:15] NOTICE: ready to handle connections
    2020-06-30T02:16:17.097463000Z 2020-06-30 02:16:17,095 INFO success: nginx entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
    2020-06-30T02:16:17.098252000Z 2020-06-30 02:16:17,095 INFO success: nginx entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
    2020-06-30T02:16:17.099121000Z 2020-06-30 02:16:17,095 INFO success: php-fpm7 entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)
    2020-06-30T02:16:17.099951000Z 2020-06-30 02:16:17,095 INFO success: php-fpm7 entered RUNNING state, process has stayed up for > than 2 seconds (startsecs)

    -----------------------------
    浏览器查看

     

     













  • 相关阅读:
    bzoj3033: 太鼓达人
    CH Round #24
    王志明:编辑部不送审,把你的投稿直接拒掉了,怎么办?
    用TinyXml做XML解析示例 TinyXml查找唯一节点及修改节点操作
    QT XML文档的解析 QXmlStreamReader, DOM,SAX 三种解析方法 简单示例
    QT 使用QUdpSocket QUdpServer UDP 建立客户端与服务器端
    QT 使用QTcpServer QTcpSocket 建立TCP服务器端 和 客户端
    Qt QThread 线程创建,线程同步,线程通信 实例
    Qt QT的IO流 QT输入输出
    Qt QSortFilterProxyModel示例代码, 使用方法
  • 原文地址:https://www.cnblogs.com/5444de/p/12612643.html
Copyright © 2011-2022 走看看