Ad Widget

Collapse

How can use hostname macro for create a trigger on template

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bab
    Senior Member
    • Aug 2020
    • 176

    #1

    How can use hostname macro for create a trigger on template

    I want add new item to my current template . So I need create a trigger for it : last(/server1/Time)=2
    But as I have different hosts with different names how can create a macro on my template that can auto set hostname instead of server1?
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    There is no need to use any macro, in the template-level trigger configuration just use the template name (last(/mytemplate/Time)=2), it will automatically be replaced with the current host name when used in hosts.

    Markku

    Comment

    Working...