Ad Widget

Collapse

Suddenly can't access frontend

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • CPT
    Junior Member
    • Jul 2023
    • 6

    #1

    Suddenly can't access frontend

    Hello,
    I use to be able to access the zabbix frontend via the url http://zabbix.domain/zabbix. Earlier I was creating a template, I clicked the "Add" button, and now the front end is completely inaccessbile. When I try to go to it, it redirects to my companies website at the root domain. The application is still running and operating as expected. I can see it on the Ubuntu server when using "systemctl status zabbix-server", and I have gotten alerts for triggers in the templates that have been assigned. I just cannot reach the front end anymore. Anyone know what I might have done to cause this?
  • MRedbourne
    Senior Member
    • Feb 2023
    • 103

    #2
    Please post your Zabbix server version, web service package (nginx or apache), and operating system version.

    Comment

    • CPT
      Junior Member
      • Jul 2023
      • 6

      #3
      Hello,
      I'm using Zabbix 6.4.2 running on Ubutnu 20.04 with Apahce 2.4.41. I'm just using the out of the box setup for Zabbix without any modifications in terms of webserver.
      A couple of things to note, when I run a curl command against the url I'm getting a 301 error. I found that the website had failed to reload due to the mod_rewrite package not restarting for some reason. I manually reinstalled it, ran the apache commands to start the webservice, and it came back up, at least from the CLI. Now though when I go to the website the webpage is loading, but it's not populating anything. So I can see the landing page, but there is nothing there. No data, and none of the drop down menus on the left hand side show anything when I hover over them and click on them. Also, I'm not getting a login page when I go to the site. It's just taking me straight to the monitoring page but there's nothing there, and I can't sign out.

      Comment

      • CPT
        Junior Member
        • Jul 2023
        • 6

        #4
        So I've gotten the webpage back up, and it's mostly working, but I'm still encountering one issue. I can see almost all of the pages from the Lists on the left side of the webpage, except the Templates webpage. When I click on the link for that, it redirects to the my companies website at the root domain with /template.php as the end of the URL. No other link is doing this so far.
        Last edited by CPT; 31-07-2023, 20:05.

        Comment

        • MRedbourne
          Senior Member
          • Feb 2023
          • 103

          #5
          My information may be a little different than yours. We're on 6.0.19. There are 3 directories we care about (I'm assuming this is running on Linux...)

          /etc/zabbix/web/
          This is where you should be defining access to the web front end (allowed IPs, PHP settings, etc). In a default setup, all you likely care about is $ZBX_SERVER_NAME and the $DB section (+/- the Postgres specific section). That file would be /etc/zabbix/web/zabbix.conf.php. Make sure those are set up correctly.

          Check these files and make sure they're not redirecting anywhere unexpected:
          /etc/httpd/conf/httpd.conf
          (May not exist) /etc/httpd/conf.d/ssl.conf
          /etc/httpd/conf.d/zabbix.conf
          ​​
          cd /usr/share/zabbix/ && egrep -i "redirect" *.php

          Comment

          Working...