[ZBXNEXT-4948] zabbix user agent is inconsistent and poorly formatted Created: 2019 Jan 09  Updated: 2019 Jan 09

Status: Open
Project: ZABBIX FEATURE REQUESTS
Component/s: Frontend (F), Server (S)
Affects Version/s: 4.2.0alpha3
Fix Version/s: None

Type: Change Request Priority: Trivial
Reporter: Josh Soref Assignee: Zabbix Support Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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...



 Comments   
Comment by Arturs Lontons [ 2019 Jan 09 ]

Hi,
Thank you for your input regarding the Zabbix user agent. I'll have to change the type of this ticket to a feature request, since this isn't exactly a bug report, but more of a suggestion on how to improve an existing feature/functionality.
From then on the request will be evaluated and prioritized accordingly.

Generated at Fri Apr 26 11:25:25 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.