Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12423

Patch to improve some WEB UI settings and missing parts in PHP scripts

XMLWordPrintable

    • Icon: Patch request Patch request
    • Resolution: Won't fix
    • Icon: Trivial Trivial
    • None
    • 3.2.6
    • Frontend (F)
    • None
    • Sprint 13, Sprint 14, Sprint 15, Sprint 16

      I have noticed some missing parts and would like to suggest fixes.

      • File zabbix-3.2.6/frontends/php/conf/zabbix.conf.php.example - missing closing php entry
        --- zabbix-3.2.6/frontends/php/conf/zabbix.conf.php.example     2017-05-05 15:50:27.000000000 +0100
        +++ ../www/v3.2.6/conf/zabbix.conf.php.example  2017-06-08 06:35:26.000000000 +0100
        @@ -16,3 +16,4 @@
         $ZBX_SERVER_NAME               = '';
         
         $IMAGE_FORMAT_DEFAULT  = IMAGE_FORMAT_PNG;
        +?>
        
      • File zabbix-3.2.6/frontends/php/include/blocks.inc.php - in multi server environment it is nice to see Server Name instead as server could be localhost and it is not informative.
        --- zabbix-3.2.6/frontends/php/include/blocks.inc.php   2017-05-05 15:50:22.000000000 +0100
        +++ ../www/v3.2.6/include/blocks.inc.php        2017-06-08 06:39:31.000000000 +0100
        @@ -455,7 +455,7 @@
         }
         
         function make_status_of_zbx() {
        -       global $ZBX_SERVER, $ZBX_SERVER_PORT;
        +       global $ZBX_SERVER, $ZBX_SERVER_NAME, $ZBX_SERVER_PORT;
         
                $table = (new CTableInfo())
                        ->setHeader([
        @@ -470,7 +470,7 @@
                $table->addRow([
                        _('Zabbix server is running'),
                        (new CSpan($status['zabbix_server']))->addClass($status['zabbix_server'] == _('Yes') ? ZBX_STYLE_GREEN : ZBX_STYLE_RED),
        -               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 (enabled/disabled/templates)')))->setAttribute('title', 'asdad');
                $table->addRow([_('Number of hosts (enabled/disabled/templates)'), $status['hosts_count'],
        

            Unassigned Unassigned
            vrtareg Areg Vrtanesyan
            Team C
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: