Zabbix name in dashboard

XMLWordPrintable

    • Type: Change Request
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: None
    • Component/s: Frontend (F)

      Hi

      I would like to offer the following change so the Zabbix Dashboard will show the ZBX_SERVER_NAME instead of the ZBX_SERVER on Dashboard.

      Index: include/blocks.inc.php
      ===================================================================
      --- include/blocks.inc.php      (revision 20915)
      +++ include/blocks.inc.php      (working copy)
      @@ -733,7 +733,7 @@
       }
      
       function make_status_of_zbx() {
      -       global $ZBX_SERVER, $ZBX_SERVER_PORT;
      +       global $ZBX_SERVER, $ZBX_SERVER_NAME, $ZBX_SERVER_PORT;
      
              $table = new CTableInfo();
              $table->setHeader(array(
      @@ -748,7 +748,7 @@
              $table->addRow(array(
                      _('Zabbix server is running'),
                      new CSpan($status['zabbix_server'], ($status['zabbix_server'] == _('Yes') ? 'off' : 'on')),
      -               isset($ZBX_SERVER, $ZBX_SERVER_PORT) ? $ZBX_SERVER.':'.$ZBX_SERVER_PORT : _('Zabbix server IP or port is not set!')
      +               isset($ZBX_SERVER, $ZBX_SERVER_PORT) ? $ZBX_SERVER_NAME.':'.$ZBX_SERVER_PORT : _('Zabbix server IP or port is not set!')
              ));
              $title = new CSpan(_('Number of hosts (monitored/not monitored/templates)'));
              $title->setAttribute('title', 'asdad');
      

      This can be useful when there are multiple Zabbix servers and in the config file the ZABBIX_SERVER is pointing to the localhost.

      Regards,
      Areg

            Assignee:
            Unassigned
            Reporter:
            Areg Vrtanesyan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: