Ad Widget

Collapse

Zabbix 5.0 nginx 404 error

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • erasedhammer
    Member
    • Aug 2020
    • 58

    #1

    Zabbix 5.0 nginx 404 error

    I installed mysql 5.7 (8.0 was giving me errors, reinstalled fresh OS afterwards).
    I followed these instructions exactly and on the fresh installation of Debian 10: https://www.zabbix.com/download?zabb...mysql&ws=nginx

    If I go to http://SERVERIP/ it brings up the default nginx html template page
    If I go to http://SERVERIP/zabbix it brings up the 404 not found.

    Here is /var/log/zabbix/zabbix_server.log:

    15632:20200801:151846.690 Starting Zabbix Server. Zabbix 5.0.2 (revision 352ca05870).
    15632:20200801:151846.690 ****** Enabled features ******
    15632:20200801:151846.690 SNMP monitoring: YES
    15632:20200801:151846.690 IPMI monitoring: YES
    15632:20200801:151846.690 Web monitoring: YES
    15632:20200801:151846.690 VMware monitoring: YES
    15632:20200801:151846.690 SMTP authentication: YES
    15632:20200801:151846.690 ODBC: YES
    15632:20200801:151846.690 SSH support: YES
    15632:20200801:151846.690 IPv6 support: YES
    15632:20200801:151846.690 TLS support: YES
    15632:20200801:151846.690 ******************************
    15632:20200801:151846.690 using configuration file: /etc/zabbix/zabbix_server.conf
    15632:20200801:151846.691 current database version (mandatory/optional): 05000000/05000001
    15632:20200801:151846.691 required mandatory version: 05000000
    15632:20200801:151846.707 server #0 started [main process]
    15641:20200801:151846.707 server #1 started [configuration syncer #1]
    15656:20200801:151846.809 server #2 started [housekeeper #1]
    15657:20200801:151846.810 server #3 started [timer #1]
    15658:20200801:151846.810 server #4 started [http poller #1]
    15659:20200801:151846.811 server #5 started [discoverer #1]
    15661:20200801:151846.813 server #6 started [history syncer #1]
    15663:20200801:151846.814 server #8 started [history syncer #3]
    15665:20200801:151846.815 server #9 started [history syncer #4]
    15667:20200801:151846.815 server #10 started [escalator #1]
    15669:20200801:151846.816 server #11 started [proxy poller #1]
    15672:20200801:151846.820 server #14 started [poller #1]
    15670:20200801:151846.823 server #12 started [self-monitoring #1]
    15674:20200801:151846.824 server #16 started [poller #3]
    15676:20200801:151846.824 server #18 started [poller #5]
    15671:20200801:151846.829 server #13 started [task manager #1]
    15673:20200801:151846.829 server #15 started [poller #2]
    15675:20200801:151846.829 server #17 started [poller #4]
    15684:20200801:151846.830 server #23 started [trapper #4]
    15681:20200801:151846.833 server #20 started [trapper #1]
    15679:20200801:151846.833 server #19 started [unreachable poller #1]
    15682:20200801:151846.835 server #21 started [trapper #2]
    15683:20200801:151846.836 server #22 started [trapper #3]
    15662:20200801:151846.836 server #7 started [history syncer #2]
    15685:20200801:151846.837 server #24 started [trapper #5]
    15691:20200801:151846.845 server #25 started [icmp pinger #1]
    15693:20200801:151846.846 server #26 started [alert manager #1]
    15694:20200801:151846.848 server #27 started [alerter #1]
    15695:20200801:151846.848 server #28 started [alerter #2]
    15700:20200801:151846.849 server #30 started [preprocessing manager #1]
    15699:20200801:151846.850 server #29 started [alerter #3]
    15701:20200801:151846.851 server #31 started [preprocessing worker #1]
    15704:20200801:151846.852 server #33 started [preprocessing worker #3]
    15707:20200801:151846.853 server #34 started [lld manager #1]
    15708:20200801:151846.853 server #35 started [lld worker #1]
    15702:20200801:151846.854 server #32 started [preprocessing worker #2]
    15710:20200801:151846.854 server #36 started [lld worker #2]
    15712:20200801:151846.854 server #37 started [alert syncer #1]
    15663:20200801:151848.816 item "Zabbix server:zabbix[process,snmp trapper,avg,busy]" became not supported: No "snmp trapper" processes started.
    15663:20200801:151848.816 item "Zabbix server:zabbix[process,ipmi manager,avg,busy]" became not supported: No "ipmi manager" processes started.
    15662:20200801:151848.849 item "Zabbix server:zabbix[process,vmware collector,avg,busy]" became not supported: No "vmware collector" processes started.
    15673:20200801:151854.857 enabling Zabbix agent checks on host "Zabbix server": host became available
    15662:20200801:151855.903 item "Zabbix server:zabbix[vmware,buffer,pused]" became not supported: No "vmware collector" processes started.
    15662:20200801:151942.209 item "Zabbix server:zabbix[process,ipmi poller,avg,busy]" became not supported: No "ipmi poller" processes started.
    15662:20200801:151943.223 item "Zabbix server:zabbix[process,java poller,avg,busy]" became not supported: No "java poller" processes started.


    I've followed the instructions, is there anything else I have to do to get into the front end?
    Please advise.
  • erasedhammer
    Member
    • Aug 2020
    • 58

    #2
    After waiting a while it just worked going to http://SERVERIP/index.php

    BUT I recently installed Loganalyzer (it gives me a 403 error) and now http://SERVERIP/index.php sends me to 404 not found...

    Something wonky is happening and I am not experienced enough to know.

    Comment

    • erasedhammer
      Member
      • Aug 2020
      • 58

      #3
      Here are some of my logs

      /var/log/nginx/access.log
      10.10.0.2 - - [02/Aug/2020:19:00:33 -0400] "GET /index.php HTTP/1.1" 200 1294 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:00:33 -0400] "GET /js/browsers.js HTTP/1.1" 200 1559 "https:///index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:10:19 -0400] "GET /loganalyzer HTTP/1.1" 301 185 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:10:19 -0400] "GET /loganalyzer/ HTTP/1.1" 403 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:11:00 -0400] "GET /index.php HTTP/1.1" 200 1294 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:11:00 -0400] "GET /js/browsers.js HTTP/1.1" 200 1559 "https://index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:11:13 -0400] "GET / HTTP/1.1" 200 396 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:11:29 -0400] "GET /loganalyzer/index.php HTTP/1.1" 200 39025 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:11:41 -0400] "GET /loganalyzer HTTP/1.1" 301 185 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:11:41 -0400] "GET /loganalyzer/ HTTP/1.1" 403 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:12:19 -0400] "GET /loganalyzer/ HTTP/1.1" 403 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:13:21 -0400] "GET /loganalyzer/ HTTP/1.1" 403 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:15:27 -0400] "GET /index.php HTTP/1.1" 404 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:15:43 -0400] "GET /index.php HTTP/1.1" 404 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:15:43 -0400] "GET /favicon.ico HTTP/1.1" 404 199 "https:///index.php" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:18:10 -0400] "GET /index.php HTTP/1.1" 404 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:18:44 -0400] "GET / HTTP/1.1" 200 396 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:18:51 -0400] "GET /index.php HTTP/1.1" 404 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:19:00 -0400] "GET /loganalyzer HTTP/1.1" 301 185 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:19:00 -0400] "GET /loganalyzer/ HTTP/1.1" 403 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:21:45 -0400] "GET / HTTP/1.1" 200 396 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:21:51 -0400] "GET /index.php HTTP/1.1" 404 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:22:00 -0400] "GET /loganalzyer HTTP/1.1" 404 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"
      10.10.0.2 - - [02/Aug/2020:19:22:12 -0400] "GET /loganalyzer/ HTTP/1.1" 403 199 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.105 Safari/537.36"

      /var/log/nginx/error.log
      2020/08/02 19:10:19 [error] 17778#17778: *14810 directory index of "/var/www/html/loganalyzer/" is forbidden, client: 10.10.0.2, server: _, request: "GET /loganalyzer/ HTTP/1.1", host: "10.10.3.2"
      2020/08/02 19:11:41 [error] 17778#17778: *14810 directory index of "/var/www/html/loganalyzer/" is forbidden, client: 10.10.0.2, server: _, request: "GET /loganalyzer/ HTTP/1.1", host: "10.10.3.2"
      2020/08/02 19:12:19 [error] 25932#25932: *2 directory index of "/var/www/html/loganalyzer/" is forbidden, client: 10.10.0.2, server: _, request: "GET /loganalyzer/ HTTP/1.1", host: "10.10.3.2"
      2020/08/02 19:13:21 [error] 25955#25955: *2 directory index of "/var/www/html/loganalyzer/" is forbidden, client: 10.10.0.2, server: _, request: "GET /loganalyzer/ HTTP/1.1", host: "10.10.3.2"
      2020/08/02 19:19:00 [error] 25955#25955: *8 directory index of "/var/www/html/loganalyzer/" is forbidden, client: 10.10.0.2, server: _, request: "GET /loganalyzer/ HTTP/1.1", host: "10.10.3.2"
      2020/08/02 19:22:12 [error] 594#594: *2 directory index of "/var/www/html/loganalyzer/" is forbidden, client: 10.10.0.2, server: _, request: "GET /loganalyzer/ HTTP/1.1", host: "10.10.3.2"
      Last edited by erasedhammer; 09-12-2020, 01:57.

      Comment

      Working...