Ad Widget

Collapse

Frontend on Secondary Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • WernerCD
    Member
    • Apr 2011
    • 37

    #1

    Frontend on Secondary Server

    I have "ZabbixServer" with Zabbix 2.0.5 installed and chugging along. I can go to http://ZabbixServer/ and browse with ease.

    PrimaryServer is an internal server, not accessible to "outside". We have a server "WebServer" which hosts our website.

    I'd like to setup http://WebServer/zabbix to show the frontend for ZabbixServer. I've copied the frontends/php to a folder, aliased it and after login it simply redirects to ZabbixServer/ instead of staying on WebServer/zabbix.

    Or do I need to have Zabbix_Server running on WebServer and simply pointing towards MySQL on ZabbixServer?

    I hope I'm making sense with my question.
  • eskytthe
    Senior Member
    Zabbix Certified Specialist
    • May 2011
    • 363

    #2
    You just need to install the frontend part of zabbix and point to your DB (You can find details in the install instructions).
    You can download frontend packets here:
    http://www.zabbix.com/download.php

    E.g. for debian:

    BR
    Erik

    Comment

    • WernerCD
      Member
      • Apr 2011
      • 37

      #3
      I have the same issue as when I installed it manually (difference is location, results are the same):

      1) copy frontends/php to /var/www/WebZabbix (deb creates /usr/share/zabbix)
      2) Alias /MyZabbix /var/www/WebZabbix (deb creates alias to /zabbix)
      3) edit /var/www/WebZabbix/conf/zabbix.conf.php (compared to /usr/share/zabbix/conf/zabbix.conf.php)
      Code:
      <?php
      // Zabbix GUI configuration file
      global $DB;
      
      $DB['TYPE']     = 'MYSQL';
      $DB['SERVER']   = '192.168.25.1';
      $DB['PORT']     = '3306';
      $DB['DATABASE'] = 'zabbix';
      $DB['USER']     = 'zabbix';
      $DB['PASSWORD'] = 'zabbix';
      
      // SCHEMA is relevant only for IBM_DB2 database
      $DB['SCHEMA'] = '';
      
      $ZBX_SERVER      = '192.168.25.1';
      $ZBX_SERVER_PORT = '10051';
      $ZBX_SERVER_NAME = 'zabbix';
      
      $IMAGE_FORMAT_DEFAULT = IMAGE_FORMAT_PNG;
      ?>
      The resulting php file created by the install script is the same as the one I edited manually, and has the same results: If I go to myserver/zabbix then log in it redirects me to zabbix/dashboard.

      ZabbixServer is not accessable to the outside world. WebServer is. This results in the same issue: https://webserver/zabbix redirects to http://ZabbixServer/ which won't work.

      Comment

      Working...