Ad Widget

Collapse

JSONPATH & MACROS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • capqwerty
    Junior Member
    • Jan 2020
    • 1

    #1

    JSONPATH & MACROS

    I have a dependent test on an HTTP agent that returns json
    a second test that I would like to return a value based on the inventory tag.
    For this, I need to use a JSONPath preprocessing step.
    If I hardcode the inventory tag it works but have had no success trying to use a macro within the parameters of JSONpath.

    Are Macros supported within this context of Zabbix? If so any tips?
  • dimir
    Zabbix developer
    • Apr 2011
    • 1080

    #2
    You can create a user macro and use it in JSONPath: https://www.zabbix.com/documentation...ros/usermacros
    If you like to use built-in macros, you're welcome to vote for https://support.zabbix.com/browse/ZBXNEXT-5499
    Last edited by dimir; 30-01-2020, 15:37.

    Comment

    Working...