When testing a custom item key using both Agentd and Agent 2, the returned values are identical in content but differ in data type (e.g., unit vs string).
Additional information: https://support.zabbix.com/browse/ZBX-25526?focusedId=1086618&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1086618
To reproduce the issue, you need to test the item key on agentd and agent2 to see a different data type in the response:
$ ./sbin/zabbix_agentd -t proc.num[,,all,] proc.num[,,all,] [u|343] $ ./sbin/zabbix_agent2 -t proc.num[,,all,] proc.num[,,all,] [s|343]
Result:
Different data type in response (from example: 'u' and 's').
Expected:
Should see the same data type.