Ad Widget

Collapse

Blank dashboard after login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • LucasB
    Junior Member
    • Jun 2020
    • 3

    #1

    Blank dashboard after login

    Hello,

    I just installed Zabbix 5 from sources, I used https://www.zabbix.com/documentation...lation/install

    Everything worked just fine until the first login.

    I use the default username and password (Admin & zabbix), it passed and then I have a blank page instead of the dashboard. With Firefox, I managed to see that I got a 500 error for 'zabbix.php?action=dashboard.view'.

    I don't understand why I was able to do the frontend setup but now I have apache error.

    My zabbix_server seems ok:
    Code:
    ps -edf | grep zabbix
    zabbix 3912 1 0 16:06 ? 00:00:00 zabbix_agentd
    zabbix 3913 3912 0 16:06 ? 00:00:00 zabbix_agentd: collector [idle 1 sec]
    zabbix 3914 3912 0 16:06 ? 00:00:00 zabbix_agentd: listener #1 [waiting for connection]
    zabbix 3915 3912 0 16:06 ? 00:00:00 zabbix_agentd: listener #2 [waiting for connection]
    zabbix 3916 3912 0 16:06 ? 00:00:00 zabbix_agentd: listener #3 [waiting for connection]
    zabbix 3917 3912 0 16:06 ? 00:00:00 zabbix_agentd: active checks #1 [idle 1 sec]
    root 3938 3570 0 16:06 pts/0 00:00:00 tail -f /tmp/zabbix_server.log
    zabbix 4112 1 0 16:09 ? 00:00:00 zabbix_server
    zabbix 4113 4112 0 16:09 ? 00:00:00 zabbix_server: configuration syncer [synced configuration in 0.062117 sec, idle 60 sec]
    zabbix 4114 4112 0 16:09 ? 00:00:00 zabbix_server: housekeeper [startup idle for 30 minutes]
    zabbix 4115 4112 0 16:09 ? 00:00:00 zabbix_server: timer #1 [updated 0 hosts, suppressed 0 events in 0.000906 sec, idle 59 sec]
    zabbix 4116 4112 0 16:09 ? 00:00:00 zabbix_server: http poller #1 [got 0 values in 0.002477 sec, idle 5 sec]
    zabbix 4117 4112 0 16:09 ? 00:00:00 zabbix_server: discoverer #1 [processed 0 rules in 0.000998 sec, idle 60 sec]
    zabbix 4118 4112 0 16:09 ? 00:00:00 zabbix_server: history syncer #1 [processed 1 values, 0 triggers in 0.004023 sec, idle 1 sec]
    zabbix 4119 4112 0 16:09 ? 00:00:00 zabbix_server: history syncer #2 [processed 0 values, 0 triggers in 0.000046 sec, idle 1 sec]
    zabbix 4120 4112 0 16:09 ? 00:00:00 zabbix_server: history syncer #3 [processed 0 values, 0 triggers in 0.000047 sec, idle 1 sec]
    zabbix 4121 4112 0 16:09 ? 00:00:00 zabbix_server: history syncer #4 [processed 0 values, 0 triggers in 0.000026 sec, idle 1 sec]
    zabbix 4122 4112 0 16:09 ? 00:00:00 zabbix_server: escalator #1 [processed 0 escalations in 0.001749 sec, idle 3 sec]
    zabbix 4123 4112 0 16:09 ? 00:00:00 zabbix_server: proxy poller #1 [exchanged data with 0 proxies in 0.000042 sec, idle 5 sec]
    zabbix 4124 4112 0 16:09 ? 00:00:00 zabbix_server: self-monitoring [processed data in 0.000037 sec, idle 1 sec]
    zabbix 4125 4112 0 16:09 ? 00:00:00 zabbix_server: task manager [processed 0 task(s) in 0.000565 sec, idle 5 sec]
    zabbix 4126 4112 0 16:09 ? 00:00:00 zabbix_server: poller #1 [got 1 values in 0.000770 sec, idle 1 sec]
    zabbix 4127 4112 0 16:09 ? 00:00:00 zabbix_server: poller #2 [got 0 values in 0.000040 sec, idle 1 sec]
    zabbix 4128 4112 0 16:09 ? 00:00:00 zabbix_server: poller #3 [got 0 values in 0.000028 sec, idle 1 sec]
    zabbix 4129 4112 0 16:09 ? 00:00:00 zabbix_server: poller #4 [got 0 values in 0.000039 sec, idle 1 sec]
    zabbix 4130 4112 0 16:09 ? 00:00:00 zabbix_server: poller #5 [got 0 values in 0.000021 sec, idle 1 sec]
    zabbix 4131 4112 0 16:09 ? 00:00:00 zabbix_server: unreachable poller #1 [got 0 values in 0.000042 sec, idle 5 sec]
    zabbix 4132 4112 0 16:09 ? 00:00:00 zabbix_server: trapper #1 [processed data in 0.003657 sec, waiting for connection]
    zabbix 4133 4112 0 16:09 ? 00:00:00 zabbix_server: trapper #2 [processed data in 0.000000 sec, waiting for connection]
    zabbix 4134 4112 0 16:09 ? 00:00:00 zabbix_server: trapper #3 [processed data in 0.000000 sec, waiting for connection]
    zabbix 4135 4112 0 16:09 ? 00:00:00 zabbix_server: trapper #4 [processed data in 0.000000 sec, waiting for connection]
    zabbix 4136 4112 0 16:09 ? 00:00:00 zabbix_server: trapper #5 [processed data in 0.000000 sec, waiting for connection]
    zabbix 4137 4112 0 16:09 ? 00:00:00 zabbix_server: icmp pinger #1 [got 0 values in 0.000038 sec, idle 5 sec]
    zabbix 4138 4112 0 16:09 ? 00:00:00 zabbix_server: alert manager #1 [sent 0, failed 0 alerts, idle 5.006347 sec during 5.006451 sec]
    zabbix 4139 4112 0 16:09 ? 00:00:00 zabbix_server: alerter #1 started
    zabbix 4140 4112 0 16:09 ? 00:00:00 zabbix_server: alerter #2 started
    zabbix 4143 4112 0 16:09 ? 00:00:00 zabbix_server: alerter #3 started
    zabbix 4144 4112 0 16:09 ? 00:00:00 zabbix_server: preprocessing manager #1 [queued 0, processed 4 values, idle 5.002323 sec during 5.002471 sec]
    zabbix 4145 4112 0 16:09 ? 00:00:00 zabbix_server: preprocessing worker #1 started
    zabbix 4146 4112 0 16:09 ? 00:00:00 zabbix_server: preprocessing worker #2 started
    zabbix 4147 4112 0 16:09 ? 00:00:00 zabbix_server: preprocessing worker #3 started
    zabbix 4148 4112 0 16:09 ? 00:00:00 zabbix_server: lld manager #1 [processed 0 LLD rules during 5.004723 sec]
    zabbix 4149 4112 0 16:09 ? 00:00:00 zabbix_server: lld worker #1 started
    zabbix 4150 4112 0 16:09 ? 00:00:00 zabbix_server: lld worker #2 started
    zabbix 4151 4112 0 16:09 ? 00:00:00 zabbix_server: alert syncer [queued 0 alerts(s), flushed 0 result(s) in 0.001123 sec, idle 1 sec]
    root 5009 1830 0 16:33 pts/1 00:00:00 grep --color=auto zabbix
    Some logs:
    Code:
    /tmp/zabbix_server.log
    4112:20200615:160921.127 Starting Zabbix Server. Zabbix 5.0.1 (revision c2a0b03480).
    4112:20200615:160921.127 ****** Enabled features ******
    4112:20200615:160921.127 SNMP monitoring: YES
    4112:20200615:160921.127 IPMI monitoring: NO
    4112:20200615:160921.127 Web monitoring: YES
    4112:20200615:160921.127 VMware monitoring: NO
    4112:20200615:160921.127 SMTP authentication: YES
    4112:20200615:160921.128 ODBC: NO
    4112:20200615:160921.128 SSH support: NO
    4112:20200615:160921.128 IPv6 support: YES
    4112:20200615:160921.128 TLS support: YES
    4112:20200615:160921.128 ******************************
    4112:20200615:160921.128 using configuration file: /usr/local/etc/zabbix_server.conf
    4112:20200615:160921.146 current database version (mandatory/optional): 05000000/05000000
    4112:20200615:160921.146 required mandatory version: 05000000
    4112:20200615:160921.177 server #0 started [main process]
    4113:20200615:160921.179 server #1 started [configuration syncer #1]
    4125:20200615:160921.302 server #13 started [task manager #1]
    4126:20200615:160921.304 server #14 started [poller #1]
    4122:20200615:160921.314 server #10 started [escalator #1]
    4117:20200615:160921.318 server #5 started [discoverer #1]
    4118:20200615:160921.328 server #6 started [history syncer #1]
    4115:20200615:160921.330 server #3 started [timer #1]
    4116:20200615:160921.331 server #4 started [http poller #1]
    4119:20200615:160921.333 server #7 started [history syncer #2]
    4120:20200615:160921.334 server #8 started [history syncer #3]
    4121:20200615:160921.336 server #9 started [history syncer #4]
    4124:20200615:160921.337 server #12 started [self-monitoring #1]
    4123:20200615:160921.338 server #11 started [proxy poller #1]
    4114:20200615:160921.341 server #2 started [housekeeper #1]
    4127:20200615:160921.364 server #15 started [poller #2]
    4128:20200615:160921.381 server #16 started [poller #3]
    4129:20200615:160921.392 server #17 started [poller #4]
    4130:20200615:160921.403 server #18 started [poller #5]
    4132:20200615:160921.414 server #20 started [trapper #1]
    4135:20200615:160921.425 server #23 started [trapper #4]
    4138:20200615:160921.437 server #26 started [alert manager #1]
    4139:20200615:160921.439 server #27 started [alerter #1]
    4137:20200615:160921.440 server #25 started [icmp pinger #1]
    4140:20200615:160921.441 server #28 started [alerter #2]
    4131:20200615:160921.442 server #19 started [unreachable poller #1]
    4133:20200615:160921.452 server #21 started [trapper #2]
    4136:20200615:160921.464 server #24 started [trapper #5]
    4134:20200615:160921.475 server #22 started [trapper #3]
    4144:20200615:160921.517 server #30 started [preprocessing manager #1]
    4146:20200615:160921.518 server #32 started [preprocessing worker #2]
    4149:20200615:160921.518 server #35 started [lld worker #1]
    4148:20200615:160921.519 server #34 started [lld manager #1]
    4150:20200615:160921.519 server #36 started [lld worker #2]
    4143:20200615:160921.520 server #29 started [alerter #3]
    4147:20200615:160921.521 server #33 started [preprocessing worker #3]
    4151:20200615:160921.521 server #37 started [alert syncer #1]
    4145:20200615:160921.522 server #31 started [preprocessing worker #1]
    4118:20200615:161653.028 item "Zabbix server:vfs.dev.read.await[sda]" became supported
    4120:20200615:161654.029 item "Zabbix server:vfs.dev.write.await[sda]" became supported
    Code:
    tail /var/log/httpd/access_log
    ::1 - - [15/Jun/2020:16:07:29 +0200] "GET /zabbix/ HTTP/1.1" 200 3493 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:07:29 +0200] "GET /zabbix/assets/styles/blue-theme.css?1590408951 HTTP/1.1" 200 168402 "http://localhost/zabbix/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:07:29 +0200] "GET /zabbix/js/browsers.js HTTP/1.1" 200 1559 "http://localhost/zabbix/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:07:29 +0200] "GET /zabbix/assets/img/icon-sprite.svg?20200407 HTTP/1.1" 200 86302 "http://localhost/zabbix/assets/styles/blue-theme.css?1590408951" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:07:29 +0200] "GET /zabbix/assets/img/touch-icon-192x192.png HTTP/1.1" 200 1334 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:07:29 +0200] "GET /zabbix/favicon.ico HTTP/1.1" 200 32988 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:07:57 +0200] "POST /zabbix/index.php HTTP/1.1" 302 - "http://localhost/zabbix/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:08:04 +0200] "GET /zabbix/zabbix.php?action=dashboard.view HTTP/1.1" 500 - "http://localhost/zabbix/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:08:05 +0200] "GET /favicon.ico HTTP/1.1" 404 209 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    ::1 - - [15/Jun/2020:16:23:30 +0200] "GET /zabbix/zabbix.php?action=dashboard.view HTTP/1.1" 500 - "http://localhost/zabbix/" "Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0"
    Any help would be welcome,
    Lucas


  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    The web interface (front end) relies mainly on a web server and PHP + modules. It's largely independent from the zabbix-server processes. The front end can be "working" even when zabbix-server is not functioning, and zabbix-server can be running fine (collecting data, detecting problems, generating alerts, etc.) even when the front end is offline.

    Do you have PHP loaded, with all the necessary modules, on the host that is going to host your Zabbix web interface? Are there error messages in /var/log/httpd/error_log ? Are there error messages in any PHP logs?

    Did you run the one-time web setup, described in section 2 of https://www.zabbix.com/documentation...lation/install ?

    Comment

    • LucasB
      Junior Member
      • Jun 2020
      • 3

      #3
      Thank you for your reply,

      I did run the one time web setup, the 'Check of prerequisites' (section 2 - step 2) was all OK.

      There is no error related in /var/log/httpd/error_log
      Code:
      [root@hpc-mon ~]# cat /var/log/httpd/error_log
      [Mon Jun 15 15:55:25.707871 2020] [suexec:notice] [pid 2727:tid 140447761721600] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
      [Mon Jun 15 15:55:25.758381 2020] [lbmethod_heartbeat:notice] [pid 2727:tid 140447761721600] AH02282: No slotmem from mod_heartmonitor
      [Mon Jun 15 15:55:25.759699 2020] [http2:warn] [pid 2727:tid 140447761721600] AH02951: mod_ssl does not seem to be enabled
      [Mon Jun 15 15:55:25.769228 2020] [mpm_event:notice] [pid 2727:tid 140447761721600] AH00489: Apache/2.4.37 (centos) configured -- resuming normal operations
      [Mon Jun 15 15:55:25.769284 2020] [core:notice] [pid 2727:tid 140447761721600] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
      [Mon Jun 15 16:07:19.076416 2020] [autoindex:error] [pid 3425:tid 140446932084480] [client ::1:56786] AH01276: Cannot serve directory /var/www/html/: No matching DirectoryIndex (index.html,index.php) found, and server-generated directory index forbidden by Options directive
      But their is an error related in php
      Code:
      [16-Jun-2020 11:28:19 Europe/Paris] PHP Fatal error: Uncaught Error: Call to undefined function json_encode() in /var/www/html/zabbix/app/controllers/CControllerDashboardView.php:284
      Stack trace:
      #0 /var/www/html/zabbix/app/controllers/CControllerDashboardView.php(101): CControllerDashboardView::getWidgets(Array)
      #1 /var/www/html/zabbix/include/classes/mvc/CController.php(339): CControllerDashboardView->doAction()
      #2 /var/www/html/zabbix/include/classes/core/ZBase.php(488): CController->run()
      #3 /var/www/html/zabbix/include/classes/core/ZBase.php(194): ZBase->processRequest(Object(CRouter))
      #4 /var/www/html/zabbix/include/config.inc.php(25): ZBase->run('default')
      #5 /var/www/html/zabbix/zabbix.php(21): require_once('/var/www/html/z...')
      #6 {main}
      thrown in /var/www/html/zabbix/app/controllers/CControllerDashboardView.php on line 284

      Comment

      • LucasB
        Junior Member
        • Jun 2020
        • 3

        #4
        Ok i just needed to install php-json and it worked

        Comment

        Working...