Ad Widget

Collapse

Dynamic User Macros

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • srb
    Junior Member
    • Sep 2020
    • 10

    #1

    Dynamic User Macros

    Hi,
    I'm fairly new to Zabbix and have been trying to see if there is a way to create dynamic User Macros.
    As an example, I'm trying to get the DNS domain for a host using the {HOST.DNS} macro.
    Is it possible to define a user macro, such as {$HOSTDOMAIN} and then regex to extract the DNS domain from another macro, such as {HOST.DNS}?
    Everything I've tried so far seems to interpret the macro "Value" as string and outputs a regex expression.

    If this isn't possbile, how are you assigning macros to hosts based on data that is varibale between hosts?

    Thanks
Working...