Uploaded image for project: 'ZABBIX FEATURE REQUESTS'
  1. ZABBIX FEATURE REQUESTS
  2. ZBXNEXT-4948

zabbix user agent is inconsistent and poorly formatted

    Details

    • Type: Change Request
    • Status: Open
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.2.0alpha3
    • Fix Version/s: None
    • Component/s: Frontend (F), Server (S)
    • Labels:
      None

      Description

      Steps to reproduce:

      1. Set up a web scenario w/ the default useragent "Zabbix"
      2. Set up normal tcp[http]  monitoring of a computer
      3. Check the logs

      Result:
      See log file...

      "HEAD / HTTP/1.1" 502 3279 "-" "Zabbix ..."
      "GET / HTTP/1.1" 502 3769 "-" "Zabbix"
      

      Expected:
      "HEAD / HTTP/1.1" 502 3279 "-" "Zabbix/4...."
      "GET / HTTP/1.1" 502 3769 "-" "Zabbix/4...."

       
      Specification for useragent: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/User-Agent
       
      Source code:

      src/libs/zbxsysinfo/simple/simple.c:	if (CURLE_OK != (err = curl_easy_setopt(easyhandle, opt = CURLOPT_USERAGENT, "Zabbix " ZABBIX_VERSION)) ||
      src/libs/zbxmedia/eztexting.c:	if (CURLE_OK != (err = curl_easy_setopt(easy_handle, opt = CURLOPT_USERAGENT, "Zabbix " ZABBIX_VERSION)) ||
      src/zabbix_server/httppoller/httptest.c:	CURLE_OK != (err = curl_easy_setopt(easyhandle, CURLOPT_USERAGENT, httptest->httptest.agent)) ||
      frontends/php/include/httptest.inc.php:	ZBX_DEFAULT_AGENT => 'Zabbix',

       
      The zabbix frontend and server are seen by users as a single platform, as such, the useragent for these two subcomponents should really be the same. And, it's a good idea for both sides to include a version number if only for debugging...

        Attachments

          Activity

            People

            • Assignee:
              zabbix.support Zabbix Support Team
              Reporter:
              jsoref Josh Soref
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: