Ad Widget

Collapse

Zabbix with ARR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • daniel.alves
    Junior Member
    • Jun 2017
    • 3

    #1

    Zabbix with ARR

    Hello all,

    We are using Zabbix in our production environment and everything is working fine with the following URL: http://server_ip/zabbix
    But now we need to give them an valid URL (Global DNS), so we can access it everywhere.

    In our production environment all hosted websites are behind an ARR (Aplication Request Routing), responsible to round robin the conections between the servers.

    First of all, we installed HTTPD in our Zabbix webserver and configure the given URL for it. Locally we test and everything was OK.
    So, we create an server farm for Zabbix and configure its server there. Next we create an URL Rewrite rule to redirect all the incoming solicitations to that given URL to the Zabbix server farm.

    Now our problem begin. When I access the URL I can log into the server, but when Zabbix redirect to http://our_url/zabbix.php?action=dashboard.view we have a blank page. Interesting that if we access the apllication inside our production environment (without using the ARR) everything works fine.

    During our tests we copied an different web page to our zabbix.php?action=dashboard.view like overview.php?ddreset=1 and it worked! BUT when we clicked back to dashboard, another time we get a blank page.

    Our webserver is a CentOS 7.3.1611 x64 with PHP 5.4 and Zabbix 3.2.6.

    Thx
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by daniel.alves
    Hello all,

    We are using Zabbix in our production environment and everything is working fine with the following URL: http://server_ip/zabbix
    But now we need to give them an valid URL (Global DNS), so we can access it everywhere.

    In our production environment all hosted websites are behind an ARR (Aplication Request Routing), responsible to round robin the conections between the servers.

    First of all, we installed HTTPD in our Zabbix webserver and configure the given URL for it. Locally we test and everything was OK.
    So, we create an server farm for Zabbix and configure its server there. Next we create an URL Rewrite rule to redirect all the incoming solicitations to that given URL to the Zabbix server farm.

    Now our problem begin. When I access the URL I can log into the server, but when Zabbix redirect to http://our_url/zabbix.php?action=dashboard.view we have a blank page. Interesting that if we access the apllication inside our production environment (without using the ARR) everything works fine.

    During our tests we copied an different web page to our zabbix.php?action=dashboard.view like overview.php?ddreset=1 and it worked! BUT when we clicked back to dashboard, another time we get a blank page.

    Our webserver is a CentOS 7.3.1611 x64 with PHP 5.4 and Zabbix 3.2.6.

    Thx
    isnt it suppused to be
    http://our_url/zabbix/zabbix.php?action=dashboard.view ?

    and logs of http\zabbix server will help here

    Comment

    • daniel.alves
      Junior Member
      • Jun 2017
      • 3

      #3
      Hello batchenr,

      No, we are using Apache to create an Alias to redirect the requests.

      []'s

      Comment

      • batchenr
        Senior Member
        • Sep 2016
        • 440

        #4
        Originally posted by daniel.alves
        Hello batchenr,

        No, we are using Apache to create an Alias to redirect the requests.

        []'s
        then please add some logs from http and zabbix-server

        Comment

        • daniel.alves
          Junior Member
          • Jun 2017
          • 3

          #5
          Originally posted by batchenr
          then please add some logs from http and zabbix-server
          Sure thing.

          Our Zabbix-server log didn't help to much. This is what happen when we access our URL and type our username and password.

          3770:20170620:120119.890 cannot send list of active checks to "192.168.1.211": host [WEB1.msco2.local] not found
          3769:20170620:120122.840 cannot send list of active checks to "192.168.1.207": host [arr5.msco2.local] not found
          3769:20170620:120124.674 cannot send list of active checks to "192.168.1.208": host [arr6.msco2.local] not found
          Our HTTPD log:

          arr-ip - - [20/Jun/2017:12:01:11 -0300] "GET / HTTP/1.1" 302 - "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 713 484
          arr-ip - - [20/Jun/2017:12:01:11 -0300] "GET /zabbix.php HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 755 337
          arr-ip - - [20/Jun/2017:12:01:24 -0300] "GET / HTTP/1.1" 200 3063 "-" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 539 3620
          arr-ip - - [20/Jun/2017:12:01:26 -0300] "GET /styles/blue-theme.css HTTP/1.1" 200 104828 "http://zabbix-url/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 717 105126
          arr-ip - - [20/Jun/2017:12:01:26 -0300] "GET /js/browsers.js HTTP/1.1" 200 1525 "http://zabbix-url/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 688 1833
          arr-ip - - [20/Jun/2017:12:01:26 -0300] "GET /jsLoader.php HTTP/1.1" 200 551813 "http://zabbix-url/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 724 552160
          arr-ip - - [20/Jun/2017:12:01:28 -0300] "GET /img/icon-sprite.svg HTTP/1.1" 200 19188 "http://zabbix-url/styles/blue-theme.css" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 744 19489
          arr-ip - - [20/Jun/2017:12:01:28 -0300] "GET /img/touch-icon-192x192.png HTTP/1.1" 200 1334 "http://zabbix-url/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 737 1629
          arr-ip - - [20/Jun/2017:12:01:39 -0300] "POST /index.php HTTP/1.1" 302 - "http://zabbix-url/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 977 445
          arr-ip - - [20/Jun/2017:12:01:40 -0300] "GET /zabbix.php HTTP/1.1" 200 - "http://zabbix-url/" "Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36" 829 337
          As you can see, we have no error that can help us discover what is going on =\

          Comment

          • batchenr
            Senior Member
            • Sep 2016
            • 440

            #6
            Originally posted by daniel.alves
            Sure thing.

            Our Zabbix-server log didn't help to much. This is what happen when we access our URL and type our username and password.



            Our HTTPD log:



            As you can see, we have no error that can help us discover what is going on =\
            HTTP error log ?
            you posted only access log

            and mysql logs also
            Last edited by batchenr; 27-06-2017, 14:16.

            Comment

            Working...