Steps to reproduce:
- Create UserParameter for Zabbix Agent2
- Test the item with command zabbix_agent2 -t
The item fails "Unknown metric" when testing with agent, the user parameters are not initialized for testing. It works with zabbix_get and when server gets the item.
That it would return the key in correct format when testing