Ad Widget

Collapse

User macros in item and item prototype names deprecated?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • stibila
    Junior Member
    • Jun 2020
    • 1

    #1

    User macros in item and item prototype names deprecated?

    Hello,
    as part of an upgrade process, I am reading upgrade notes for each version and I noticed, that positional and user macros in item names and item prototype names are deprecated as of Zabbix 4.0.
    Using positional ($1, $2, …$9) and user macros in item and item prototype names is now deprecated.
    Source: Upgrade notes for 4.0.0

    Yet in user macros documentation, it says they can be used in item names. Release notes for Zabbix 4.0.0 says, that positional macros were removed from item names in templates, but there is no mention of user macros being also removed from names.

    So there is conflicting information, that user macros are at the same time supported and deprecated in item names. Before I can upgrade our server, I need clarification, because we currently use user macros macros (and positional macros, that we will remove) in names.
    So questions are:
    1. Are user macros supported in item names?
    2. Will there be any issue with other parts of Zabbix, if we keep user macros in item names?
    3. Are user macros supported in item prototype names?
    4. Will there be any issue with user macros in item prototype names?
    Thank you very much.
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    You're right, that quoted section is confusing.

    The example they provide only show converting a positional parameter to a LLD macro.

    The bug-tracker item ZBXNEXT-4739 referenced from the 4.0.0 release notes only mentions positional parameters, but it links to the documentation that you quoted.

    You might want to raise the issue on support.zabbix.com as a documentation issue and see if they can clarify what the intent is.

    Comment

    Working...