fortiswitch template port names as $1
ftoledo opened this issue · comments
I have this issue since migrating to ZBX 6.0 in various templates too. If anyone has a solution or even an explanation as to why this happens, I would love to hear it.
Positional macros were deprecated in 4.0 and fully removed in 6.0.
I have this issue since migrating to ZBX 6.0 in various templates too. If anyone has a solution or even an explanation as to why this happens, I would love to hear it.
I found that other templates change the variables $1 $2 $nnnn by names
example:
https://github.com/zabbix/community-templates/pull/286/files
That template used too, that pull request changes the template from using positional macros to using discovery macros.
I believe so. Personally, I would import the templates and look at the item prototype. You'd likely see an item prototype with a name of Link Speed $1 and a key of [ifHighSpeed[{#SNMPVALUE}]. I'd change the $1 to {#SNMPVALUE} like you say, re-run discovery or wait for it to run, and see if it updates for the Link Speed items. If it does, then make similar changes on the other item prototypes. If they all work, I'd then export the template and do a pull request.
Thanks a lot, will try to correct our templates in the same way tomorrow