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

$ZBX_SERVER value ignored unless $ZBX_SERVER_PORT is also defined

XMLWordPrintable

    • Sprint 95 (Dec 2022), Sprint 96 (Jan 2023), Sprint 97 (Feb 2023), Sprint 98 (Mar 2023)
    • 0.25

      Steps to reproduce:

      1. Install zabbix frontend on host-a
      2. Install zabbix server  on host-b 
      3. Edit zabbix.conf.php and set $ZBX_SERVER='host-b'
      4. Leave $ZBX_SERVER_PORT commented (as zabbix server is listening at default port 10051)

      Result:

      System Information reports that Zabbix server on "localhost:10051" is down.  This is weird because "localhost" is never mentioned in zabbix.conf.php. This message could be misleading and difficult to troubleshoot for users.

      The error can be fixed only by explicitly defining a value for $ZBX_SERVER_PORT variable  too. i.e:   $ZBX_SERVER_PORT='10051'

      Expected:
      Zabbix frontend should honour $ZBX_SERVER, also when $ZBX_SERVER_PORT is not defined. It should not fall back to localhost default.

      Alternatively, documentation should clearly state that the two variables needs to be BOTH defined.

        1. screenshot-1.png
          screenshot-1.png
          13 kB
        2. screenshot-2.png
          screenshot-2.png
          4 kB
        3. screenshot-3.png
          screenshot-3.png
          22 kB
        4. no_warning_message.gif
          no_warning_message.gif
          647 kB

            esekace Eliza Sekace
            bitmind Nicola Mauri
            Team B
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: