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

The frontend server 'up' check assumes that fronend & backend are on the same host (this is in all versions, including trunk)

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • None
    • Frontend (F)
    • None
    • Where the frontend & backend are not on the same server

      The frontend does a "ps" check (if( (exec('ps -ef|grep zabbix_server|grep -v grep|wc -l')>0) || (exec('ps -ax|grep zabbix_server|grep -v grep|wc -l')>0) )) to determine if the backend server is running.

      This will cause a problem if the backend is not on the same machine.

      Here is a quick fix I did, not sure if it's the best but it works for me:

      $checkport = fsockopen($ZBX_SERVER, $ZBX_SERVER, $errnum, $errstr, 2);
      if($checkport)

      { $status["zabbix_server"] = S_YES; }

      else

      { $status["zabbix_server"] = S_NO; }

      I had to also add a global for $ZBX_SERVER & $ZBX_SERVER_PORT to the function to get it working.

            Unassigned Unassigned
            dmz006 David M. Zendzian
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: