Ad Widget

Collapse

Zabbix Macros and Host Profile

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • messah
    Junior Member
    • Feb 2013
    • 3

    #1

    Zabbix Macros and Host Profile

    Hi;

    I want to describe my host. And I send email that to me. I investigated them but I am failed. I use pyton ZABBIX API script. https://github.com/gescheit/scripts/tree/master/zabbix My questions:

    1 ) Enter zabbix >> Configuration >> Hosts >> <Hostname>

    And right side macros and Profile

    [macros]
    I write {$TRY} --> trying and I call in Email notification like {TRY} but not woriking why ?

    2 ) Enter zabbix >> Configuration >> Hosts >> Profile

    And right side macros and Profile

    [Profile]

    And rigt side again I write Tag --> trying [in Profile]
    I call in Email notification like {PROFILE.TAG} İts work

    Finally; I can get usermacros.get(bla bla) but how I create macros with script OR
    How I get and set host_profile_tag ?
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #2
    1 ) Enter zabbix >> Configuration >> Hosts >> <Hostname>

    And right side macros and Profile

    [macros]
    I write {$TRY} --> trying and I call in Email notification like {TRY} but not woriking why ?
    If you look at https://www.zabbix.com/documentation...ed_by_location, User Macros are not supported in notifications.

    Comment

    Working...