Ad Widget

Collapse

Cannot open Zabbix Frontend

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • User!@#456
    Junior Member
    • Sep 2021
    • 1

    #1

    Cannot open Zabbix Frontend

    I am new to using Zabbix and am currently trying to set up my Zabbix server on Oracle Linux 8.
    I am using docker-compose_v3_ol_mysql_latest.yaml from the Zabbix docker github from the guide on youtube (https://www.youtube.com/watch?v=ScKlF0ICVYA).
    Whenever I run the file and run docker ps, zabbix-docker_zabbix-web-nginx-mysql_1 status always shows unhealthy.
    When I inspect the container it shows:

    [root@localhost zabbix-docker]# docker inspect b8d0dd5c03fc
    [
    {
    "Id": "b8d0dd5c03fc53121e113f1cac3527247f43d45bbb3bb 5bc7 15e21e24254072e",
    "Created": "2021-09-29T16:10:40.054641634Z",
    "Path": "docker-entrypoint.sh",
    "Args": [],
    "State": {
    "Status": "running",
    "Running": true,
    "Paused": false,
    "Restarting": false,
    "OOMKilled": false,
    "Dead": false,
    "Pid": 7733,
    "ExitCode": 0,
    "Error": "",
    "StartedAt": "2021-09-29T16:10:41.287531767Z",
    "FinishedAt": "0001-01-01T00:00:00Z",
    "Health": {
    "Status": "unhealthy",
    "FailingStreak": 43,
    "Log": [
    {
    "Start": "2021-09-29T09:17:35.550296718-07:00",
    "End": "2021-09-29T09:17:35.606142353-07:00",
    "ExitCode": 7,
    "Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8080: Connection refused\n"
    },
    {
    "Start": "2021-09-29T09:17:45.641473351-07:00",
    "End": "2021-09-29T09:17:45.696333658-07:00",
    "ExitCode": 7,
    "Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8080: Connection refused\n"
    },
    {
    "Start": "2021-09-29T09:17:55.733051903-07:00",
    "End": "2021-09-29T09:17:55.796813437-07:00",
    "ExitCode": 7,
    "Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8080: Connection refused\n"
    },
    {
    "Start": "2021-09-29T09:18:05.83261133-07:00",
    "End": "2021-09-29T09:18:05.888144801-07:00",
    "ExitCode": 7,
    "Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8080: Connection refused\n"
    },
    {
    "Start": "2021-09-29T09:18:15.92376229-07:00",
    "End": "2021-09-29T09:18:15.9813189-07:00",
    "ExitCode": 7,
    "Output": " % Total % Received % Xferd Average Speed Time Time Time Current\n Dload Upload Total Spent Left Speed\n\r 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0curl: (7) Failed to connect to localhost port 8080: Connection refused\n"
    }
    ]
    }
    },
    "Image": "sha256:9b058a42258af860759311b86804a8ea72030c 439b a5ce2ddaae4ac3bbf2e8e1",
    "ResolvConfPath": "/var/lib/docker/containers/b8d0dd5c03fc53121e113f1cac3527247f43d45bbb3bb5bc71 5e21e24254072e/resolv.conf",
    "HostnamePath": "/var/lib/docker/containers/b8d0dd5c03fc53121e113f1cac3527247f43d45bbb3bb5bc71 5e21e24254072e/hostname",
    "HostsPath": "/var/lib/docker/containers/b8d0dd5c03fc53121e113f1cac3527247f43d45bbb3bb5bc71 5e21e24254072e/hosts",
    "LogPath": "/var/lib/docker/containers/b8d0dd5c03fc53121e113f1cac3527247f43d45bbb3bb5bc71 5e21e24254072e/b8d0dd5c03fc53121e113f1cac3527247f43d45bbb3bb5bc71 5e21e24254072e-json.log",
    "Name": "/zabbix-docker_zabbix-web-nginx-mysql_1",
    "RestartCount": 0,
    "Driver": "overlay2",
    "Platform": "linux",
    "MountLabel": "",
    "ProcessLabel": "",
    "AppArmorProfile": "",
    "ExecIDs": null,
    "HostConfig": {
    "Binds": [
    "/etc/localtime:/etc/localtime:ro",
    "/root/zabbix-docker/zbx_env/usr/share/zabbix/modules:/usr/share/zabbix/modules:ro",
    "/root/zabbix-docker/zbx_env/etc/ssl/nginx:/etc/ssl/nginx:ro",
    "/etc/timezone:/etc/timezone:ro"
    ],
    "ContainerIDFile": "",
    "LogConfig": {
    "Type": "json-file",
    "Config": {}
    },
    "NetworkMode": "zabbix-docker_zbx_net_backend",
    "PortBindings": {
    "8080/tcp": [
    {
    "HostIp": "",
    "HostPort": "80"
    }
    ],
    "8443/tcp": [
    {
    "HostIp": "",
    "HostPort": "443"
    }
    ]
    },
    "RestartPolicy": {
    "Name": "",
    "MaximumRetryCount": 0
    },
    "AutoRemove": false,
    "VolumeDriver": "",
    "VolumesFrom": [],
    "CapAdd": null,
    "CapDrop": null,
    "CgroupnsMode": "host",
    "Dns": null,
    "DnsOptions": null,
    "DnsSearch": null,
    "ExtraHosts": null,
    "GroupAdd": null,
    "IpcMode": "private",
    "Cgroup": "",
    "Links": null,
    "OomScoreAdj": 0,
    "PidMode": "",
    "Privileged": false,
    "PublishAllPorts": false,
    "ReadonlyRootfs": false,
    "SecurityOpt": null,
    "UTSMode": "",
    "UsernsMode": "",
    "ShmSize": 67108864,
    "Sysctls": {
    "net.core.somaxconn": "65535"
    },
    "Runtime": "runc",
    "ConsoleSize": [
    0,
    0
    ],
    "Isolation": "",
    "CpuShares": 0,
    "Memory": 536870912,
    "NanoCpus": 700000000,
    "CgroupParent": "",
    "BlkioWeight": 0,
    "BlkioWeightDevice": null,
    "BlkioDeviceReadBps": null,
    "BlkioDeviceWriteBps": null,
    "BlkioDeviceReadIOps": null,
    "BlkioDeviceWriteIOps": null,
    "CpuPeriod": 0,
    "CpuQuota": 0,
    "CpuRealtimePeriod": 0,
    "CpuRealtimeRuntime": 0,
    "CpusetCpus": "",
    "CpusetMems": "",
    "Devices": null,
    "DeviceCgroupRules": null,
    "DeviceRequests": null,
    "KernelMemory": 0,
    "KernelMemoryTCP": 0,
    "MemoryReservation": 268435456,
    "MemorySwap": 1073741824,
    "MemorySwappiness": null,
    "OomKillDisable": false,
    "PidsLimit": null,
    "Ulimits": null,
    "CpuCount": 0,
    "CpuPercent": 0,
    "IOMaximumIOps": 0,
    "IOMaximumBandwidth": 0,
    "Mounts": [
    {
    "Type": "bind",
    "Source": "/root/zabbix-docker/.MYSQL_USER",
    "Target": "/run/secrets/MYSQL_USER",
    "ReadOnly": true
    },
    {
    "Type": "bind",
    "Source": "/root/zabbix-docker/.MYSQL_PASSWORD",
    "Target": "/run/secrets/MYSQL_PASSWORD",
    "ReadOnly": true
    }
    ],
    "MaskedPaths": [
    "/proc/asound",
    "/proc/acpi",
    "/proc/kcore",
    "/proc/keys",
    "/proc/latency_stats",
    "/proc/timer_list",
    "/proc/timer_stats",
    "/proc/sched_debug",
    "/proc/scsi",
    "/sys/firmware"
    ],
    "ReadonlyPaths": [
    "/proc/bus",
    "/proc/fs",
    "/proc/irq",
    "/proc/sys",
    "/proc/sysrq-trigger"
    ]
    },
    "GraphDriver": {
    "Data": {
    "LowerDir": "/var/lib/docker/overlay2/9fbb6cb9bcac2106d08691d0738ead29921c24a109b0a3a0a4 d9719884933d32-init/diff:/var/lib/docker/overlay2/ef6c28dbe7c385dc792c3bfc9f97e19e973b3bf8dfbbe5d14e 1a2d4ec01183fb/diff:/var/lib/docker/overlay2/3d8acca0226ef66c23c888a126780de7d19a3d5d5c9a938e36 a1932856b8b2dc/diff:/var/lib/docker/overlay2/29c21940102d0cefb332d97153ba71dac9c080935152e58790 3c02806e177511/diff:/var/lib/docker/overlay2/1e02a6570f3eccb6129ccd4eef88d47dfe557236f60b8abccf 3a6376ab2cf9eb/diff:/var/lib/docker/overlay2/a6e240e853752343e0fb7c4899a63d18d88944a498444f38da 79d7b01784ae3f/diff:/var/lib/docker/overlay2/81f6a2aa6f4c3dd3337787c86c284e4a177abdcdc1c3291a4d f8511b1903dd44/diff",
    "MergedDir": "/var/lib/docker/overlay2/9fbb6cb9bcac2106d08691d0738ead29921c24a109b0a3a0a4 d9719884933d32/merged",
    "UpperDir": "/var/lib/docker/overlay2/9fbb6cb9bcac2106d08691d0738ead29921c24a109b0a3a0a4 d9719884933d32/diff",
    "WorkDir": "/var/lib/docker/overlay2/9fbb6cb9bcac2106d08691d0738ead29921c24a109b0a3a0a4 d9719884933d32/work"
    },
    "Name": "overlay2"
    },
    "Mounts": [
    {
    "Type": "bind",
    "Source": "/root/zabbix-docker/zbx_env/usr/share/zabbix/modules",
    "Destination": "/usr/share/zabbix/modules",
    "Mode": "ro",
    "RW": false,
    "Propagation": "rprivate"
    },
    {
    "Type": "bind",
    "Source": "/root/zabbix-docker/zbx_env/etc/ssl/nginx",
    "Destination": "/etc/ssl/nginx",
    "Mode": "ro",
    "RW": false,
    "Propagation": "rprivate"
    },
    {
    "Type": "bind",
    "Source": "/etc/timezone",
    "Destination": "/etc/timezone",
    "Mode": "ro",
    "RW": false,
    "Propagation": "rprivate"
    },
    {
    "Type": "bind",
    "Source": "/root/zabbix-docker/.MYSQL_USER",
    "Destination": "/run/secrets/MYSQL_USER",
    "Mode": "",
    "RW": false,
    "Propagation": "rprivate"
    },
    {
    "Type": "bind",
    "Source": "/root/zabbix-docker/.MYSQL_PASSWORD",
    "Destination": "/run/secrets/MYSQL_PASSWORD",
    "Mode": "",
    "RW": false,
    "Propagation": "rprivate"
    },
    {
    "Type": "bind",
    "Source": "/etc/localtime",
    "Destination": "/etc/localtime",
    "Mode": "ro",
    "RW": false,
    "Propagation": "rprivate"
    }
    ],
    "Config": {
    "Hostname": "b8d0dd5c03fc",
    "Domainname": "",
    "User": "1997",
    "AttachStdin": false,
    "AttachStdout": false,
    "AttachStderr": false,
    "ExposedPorts": {
    "8080/tcp": {},
    "8443/tcp": {}
    },
    "Tty": false,
    "OpenStdin": false,
    "StdinOnce": false,
    "Env": [
    "MYSQL_USER_FILE=/run/secrets/MYSQL_USER",
    "MYSQL_PASSWORD_FILE=/run/secrets/MYSQL_PASSWORD",
    "MYSQL_ROOT_PASSWORD_FILE=/run/secrets/MYSQL_ROOT_PASSWORD",
    "MYSQL_DATABASE=zabbix",
    "ZBX_SERVER_NAME=Composed installation",
    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "TERM=xterm",
    "ZBX_VERSION=5.4.4",
    "ZBX_SOURCES=https://git.zabbix.com/scm/zbx/zabbix.git"
    ],
    "Cmd": null,
    "Healthcheck": {
    "Test": [
    "CMD",
    "curl",
    "-f",
    "http://localhost:8080/"
    ],
    "Interval": 10000000000,
    "Timeout": 5000000000,
    "StartPeriod": 30000000000,
    "Retries": 3
    },
    "Image": "zabbix/zabbix-web-nginx-mysqll-5.4-latest",
    "Volumes": {
    "/etc/localtime": {},
    "/etc/ssl/nginx": {},
    "/etc/timezone": {},
    "/usr/share/zabbix/modules": {}
    },
    "WorkingDir": "/usr/share/zabbix",
    "Entrypoint": [
    "docker-entrypoint.sh"
    ],
    "OnBuild": null,
    "Labels": {
    "com.docker.compose.config-hash": "c54e269888c24a8f6655fcd68514396a3afd03e4c0d2e 15df c7047d1bf7373cd",
    "com.docker.compose.container-number": "1",
    "com.docker.compose.oneoff": "False",
    "com.docker.compose.project": "zabbix-docker",
    "com.docker.compose.project.config_files": "docker-compose_v3_ol_mysql_latest.yaml",
    "com.docker.compose.project.working_dir": "/root/zabbix-docker",
    "com.docker.compose.service": "zabbix-web-nginx-mysql",
    "com.docker.compose.version": "1.29.2",
    "com.zabbix.company": "Zabbix LLC",
    "com.zabbix.component": "zabbix-frontend",
    "com.zabbix.dbtype": "mysql",
    "com.zabbix.description": "Zabbix frontend on Nginx web-server with MySQL database support",
    "com.zabbix.os": "oracle linux",
    "com.zabbix.webserver": "nginx",
    "org.opencontainers.image.authors": "Alexey Pustovalov <[email protected]>",
    "org.opencontainers.image.description": "Zabbix web-interface based on Nginx web server with MySQL database support",
    "org.opencontainers.image.documentation": "https://www.zabbix.com/documentation/5.4/manual/installation/containers",
    "org.opencontainers.image.licenses": "GPL v2.0",
    "org.opencontainers.image.source": "https://git.zabbix.com/scm/zbx/zabbix.git",
    "org.opencontainers.image.title": "Zabbix web-interface (Nginx, MySQL)",
    "org.opencontainers.image.url": "https://zabbix.com/",
    "org.opencontainers.image.vendor": "Zabbix LLC",
    "org.opencontainers.image.version": "5.4.4"
    },
    "StopSignal": "SIGTERM",
    "StopTimeout": 10
    },
    "NetworkSettings": {
    "Bridge": "",
    "SandboxID": "cc846904fdcac4ca5e00a1dc6ba74d2bbd99c24d607cf 4255 131a2771d61d082",
    "HairpinMode": false,
    "LinkLocalIPv6Address": "",
    "LinkLocalIPv6PrefixLen": 0,
    "Ports": {
    "8080/tcp": [
    {
    "HostIp": "0.0.0.0",
    "HostPort": "80"
    },
    {
    "HostIp": "::",
    "HostPort": "80"
    }
    ],
    "8443/tcp": [
    {
    "HostIp": "0.0.0.0",
    "HostPort": "443"
    },
    {
    "HostIp": "::",
    "HostPort": "443"
    }
    ]
    },
    "SandboxKey": "/var/run/docker/netns/cc846904fdca",
    "SecondaryIPAddresses": null,
    "SecondaryIPv6Addresses": null,
    "EndpointID": "",
    "Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "IPAddress": "",
    "IPPrefixLen": 0,
    "IPv6Gateway": "",
    "MacAddress": "",
    "Networks": {
    "zabbix-docker_zbx_net_backend": {
    "IPAMConfig": null,
    "Links": null,
    "Aliases": [
    "zabbix-web-nginx-ol-mysql",
    "b8d0dd5c03fc",
    "zabbix-web-nginx-mysql-ol",
    "zabbix-web-nginx-mysql"
    ],
    "NetworkID": "7cbee256b1b2173c2b8f299077c516ee9cd33519ce4ec 2a9d a1fa71c9888d761",
    "EndpointID": "70cca134731db827ff765efc17894c707cad8ffbecdc0 aec3 9544c7ddd1e4de4",
    "Gateway": "172.16.239.1",
    "IPAddress": "172.16.239.4",
    "IPPrefixLen": 24,
    "IPv6Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "MacAddress": "02:42:ac:10:ef:04",
    "DriverOpts": null
    },
    "zabbix-docker_zbx_net_frontend": {
    "IPAMConfig": null,
    "Links": null,
    "Aliases": [
    "b8d0dd5c03fc",
    "zabbix-web-nginx-mysql"
    ],
    "NetworkID": "5a984cca87f8c64773053db860c581f3ce69fa1b502af 31b3 42461e4fb44abe9",
    "EndpointID": "5d5657e74651b3389e78db2f0472b0146a91e7025f76e cebc 26c02e720dbd600",
    "Gateway": "172.16.238.1",
    "IPAddress": "172.16.238.3",
    "IPPrefixLen": 24,
    "IPv6Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "MacAddress": "02:42:ac:10:ee:03",
    "DriverOpts": null
    }
    }
    }
    }
    ]

    I have disabled SELinux and have allowed port 8080 on my firewall so I am not sure how to resolve this.

    Any advice would be much appreciated. Thanks.
  • vodo1988
    Junior Member
    • Feb 2022
    • 1

    #2
    anyone has a solution to this problem?

    Comment

    Working...