Ad Widget

Collapse

Use {HOST.NAME} as value in a global macro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • schoeppi
    Member
    • Jan 2024
    • 31

    #1

    Use {HOST.NAME} as value in a global macro

    I wonder if I can use the {HOST.NAME} macro, or another variable or possebility, to set the value of a global macro.

    Currently I set a userdefined macro this way for for one of our hosts called host1.example.com:

    Macro name: {$ICMP_PING.FQDN}
    Value: host1.example.com

    For host2.example.com I have to set the same macro with the different hostname:

    Macro name: {$ICMP_PING.FQDN}
    Value: host2.example.com

    Can this be done more generic e.g. using a global macro this way:

    Macro name: {$ICMP_PING.FQDN}
    Value: {HOST.NAME}

    I've tried it but it did not work this way, but maybe I am doing something wrong...

    Thanks for any hint and help :-)!

Working...