[ZBXNEXT-9039] Add Go compiler version to agent 2 version loadable plugins output Created: 2024 Feb 23  Updated: 2024 Apr 28  Resolved: 2024 Apr 28

Status: Closed
Project: ZABBIX FEATURE REQUESTS
Component/s: Agent (G)
Affects Version/s: 6.0.27rc1, 6.4.12rc1, 7.0.0beta2, 7.0 (plan)
Fix Version/s: 6.0.30rc1, 6.4.15rc1, 7.0.0rc1, 7.0 (plan)

Type: Change Request Priority: Trivial
Reporter: Mihails Prihodko Assignee: Mihails Prihodko
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Causes
caused by ZBXNEXT-9026 Add Go compiler version to agent 2 ve... Closed
caused by ZBX-23913 Update Request for Zabbix Documentation Closed
Team: Team B
Sprint: S24-W10/11, S24-W16/17
Story Points: 1

 Description   

Go compiler version was added to `zabbix_agent2 -V` output. As proposed by esneiders in this comment ZBXNEXT-9026, it also might be useful to have this information available for Zabbix agent 2 loadable plugins.



 Comments   
Comment by Mihails Prihodko [ 2024 Feb 23 ]

Mini spec v1.0

What is affected

  • Loadable plugins for Zabbix agent 2 on all supported platforms: PostgreSQL, MongoDB, MSSQL.

Obtaining Go compiler version
Go compiler version can be obtained in runtime with runtime.Version(), the same way it was done for Zabbix agent 2 ZBXNEXT-9026.

Loadable plugin version information

Go compiler version should be added to the common function PrintVersion() in the plugin-support repository like so:

Before:

Zabbix PostgreSQL plugin
Version 6.0.27rc1
Protocol version 6.0.13

After:

Zabbix PostgreSQL plugin
Version 6.0.27rc1, built with go1.21.6
Protocol version 6.0.13

Note, there is no colon ":" after "built with" before the version unlike in Zabbix agent 2. This is proposed to be more consistent with the existing plugin version info formatting.

Signoff:

Kalimulin -1.0
Comment by Mihails Prihodko [ 2024 Apr 26 ]

Available in:

Generated at Sun Jul 06 07:17:23 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.