Ad Widget

Collapse

Host User macros Usage on template discover rules item prototype name

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chrisnit
    Junior Member
    • Apr 2025
    • 1

    #1

    Host User macros Usage on template discover rules item prototype name

    Hi everyone,

    I have created a template that have one discovery rules and one web scenarios, then I create a host which set the macros call {$SERVER_ENV} ({$SERVER_ENV} = UAT/PROD), and then in the template web scenarios name set to Availability of API {$SERVER_ENV}, and most place are using this macro like discover rules > item prototypes > name > API {$SERVER_ENV} - Availability and trigger prototypes > API {$SERVER_ENV} - is not available

    but weird thing is that seems is not correct in latest data, it's showing the macros key name, not the value , in latest data showing like `Availability of API {$SERVER_ENV}`, that expected value should be `Availability of API UAT`

    but when I check on Details of web scenario, it's shows some partly correct, the title on top is showing "Details of web scenario: Availability of API UAT", and the step also no problem "API UAT - Site availability", "API UAT - Test API" availability, but on the graphs got the problem, graph title shows `Availability of API UAT` (no problem), on graph bottom description text shows `Download speed for step "API {$SERVER_ENV} - Site availability" of scenario Availability of API {$SERVER_ENV}"`.

    Please help many thanks

    Zabbix Version: 6.0.0
  • mrnobody
    Member
    • Oct 2024
    • 61

    #2
    There is places where macros are not supported, check documentation for your version. Probably you're using it where it can't be used.

    Comment

    Working...