Ad Widget

Collapse

Can't access Zabbix Frontend

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Brave
    Junior Member
    • Feb 2021
    • 6

    #1

    Can't access Zabbix Frontend

    I installed Zabbix 5.2 following the instructions on https://www.zabbix.com/download for Ubuntu 20.04 (VPS) w/ NGINX installed, after following all the stops, I can't access Zabbix frontend to finish the install, I tried accessing with my domain and server IP (zabbix.domain.com/1.2.3.4), I even tried zabbix.domain.com/zabbix but I only get the "Welcome to nginx!" page. I tried reinstalling the OS and re doing the process but ended up with the same result.

    Code:
    root@zabbix:~# sudo systemctl status zabbix-server
    ● zabbix-server.service - Zabbix Server
    Loaded: loaded (/lib/systemd/system/zabbix-server.service; enabled; vendor preset: enabled)
    Active: active (running) since Mon 2021-02-15 12:52:56 UTC; 11min ago
    Main PID: 23186 (zabbix_server)
    Tasks: 38 (limit: 1074)
    Memory: 44.3M
    CGroup: /system.slice/zabbix-server.service
    ├─23186 /usr/sbin/zabbix_server -c /etc/zabbix/zabbix_server.conf
    ├─23193 /usr/sbin/zabbix_server: configuration syncer [synced configuration in 0.040898 sec, idle 60 sec]
    ├─23204 /usr/sbin/zabbix_server: housekeeper [startup idle for 30 minutes]
    ├─23205 /usr/sbin/zabbix_server: timer #1 [updated 0 hosts, suppressed 0 events in 0.001220 sec, idle 59 sec]
    ├─23206 /usr/sbin/zabbix_server: http poller #1 [got 0 values in 0.000657 sec, idle 5 sec]
    ├─23207 /usr/sbin/zabbix_server: discoverer #1 [processed 0 rules in 0.001279 sec, idle 60 sec]
    ├─23208 /usr/sbin/zabbix_server: history syncer #1 [processed 0 values, 0 triggers in 0.000017 sec, idle 1 sec]
    ├─23211 /usr/sbin/zabbix_server: history syncer #2 [processed 0 values, 0 triggers in 0.000075 sec, idle 1 sec]
    ├─23212 /usr/sbin/zabbix_server: history syncer #3 [processed 1 values, 1 triggers in 0.003029 sec, idle 1 sec]
    ├─23213 /usr/sbin/zabbix_server: history syncer #4 [processed 0 values, 0 triggers in 0.000019 sec, idle 1 sec]
    ├─23216 /usr/sbin/zabbix_server: escalator #1 [processed 0 escalations in 0.000969 sec, idle 3 sec]
    ├─23218 /usr/sbin/zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000048 sec, idle 5 sec]
    ├─23219 /usr/sbin/zabbix_server: self-monitoring [processed data in 0.000059 sec, idle 1 sec]
    ├─23221 /usr/sbin/zabbix_server: task manager [processed 0 task(s) in 0.000715 sec, idle 5 sec]
    ├─23222 /usr/sbin/zabbix_server: poller #1 [got 1 values in 0.000662 sec, idle 1 sec]
    ├─23223 /usr/sbin/zabbix_server: poller #2 [got 0 values in 0.000014 sec, idle 1 sec]
    ├─23226 /usr/sbin/zabbix_server: poller #3 [got 0 values in 0.000019 sec, idle 1 sec]
    ├─23228 /usr/sbin/zabbix_server: poller #4 [got 0 values in 0.000015 sec, idle 1 sec]
    ├─23229 /usr/sbin/zabbix_server: poller #5 [got 0 values in 0.000012 sec, idle 1 sec]
    ├─23231 /usr/sbin/zabbix_server: unreachable poller #1 [got 0 values in 0.000035 sec, idle 5 sec]
    ├─23232 /usr/sbin/zabbix_server: trapper #1 [processed data in 0.000000 sec, waiting for connection]
    ├─23233 /usr/sbin/zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]
    ├─23234 /usr/sbin/zabbix_server: trapper #3 [processed data in 0.000000 sec, waiting for connection]
    ├─23240 /usr/sbin/zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]
    ├─23243 /usr/sbin/zabbix_server: trapper #5 [processed data in 0.003675 sec, waiting for connection]
    ├─23244 /usr/sbin/zabbix_server: icmp pinger #1 [got 0 values in 0.000024 sec, idle 5 sec]
    ├─23245 /usr/sbin/zabbix_server: alert manager #1 [sent 0, failed 0 alerts, idle 5.004500 sec during 5.004581 sec]
    ├─23246 /usr/sbin/zabbix_server: alerter #1 started
    ├─23247 /usr/sbin/zabbix_server: alerter #2 started
    ├─23248 /usr/sbin/zabbix_server: alerter #3 started
    ├─23251 /usr/sbin/zabbix_server: preprocessing manager #1 [queued 0, processed 5 values, idle 5.001998 sec during 5.002126 sec]
    ├─23252 /usr/sbin/zabbix_server: preprocessing worker #1 started
    ├─23253 /usr/sbin/zabbix_server: preprocessing worker #2 started
    ├─23254 /usr/sbin/zabbix_server: preprocessing worker #3 started
    ├─23255 /usr/sbin/zabbix_server: lld manager #1 [processed 0 LLD rules, idle 5.016865sec during 5.017059 sec]
    ├─23256 /usr/sbin/zabbix_server: lld worker #1 started
    ├─23257 /usr/sbin/zabbix_server: lld worker #2 started
    └─23258 /usr/sbin/zabbix_server: alert syncer [queued 0 alerts(s), flushed 0 result(s) in 0.000983 sec, idle 1 sec]
    root@zabbix:~#
    Code:
    root@zabbix:~# cat /etc/zabbix/nginx.conf
    server {
    listen 80;
    server_name zabbix.domain.com;
    Code:
    root@zabbix:/var/log/zabbix# cat zabbix_server.log
    23186:20210215:125255.990 Starting Zabbix Server. Zabbix 5.2.4 (revision e9f58de09c).
    23186:20210215:125255.990 ****** Enabled features ******
    23186:20210215:125255.990 SNMP monitoring: YES
    23186:20210215:125255.990 IPMI monitoring: YES
    23186:20210215:125255.990 Web monitoring: YES
    23186:20210215:125255.990 VMware monitoring: YES
    23186:20210215:125255.990 SMTP authentication: YES
    23186:20210215:125255.990 ODBC: YES
    23186:20210215:125255.990 SSH support: YES
    23186:20210215:125255.990 IPv6 support: YES
    23186:20210215:125255.991 TLS support: YES
    23186:20210215:125255.991 ******************************
    23186:20210215:125255.991 using configuration file: /etc/zabbix/zabbix_server.conf
    23186:20210215:125256.141 current database version (mandatory/optional): 05020000/05020000
    23186:20210215:125256.141 required mandatory version: 05020000
    23186:20210215:125256.220 server #0 started [main process]
    23193:20210215:125256.222 server #1 started [configuration syncer #1]
    23208:20210215:125256.431 server #6 started [history syncer #1]
    23206:20210215:125256.432 server #4 started [http poller #1]
    23205:20210215:125256.433 server #3 started [timer #1]
    23207:20210215:125256.434 server #5 started [discoverer #1]
    23204:20210215:125256.437 server #2 started [housekeeper #1]
    23212:20210215:125256.455 server #8 started [history syncer #3]
    23211:20210215:125256.458 server #7 started [history syncer #2]
    23213:20210215:125256.463 server #9 started [history syncer #4]
    23216:20210215:125256.470 server #10 started [escalator #1]
    23218:20210215:125256.479 server #11 started [proxy poller #1]
    23219:20210215:125256.485 server #12 started [self-monitoring #1]
    23223:20210215:125256.487 server #15 started [poller #2]
    23222:20210215:125256.488 server #14 started [poller #1]
    23221:20210215:125256.488 server #13 started [task manager #1]
    23226:20210215:125256.499 server #16 started [poller #3]
    23228:20210215:125256.502 server #17 started [poller #4]
    23229:20210215:125256.504 server #18 started [poller #5]
    23231:20210215:125256.505 server #19 started [unreachable poller #1]
    23232:20210215:125256.513 server #20 started [trapper #1]
    23234:20210215:125256.517 server #22 started [trapper #3]
    23233:20210215:125256.517 server #21 started [trapper #2]
    23240:20210215:125256.534 server #23 started [trapper #4]
    23243:20210215:125256.536 server #24 started [trapper #5]
    23244:20210215:125256.541 server #25 started [icmp pinger #1]
    23245:20210215:125256.543 server #26 started [alert manager #1]
    23246:20210215:125256.547 server #27 started [alerter #1]
    23247:20210215:125256.553 server #28 started [alerter #2]
    23248:20210215:125256.553 server #29 started [alerter #3]
    23251:20210215:125256.559 server #30 started [preprocessing manager #1]
    23253:20210215:125256.563 server #32 started [preprocessing worker #2]
    23252:20210215:125256.564 server #31 started [preprocessing worker #1]
    23254:20210215:125256.565 server #33 started [preprocessing worker #3]
    23257:20210215:125256.565 server #36 started [lld worker #2]
    23256:20210215:125256.566 server #35 started [lld worker #1]
    23258:20210215:125256.566 server #37 started [alert syncer #1]
    23255:20210215:125256.567 server #34 started [lld manager #1]
    23222:20210215:125301.506 enabling Zabbix agent checks on host "Zabbix server": host became available
    23211:20210215:125322.494 item "Zabbix server:system.swap.size[,free]" became not supported: Cannot be calculated because swap file size is 0.
    23212:20210215:125323.497 item "Zabbix server:system.swap.size[,pfree]" became not supported: Cannot be calculated because swap file size is 0.
    23213:20210215:125342.514 item "Zabbix server:zabbix[process,ipmi poller,avg,busy]" became not supported: No "ipmi poller" processes started.
    23208:20210215:125343.515 item "Zabbix server:zabbix[process,java poller,avg,busy]" became not supported: No "java poller" processes started.
    23211:20210215:125348.521 item "Zabbix server:zabbix[process,snmp trapper,avg,busy]" became not supported: No "snmp trapper" processes started.
    23211:20210215:125348.521 item "Zabbix server:zabbix[process,ipmi manager,avg,busy]" became not supported: No "ipmi manager" processes started.
    23208:20210215:125349.521 item "Zabbix server:zabbix[process,vmware collector,avg,busy]" became not supported: No "vmware collector" processes started.
    23211:20210215:125356.530 item "Zabbix server:zabbix[vmware,buffer,pused]" became not supported: No "vmware collector" processes started.
    root@zabbix:/var/log/zabbix#
    Code:
    root@zabbix:/var/log/zabbix# cat zabbix_agentd.log
    22012:20210215:124810.471 Starting Zabbix Agent [Zabbix server]. Zabbix 5.2.4 (revision e9f58de09c).
    22012:20210215:124810.471 **** Enabled features ****
    22012:20210215:124810.471 IPv6 support: YES
    22012:20210215:124810.471 TLS support: YES
    22012:20210215:124810.471 **************************
    22012:20210215:124810.471 using configuration file: /etc/zabbix/zabbix_agentd.conf
    22012:20210215:124810.472 agent #0 started [main process]
    22013:20210215:124810.487 agent #1 started [collector]
    22014:20210215:124810.492 agent #2 started[listener #1]
    22015:20210215:124810.495 agent #3 started[listener #2]
    22016:20210215:124810.497 agent #4 started[listener #3]
    22019:20210215:124810.504 agent #5 started [active checks #1]
    22019:20210215:124810.518 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)
    22012:20210215:125255.809 Got signal [signal:15(SIGTERM),sender_pid:23161,sender_uid:113 ,reason:0]. Exiting ...
    22012:20210215:125255.815 Zabbix Agent stopped. Zabbix 5.2.4 (revision e9f58de09c).
    23176:20210215:125255.943 Starting Zabbix Agent [Zabbix server]. Zabbix 5.2.4 (revision e9f58de09c).
    23176:20210215:125255.943 **** Enabled features ****
    23176:20210215:125255.943 IPv6 support: YES
    23176:20210215:125255.943 TLS support: YES
    23176:20210215:125255.943 **************************
    23176:20210215:125255.943 using configuration file: /etc/zabbix/zabbix_agentd.conf
    23176:20210215:125255.944 agent #0 started [main process]
    23177:20210215:125255.955 agent #1 started [collector]
    23178:20210215:125255.956 agent #2 started[listener #1]
    23180:20210215:125255.977 agent #4 started[listener #3]
    23179:20210215:125255.984 agent #3 started[listener #2]
    23181:20210215:125256.001 agent #5 started [active checks #1]
    23181:20210215:125256.003 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)
    23181:20210215:125355.019 active check configuration update from [127.0.0.1:10051] is working again
    root@zabbix:/var/log/zabbix#
    UPDATE: I changed "/etc/nginx/sites-available/default" port to 82 and restarted nginx and I was able to access Zabbix.
    Last edited by Brave; 15-02-2021, 20:16.
  • provels
    Member
    • Apr 2020
    • 93

    #2
    FWIW, the Zabbix frontend on my 4.4.6 is
    HTML Code:
    http://<hostname>/zabbix

    Comment

    • Brave
      Junior Member
      • Feb 2021
      • 6

      #3
      Originally posted by provels
      FWIW, the Zabbix frontend on my 4.4.6 is
      HTML Code:
      http://<hostname>/zabbix
      I've already tried accessing the frontend that way and got a 404, when I try accessing it as http://zabbix.domain.com I just get the default page, a few mins ago it actually showed the setup page but when I clicked to start the setup I got a 404 but now its just the default nginx page.

      Comment

      • T.66
        Junior Member
        • Feb 2021
        • 4

        #4
        Have you tried following this procedure ?
        Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


        Otherwise try to install it with apache web server
        Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!

        Comment

        • Brave
          Junior Member
          • Feb 2021
          • 6

          #5
          Originally posted by T.66
          Have you tried following this procedure ?
          Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


          Otherwise try to install it with apache web server
          https://www.zabbix.com/download?zabb...ysql&ws=apache
          I did follow that and even tried following other guides, the problem was the default site file for nginx, the default site file was running under port 80 along with the zabbix file, after I unlinked the default file everything started working.

          Comment

          • Ravindra
            Junior Member
            • Oct 2022
            • 2

            #6
            How did you do that

            Comment

            • Vorting
              Junior Member
              • Sep 2023
              • 1

              #7
              Originally posted by Brave

              I did follow that and even tried following other guides, the problem was the default site file for nginx, the default site file was running under port 80 along with the zabbix file, after I unlinked the default file everything started working.
              Greetings. Please tell me where and how I must do unlinking?

              Comment

              • robinj_ca
                Junior Member
                • Sep 2023
                • 2

                #8
                First of all, check what root directive says. Example: for default the content for Zabbix is on the path /usr/share/zabbix, so you should have in you vhosts conf: root /usr/share/zabbix.
                Also, www-data needs to be owner: chown -R www:data /usr/share/zabbix.
                Post your vhosts file here

                Comment

                Working...